Template:Template link general/doc: Difference between revisions
Template page
More actions
←Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> {{lua|Module:Tlg}} {{tl|tlg}} (abbreviating "[t]emplate [l]...' |
|||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{ | {{Lua|Module:Template link general}} | ||
{{tl|tlg}} (abbreviating "[t]emplate [l]ink {{small|(with)}} [g]eneral {{small|(options)}}") is a generalised version of the {{tl|tl}} ("template link") template. It can be used to replace or implement {{tlf|tl}} and related templates such as {{tl|tlb}}, {{tl|tlx}}, etc. | {{tl|tlg}} (abbreviating "[t]emplate [l]ink {{small|(with)}} [g]eneral {{small|(options)}}") is a generalised version of the {{tl|tl}} ("template link") template. It can be used to replace or implement {{tlf|tl}} and related templates such as {{tl|tlb}}, {{tl|tlx}}, etc. | ||
===Parameters=== | === Parameters === | ||
====Named==== | ==== Named ==== | ||
With the exception of {{mono|alttext}}, {{tlf|tlg}}'s named parameters are toggles that are either omitted (default) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order ([[Template:Tlg#Examples|see Examples below]]): | With the exception of {{mono|alttext}}, {{tlf|tlg}}'s named parameters are toggles that are either omitted (default) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order ([[Template:Tlg#Examples|see Examples below]]): | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 36: | Line 36: | ||
|} | |} | ||
====Unnamed (Positional)==== | ==== Unnamed (Positional) ==== | ||
{{tlf|tlg}} may take up to ten [[unnamed parameter]]s as parameters accompanying the template link (or name); see Examples below. | {{tlf|tlg}} may take up to ten [[unnamed parameter]]s as parameters accompanying the template link (or name); see Examples below. | ||
===Examples=== | === Examples === | ||
{{#switch:{{SITENAME}} |Wikipedia|Meta= | | {{#switch:{{SITENAME}} |Wikipedia|Meta= | | ||
; Note: On the source sister projects, en.wikipedia and Meta, '''X0, X1, X2, …, X9 are sandbox templates''' for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects. | ; Note: On the source sister projects, en.wikipedia and Meta, '''X0, X1, X2, …, X9 are sandbox templates''' for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects. | ||
| Line 118: | Line 118: | ||
{{Template-linking templates}} | {{Template-linking templates}} | ||
<includeonly>{{Sandbox other| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Internal template-link templates]] | [[Category:Internal template-link templates]] | ||
[[Category:Typing-aid templates]] | [[Category:Typing-aid templates]] | ||
}}</includeonly> | }}</includeonly> | ||