Template:Template link with magic/doc: Difference between revisions
More actions
Created page with "{{Documentation subpage}} {{Lua|Module:Template link with magic}} {{tsh|tlm}} This template is an all-purpose double-brace linking template. The magic is implemented by Module:Template link with magic. == Usage == {{tlm|[[safe]subst:][msg[nw]:][raw:]<var>name of template</var>|...}} {{tlm|[[safe]subst:][msg[nw]:][raw:]<var>namespace</var>:<var>pagename</var>|...}} {{tlm|[[safe]subst:][msg[nw]:][raw:]#invoke:<var>module name</var>|...}}..." |
(No difference)
|
Latest revision as of 23:54, 15 February 2025
| This is a documentation subpage for Template:Template link with magic. It may contain usage information, categories and other content that is not part of the original template page. |
| Uses Lua: |
This template is an all-purpose double-brace linking template. The magic is implemented by Module:Template link with magic.
Usage
{{tlm|[[safe]subst:][msg[nw]:][raw:]name of template|...}}
{{tlm|[[safe]subst:][msg[nw]:][raw:]namespace:pagename|...}}
{{tlm|[[safe]subst:][msg[nw]:][raw:]#invoke:module name|...}}
{{tlm|[[safe]subst:][msg[nw]:][raw:]#parser function:...[|...]}}
{{tlm|[[safe]subst:]VARIABLE NAME}}
{{tlm}} may be used for linking to templates, quasi-templates (pages transcluded from namespaces other than Template), modules (using the #invoke syntax), documentation of parser functions and variables (so-called "magic words"). subst: and other modifier prefixes and other are detected automatically and linked appropriately.
If this template is passed non-numeric named parameters, they will be displayed: {{tlm|unreferenced|date=December 2025}} renders as {{unreferenced|date=December 2025}}. No particular order of parameters is guaranteed, and it will not work for numeric parameters, even explicitly named ones: {{tlm|X0|2=2}} displays {{Template:Void|2}}.
See also
{{template link with magic nested}}(shortcut {{tlmn}}){{magic word link}}(shortcut {{mwl}})