Template:Template link expanded with subst: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(make linking "subst" optional)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#Invoke:Template link general|main|code=on|subst=on}}<noinclude>
<noinclude>{{tfm|Tlxs|Tlsx}}{{Tfm-inline|Tlxs|tiny=yes}}</noinclude><includeonly><tt><nowiki>{{</nowiki>{{#ifeq:{{{link subst|yes}}}|yes
{{Documentation|1=Template:Tlg/doc
|[[Wikipedia:Substitution|subst]]
|content = {{tlg/doc|tlxs}}
|subst
}}:[[Template:{{{1|{{PAGENAME}}}}}|{{#ifeq:{{lcfirst:{{{1|{{PAGENAME}}}}}}}|{{lc:{{{1|{{PAGENAME}}}}}}}|{{lcfirst:{{{1|{{PAGENAME}}}}}}}|{{{1|{{PAGENAME}}}}}}}]]<!--
-->{{#ifeq:{{{2|+}}}|{{{2|-}}}|&#124;{{{2}}}}}<!--
-->{{#ifeq:{{{3|+}}}|{{{3|-}}}|&#124;{{{3}}}}}<!--
-->{{#ifeq:{{{4|+}}}|{{{4|-}}}|&#124;{{{4}}}}}<!--
-->{{#ifeq:{{{5|+}}}|{{{5|-}}}|&#124;{{{5}}}}}<!--
-->{{#ifeq:{{{6|+}}}|{{{6|-}}}|&#124;{{{6}}}}}<!--
-->{{#ifeq:{{{7|+}}}|{{{7|-}}}|&#124;{{{7}}}}}<!--
-->{{#ifeq:{{{8|+}}}|{{{8|-}}}|&#124;{{{8}}}}}<!--
-->{{#ifeq:{{{9|+}}}|{{{9|-}}}|&#124;{{{9}}}}}<!--
-->{{#ifeq:{{{10|+}}}|{{{10|-}}}|&#124;{{{10}}}}}<!--
-->{{#ifeq:{{{11|+}}}|{{{11|-}}}|&#124;<i>...</i>}}<!--
--><nowiki>}}</nowiki></tt></includeonly><noinclude>

{{Documentation|content=

{{FromMeta|Template:Tlxs}}

==Purpose==
This creates a template link to templatespace for templates which require substitution, and indicates such, for use in documentation pages.

==Syntax==
{{((}}tlxs{{!}} templatename {{))}}

==Example==
{{tlx|tlxs|tlxs}}

produces

{{tlxs|tlxs}}

==See also==
{{Tl-nav}}

}}
}}
<!-- Add categories to the /doc subpage, not here! -->

[[Category:Internal link templates|{{PAGENAME}}]]

</noinclude>
</noinclude>

Latest revision as of 13:10, May 7, 2022

{{subst:Template:Template link expanded with subst}}

Template documentation (for the above template, sometimes hidden or invisible)