Jump to content

Template:Tlb/doc: Difference between revisions

From pool
Template:Tlb/doc
[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == This template is a {{tlx|tl}}-style ''template-link''..."
 
Tag: New redirect
 
Line 1: Line 1:
#REDIRECT [[Template:Template link with bold]]{{rcat shell|
{{Documentation subpage}}
{{R from template shortcut}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
}}<noinclude>{{Commons Import}}</noinclude>

== Usage ==

This template is a {{tlx|tl}}-style ''template-link'' tag that boldfaces the template name, and accepts parameters. It's the same as {{tlx|tlx}} except that it boldfaces the name of the template and uses Wikipedia's default font instead of a non-proptional, monospaced font, as used by the variant {{tlx|tlxb}} (which is more commonly used because it has that {{tag|code|o}}-style monospaced look). Its main use is in highlighting to distinguish between multiple templates with similar names, on projectpages, in talk page discussions, and for nesting an example of a template-link call inside another template-link call that has already applied the {{tag|code}} markup.

===Examples===
{| class="wikitable"
! Code
! Result
! Remark
|-
| <code><nowiki>{{tlb|abc}}</nowiki></code>
| {{tlb|abc}}
|
|-
| <code><nowiki>{{tlb|abc|parm1|parm2}}</nowiki></code>
| {{tlb|abc|parm1|parm2}}
|
|-
| <code><nowiki>{{tlb|abc|parm1|parm2{{=}}foo}}</nowiki></code>
| {{tlb|abc|parm1|parm2{{=}}foo}}
| Equal signs need to be escaped using <code><nowiki>{{=}}</nowiki></code>.
|-
| <code><nowiki>{{tlb}}</nowiki></code>
| {{tlb}}
| This actually substitutes the current page name. Useful as a self-reference; won't be linked.
|}

The rest of the documentation is for {{tl|tlx}}, which works the same way.

----
{{Tlx/doc}}

<includeonly>{{Sandbox other||

<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Internal template-link templates]]

}}</includeonly>

Latest revision as of 15:03, 21 October 2020