Участник:Senefi/TestTemplate: различия между версиями

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>Senefi
Нет описания правки
imported>Senefi
Нет описания правки
 
(не показано 6 промежуточных версий этого же участника)
Строка 1: Строка 1:
{{#ifeq:{{{1}}}|first|Only including first field|{{#if:{{{1|}}}||Including first and other fields<br>|}}|}}
<!--
{{#ifeq:{{{1}}}|second|Only including second field|{{#if:{{{1|}}}||Including second and other fields<br>|}}|}}
    This template serves as a reference implementation of template data querying.
{{#ifeq:{{{1}}}|third|Only including third field|{{#if:{{{1|}}}||Including third and other fields<br>|}}|}}
    Comments are provided to improve clarity
--><includeonly><!--
    Check for inclusion of our first field either explicitly or with all other fields
  -->{{#ifeq:{{{1}}}|first<!--
      if first unnamed parameter is "first"
    -->|Only including first field<br><!--
      else check if we do not have any unnamed parameters
    -->|{{#if:{{{1|}}}<!--
        first unnamed parameter is assigned but not equal to first, skip.
      -->|<!--
        first unnamed parameter is not assigned, include
      -->|Including first and other fields<br><!--
    -->|}}<!--
  -->|}}<!--
-->{{#ifeq:{{{1}}}|second|Only including second field<br>|{{#if:{{{1|}}}||Including second and other fields<br>|}}|}}<!--
-->{{#ifeq:{{{1}}}|third|Only including third field<br>|{{#if:{{{1|}}}||Including third and other fields<br>|}}|}}<!--
--></includeonly><!--
--><noinclude><!--
-->Test Template for conditional evaluation to replicate table querying for a specific entry<!--
--></noinclude>

Текущая версия от 12:56, 11 июля 2023

Test Template for conditional evaluation to replicate table querying for a specific entry