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

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>Senefi
Нет описания правки
imported>Senefi
Нет описания правки
 
Строка 1: Строка 1:
<includeonly>{{#ifeq:{{{1}}}|first|Only including first field<br>|{{#if:{{{1|}}}||Including first and other fields<br>|}}|}}<!--
<!--
    This template serves as a reference implementation of template data querying.
    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}}}|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>|}}|}}<!--
-->{{#ifeq:{{{1}}}|third|Only including third field<br>|{{#if:{{{1|}}}||Including third and other fields<br>|}}|}}<!--

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

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