Участник:Senefi/TestTemplate: различия между версиями
Перейти к навигации
Перейти к поиску
imported>Senefi Нет описания правки |
imported>Senefi Нет описания правки |
||
(не показано 7 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
{{#ifeq:{{{1}}}|first<-- | <!-- | ||
-->|Only including first field<-- | This template serves as a reference implementation of template data querying. | ||
-->|{{#if:{{{1|}}}||Including first and other fields<br>|}}|}} | Comments are provided to improve clarity | ||
{{#ifeq:{{{1}}}|second | --><includeonly><!-- | ||
Check for inclusion of our first field either explicitly or with all other fields | |||
-->{{#ifeq:{{{1}}}|first<!-- | |||
{{#ifeq:{{{1}}}|third | 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