Template:Doc/wiki: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Ferri Leberl (talk | contribs) (Created page with "<includeonly>{{#ifeq:wiki{{{1|}}}|{{otherwiki}}|{{otherwiki}}:}}</includeonly><noinclude> == Usage == Template supporting Template:Doc. returns {{#ifeq:{{thiswiki}}|wiki3|''wiki2:'' if <nowiki>{{{1|}}}</nowiki>=2 and nothing otherwise|''wiki3:'' if <nowiki>{{{1|}}}</nowiki>=3 and nothing otherwise}}. == Arguments == *1: A string; usualy argument <nowiki>{{{wiki}}}</nowiki> of Template:Doc. == Examples == <pre>{{doc/wiki}}</pre>returns: {{doc/wiki}} <pre>{{doc/wi...") |
Ferri Leberl (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:wiki{{{1|}}}|{{otherwiki}}|{{otherwiki}}:}}</includeonly><noinclude> | <includeonly>{{#ifeq:wiki{{{1|}}}|{{otherwiki}}|{{otherwiki}}:|{{#ifeq:{{thiswiki}}|topo|{{#ifeq:{{{1|}}}|2|wiki2:|wiki3:}}}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Template supporting [[Template:Doc]]. returns {{#ifeq:{{thiswiki}}|wiki3|''wiki2:'' if <nowiki>{{{1|}}}</nowiki>=2 and nothing otherwise|''wiki3:'' if <nowiki>{{{1|}}}</nowiki>=3 and nothing otherwise}}. | Template supporting [[Template:Doc]]. returns {{#ifeq:{{thiswiki}}|wiki3|''wiki2:'' if <nowiki>{{{1|}}}</nowiki>=2 and nothing otherwise|''wiki3:'' if <nowiki>{{{1|}}}</nowiki>=3 and nothing otherwise}}. |
Latest revision as of 21:01, 17 March 2025
Usage
Template supporting Template:Doc. returns wiki3: if {{{1|}}}=3 and nothing otherwise.
Arguments
- 1: A string; usualy argument {{{wiki}}} of Template:Doc.
Examples
{{doc/wiki}}
returns:
wiki3:
{{doc/wiki|2}}
returns:
wiki2:
{{doc/wiki|3}}
returns:
wiki3: