Mal:Ifsubst: Forskjell mellom sideversjoner

Fra wikisida.no
Hopp til navigering Hopp til søk
+vi: (noinclude)
m 20 sideversjoner ble importert
 
(14 mellomliggende versjoner av 10 brukere er ikke vist)
Linje 1: Linje 1:
{{#{{<includeonly>subst:</includeonly>#if:||i}}f:{{<include{{<includeonly>subst:</includeonly>#if:||only}}>subst:</include{{<includeonly>subst:</includeonly>#if:||only}}>Empty template|.}}|<!--else-->{{{else|{{{2|}}}}}}|<!--then-->{{{then|{{{1|}}}}}}}}<noinclude><pre>{{subst:ifsubst|then|else}}</pre>
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}
 
|{{{no|{{{2|}}}}}}
Add the above code to a template of yours to give it <code>ifsubst</code> functionality. If your template is substituted, your "then" text will appear, else your "else" text. Note that this template in itself must be substituted into your new one.
|{{{yes|{{{1|}}}}}}
 
}}<noinclude>
[[Category:Wikipedia special effects templates|Ifsubst]]
{{Documentation}}
 
[[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).