Template:Template link general/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Template:Template link general/doc (view source)
Revision as of 15:03, January 29, 2022
, 2 years ago1 revision imported from wikipedia:Template:Template_link_general/doc
(High use) |
m (1 revision imported from wikipedia:Template:Template_link_general/doc) |
||
(19 intermediate revisions by 12 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{#ifexpr:{{#invoke:Transclusion count|fetch|0}} > 2000|{{high-use}}}}}}
▲{{#ifeq:{{FULLPAGENAME}}|Template:Template link expanded|{{used in system}}}}
{{tsh|{{{1|tlg}}}|{{{2|}}}}}
{{lua|Module:
This template, often abbreviated as {{tlf|{{#switch:{{lc:{{ROOTPAGENAME}}}}
Line 19:
| tls | template link with subst = tls
| tnull | template link null = tnull
| tlp | template link with parameters = tlp}}
}}, is used to provide stylized
===Parameters===
Line 27 ⟶ 26:
{| class="wikitable"
! Parameter || Action || Use with<br>{{t|example}} || Default active
|-
|
|-
|
|-
| bold || Renders the template link/name in '''bold''' || {{tlg|bold=yes|example}} || {{tl|tlb}}, {{tl|tlxb}}▼
▲| braceinside || Include innermost braces as part of the template link ||
|-
|
▲| bold || Renders the template link/name in '''bold''' || {{tl|tlb}}, {{tl|tlxb}}
|-
|
|-
|
|-
| nolink || Don't render the template name as a link || {{tlg|nolink=yes|example}} || {{tl|tlf}}, {{t|tnull}}
▲| kbd || Display output using HTML [[HTML element#kbd|{{tag|kbd}}]] tags (monospaced font) ||
|-
|
|-
|
|-
| plaincode || Uses {{tag|code|params=style="border:none; background:transparent;"}} || {{tlg|plaincode=yes|example}} || {{tl|tltss}}▼
|-
| subst || Include a [[Help:Substitution|subst:]] prefix before the template link/name || {{tlg|subst=yes|example}} || {{tl|tls}}, {{tl|tlxs}}, etc
▲| plaincode || Uses {{tag|code|params=style="border:none; background:transparent;"}} || {{tl|tltss}}
|-
|
|-
|
|}
====Unnamed (Positional)====
This template
===Examples===
Line 66 ⟶ 67:
|style=background-color:transparent;<!-- to see background of <code>...</code> -->
| '''Code''' | '''Output''' | '''Remarks'''
| {{tlx|{{{1|tlg}}}|
| {{tlx|{{{1|tlg}}}|ok}} | {{{{{1|tlg}}}|ok}} | ok template does exist
| {{tlx|{{{1|tlg}}}|convert|<nowiki><nowiki>14|m|ftin|abbr=out|sp=us</nowiki></nowiki>}} | {{{{{1|tlg}}}|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}} | Unlimited parameters as one {{tag|nowiki|link=yes}} [[Help:Wikitext#Nowiki|string]]
Line 92 ⟶ 93:
| {{tlx|{{{1|tlg}}}|x2|one|code{{=}}on|two|bold{{=}}on|three|italic{{=}}on}} | {{{{{1|tlg}}}|x2|one|code=on|two|bold=on|three|italic=on}} | … with many different configurations.
| {{tlx|{{{1|tlg}}}|x3|1|2|3|4|5|6|7|8|9|10}} | {{{{{1|tlg}}}|x3|1|2|3|4|5|6|7|8|9|10}} |
| {{tlx|{{{1|tlg}}}}} | {{{1|tlg}}} | with no arguments, the current page name is substituted
| {{tlx|{{{1|tlg}}}|x1|x=u}} | {{{{{1|tlg}}}|x1|x=u}} | '''{{=}}''' won't work
Line 103 ⟶ 102:
}}
{| class="wikitable" |style="
|+ style="text-align:left;" | Wrapping of long names (default)
|-
Line 113 ⟶ 112:
|}
{| class="wikitable" |style="
|+ style="text-align:left;" | Wrapping of long names (<kbd>nowrap=on</kbd>)
|-
Line 123 ⟶ 122:
|}
{| class="wikitable" |style="
|+ style="text-align:left;" | Wrapping of long names (<kbd>nowrapname=on</kbd>)
|-
|