Template:Template link with magic/doc: Difference between revisions

Content deleted Content added
Created page with '{{Documentation subpage}} '''tlm''' stands for '''t'''emplate '''l'''ink with '''m'''agic. This template is an all-purpose double-brace linking template. The mag...'
 
Line 7:
{&#123;tlm|[&#91;safe]subst:][msg[nw]:][raw:]<var>namespace</var>:<var>pagename</var>|...}}
{&#123;tlm|[&#91;safe]subst:][msg[nw]:][raw:]#invoke:<var>module name</var>|...}}
{&#123;tlm|[&#91;safe]subst:][msg[nw]:][raw:]#<var>parser function</var>:...[|...]}}
{&#123;tlm|[&#91;safe]subst:][msg[nw]:][raw:]<var>VARIABLE NAME</var>|...}}
 
{{tlm|tlm}} may be used for linking to templates, quasi-templates (pages transcluded from namespaces other than {{ns:10}}), modules (using the <code>#invoke</code> syntax), documentation of parser functions and variables (so-called "[[Help:Magic words|magic words]]"). <code>subst:</code> and other modifier prefixes and other are detected automatically and linked appropriately.