FANDOM


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


{{tlg}} (abbreviating "[t]emplate [l]ink Template:Small [g]eneral Template:Small") is a generalised version of the {{tl}} ("template link") template. It can be used to replace or implement {{tl}} and related templates such as {{tlb}}, {{tlx}}, etc.

Parameters

Template:Big

With the exception of Template:Mono, {{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 (see Examples below):

Parameter Action As in
braceinside Include innermost braces as part of the template link {{tlw}}
bold
boldlink
boldname
Renders the template link/name in bold {{tlb}} {{tlx}} etc.
code Display output using the (monospaced) HTML <code> formatting {{tlc}} {{tlx}} etc.
italic
italics
Display any parameters accompanying the template link/name in italic/s {{tlxi}}
nolink Don't render the template name as a link {{tln}}
nowrap Prevent the insertion of line breaks (word wrap) in the output
subst Include a subst: prefix before the template link/name {{tls}}
|alttext=[text] Use [text] as the label for the template link {{tla}}
Template:Big

{{tlg}} may take up to ten unnamed parameters as parameters accompanying the template link (or name); see Examples below.

Examples

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.
Code Output Remarks
{{tlg|Abc}} {{Template:!((:Template:Abc|AbcTemplate:!))}}
{{tlg|abC}} {{Template:!((:Template:AbC|abCTemplate:!))}} template names are case-sensitive
{{tlg|abc}} {{Template:!((:Template:Abc|abcTemplate:!))}} first letter is case-insensitive though
{{tlg|x0}} {{Template:!((:Template:X0|x0Template:!))}}
{{tlg|x0|codeTemplate:=on}} {{Template:!((:Template:X0|x0Template:!))}} <code> style
{{tlg|x0|plaincodeTemplate:=on}} {{Template:!((:Template:X0|x0Template:!))}} plaincode style
{{tlg|x0|boldTemplate:=on}} {{Template:!((:Template:X0|x0Template:!))}} bold link/name
{{tlg|x1|one|italicTemplate:=on}} {{Template:!((:Template:X1|x1Template:!))|one}} parameter/s in italics
{{tlg|x0|nolinkTemplate:=on}} {{x0}}
{{tlg|x0|substTemplate:=on}} {{subst:Template:!((:Template:X0|x0Template:!))}}
{{tlg|x0|braceinsideTemplate:=on}} {Template:!((:Template:X0|{x0}Template:!))}
{{tlg|x0|alttextTemplate:=x0 link}} {{Template:!((:Template:X0|x0 linkTemplate:!))}}
{{tlg|x0|boldTemplate:=on|codeTemplate:=on|braceinsideTemplate:=on}} {Template:!((:Template:X0|{x0}Template:!))} No reason you can't combine multiple parameter settings
{{tlg|x1|one}} {{Template:!((:Template:X1|x1Template:!))|one}}
{{tlg|x2|one|two}} {{Template:!((:Template:X2|x2Template:!))|one|two}}
{{tlg|x2|boldTemplate:=on|codeTemplate:=on|one|two}} {{Template:!((:Template:X2|x2Template:!))|one|two}} Can combine named and anonymous parameters …
{{tlg|x2|one|two|boldTemplate:=on|codeTemplate:=on}} {{Template:!((:Template:X2|x2Template:!))|one|two}} … in any order …
{{tlg|x2|one|codeTemplate:=on|two|boldTemplate:=on|three}} {{Template:!((:Template:X2|x2Template:!))|one|two|three}} … even intermixed …
{{tlg|x2|one|codeTemplate:=on|two|boldTemplate:=on|three|italicTemplate:=on}} {{Template:!((:Template:X2|x2Template:!))|one|two|three}} … with many different configurations.
{{tlg|x3|1|2|3|4|5|6|7|8|9|10}} {{Template:!((:Template:X3|x3Template:!))|1|2|3|4|5|6|7|8|9|10}}
{{tlg|x4|1|2|3|4|5|6|7|8|9|10|11}} {{Template:!((:Template:X4|x4Template:!))|1|2|3|4|5|6|7|8|9|10|…}} up to 10 parameters, then …
{{tlg|x5|1|2|3|4|5|6|7|8|9|10&#124;11}} {{Template:!((:Template:X5|x5Template:!))|1|2|3|4|5|6|7|8|9|10|11}} Template:Align
{{tlg}} {{Template:!((:Template:Tlg|TlgTemplate:!))}} with no arguments, the current page name is substituted
{{tlg|x1|x=u}} {{Template:!((:Template:X1|x1Template:!))}} Template:= won't work
{{tlg|x1|x&#61;u}} {{Template:!((:Template:X1|x1Template:!))|x=u}} Template:Align
{{tlg|x1|x{{=}}u}} {{Template:!((:Template:X1|x1Template:!))|x[[:Template:=]]u}} Template:Align
{{tlg|x1|x<nowiki>=</nowiki>u}} {{Template:!((:Template:X1|x1Template:!))|x=u}} Template:Align
{{tlg|x2||two||}} {{Template:!((:Template:X2|x2Template:!))||two||}} empty parameters work too, even at the end
{{tlg|x2|3=two|2=one}} {{Template:!((:Template:X2|x2Template:!))|one|two}} Template:Align
Unlimited parameters as one nowiki string

{{tlg|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}}

See also

Template:Template-linking templates


Visit Template:Tlg/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.