Шаблон:TemplateCase

Материал из WOG Wiki
Версия от 17:58, 18 июня 2022; Lom3uk (обсуждение | вклад) (Новая страница: «<includeonly>{{#ifeq:{{uc:{{NAMESPACE}}}}|TEMPLATE|{{{1|}}}|{{{2|}}}}}</includeonly><noinclude>{{Doc/Template |descr= Adds content depending on the calling page's…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Adds content depending on the calling page's template.

This template is used on these pages.

Usage

{{TemplateCase{{#if:ifTemplate | |ifTemplate}}{{#if:ifNotTemplate | |ifNotTemplate}}{{#if: | |{{{param3}}}}}{{#if: | |{{{param4}}}}}{{#if: | |{{{param5}}}}}}} {{#if:ifTemplate|

  • ifTemplate{{#if:content if the page is in the Template: namespace|: content if the page is in the Template: namespace}}

}}{{#if:ifNotTemplate|

  • ifNotTemplate{{#if:content if the page is not in the Template: namespace|: content if the page is not in the Template: namespace}}

}}{{#if:|

  • {{{param3}}}{{#if:|: }}

}}{{#if:|

  • {{{param4}}}{{#if:|: }}

}}{{#if:|

  • {{{param5}}}{{#if:|: }}

}}{{#if:|

  • {{{param6}}}{{#if:|: }}

}}{{#if:|

  • {{{param7}}}{{#if:|: }}

}}{{#if:|

  • {{{param8}}}{{#if:|: }}

}}{{#if:|

  • {{{param9}}}{{#if:|: }}

}}{{#if:|

  • {{{param10}}}{{#if:|: }}

}}

{{#if:{{TemplateCase|this is a template|this is -not- a template}} |

{{#if: {{TemplateCase|this is a template|this is -not- a template}} }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }} {{#if: }}
Examples
Code Result
{{TemplateCase|this is a template|this is -not- a template}} TEMPLATE|this is a template|this is -not- a template}}

}}

{{#ifeq: ШАБЛОН:TEMPLATECASE | TEMPLATE:DOC/TEMPLATE | | }}