|
|
| (12 mellomliggende versjoner av 8 brukere er ikke vist) |
| Linje 1: |
Linje 1: |
| <!--Start building conditional:
| | {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}} |
| --->{{#<!--
| | |{{{no|{{{2|}}}}}} |
| --->{{<includeonly>subst:</includeonly>#if:||i}}f:<!--
| | |{{{yes|{{{1|}}}}}} |
| --->{{<include<!--
| | }}<noinclude> |
| --->{{<includeonly>subst:</includeonly>#if:||only}}><!--
| | {{Documentation}} |
| --->subst:</include<!--
| |
| --->{{<includeonly>subst:</includeonly>#if:||only}}><!--
| |
| --->Empty template|.}}<!--
| |
| --->|<!--(else)-->{{{else|{{{2|}}}}}}<!--
| |
| --->|<!--(then)-->{{{then|{{{1|}}}}}}}}<noinclude>
| |
| <pre>{{subst:ifsubst|then|else}}</pre>
| |
| | |
| Add the above code to a template to give it <code>ifsubst</code> functionality. Note that this template in itself must actually be substituted into your new one, becoming part of its code.
| |
| | |
| When the template to which this code has been added is then substituted, the "then" text will appear, else the "else" text.
| |
| | |
| | |
| <!--Categories-->
| |
| [[Category:Function templates|{{PAGENAME}}]]
| |
| | |
| <!--Other languages-->
| |
| [[vi:Tiêu bản:Ifsubst]]
| |
| </noinclude> | | </noinclude> |
Siste sideversjon per 22. apr. 2026 kl. 01:25
Lua-feil: bad argument #1 to "get" (not a valid title).