Vorlage:Tlpad: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
(Die Seite wurde neu angelegt: „<nowiki>{{</nowiki><!-- --><span style="padding:0 {{#if:{{{2|}}}|{{{1}}}|0.15em}}; {{#if:{{{bold|}}}|font-weight:bold;}}"><!-- -->{{#if:{{{nolink|}}} |{{…“)
 
K (Schützte „Vorlage:Tlpad“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))

Version vom 7. September 2015, 14:32 Uhr

{{[[Template:{{{1}}}|{{{1}}}]]}}

Documentation icon Template documentation


{{tlpad|template name}}

A version of the template-linking Template:Tl that adds a little padding either side of the link Template:Tl creates, making it easier to see/click when the template linked has a short and/or lowercased name (such as Template:Tl itself, Template:Cl, etc):

Example template
to link
Linked using
Template:Tl
Linked using
Template:Tlpad
Template:Tl {{tl}} {{tl}}
Template:Cl {{cl}} {{cl}}
Template:C {{c}} {{c}}
Padding amount
By default, the padding added either side of the link is 0.15em. To set a different amount, insert it as a parameter before template name:
{{tlpad|left/right padding amount|template name}}
{{tlpad|2px|pad}}, for example, produces: {{pad}}
No link
To present the template's name in plain text rather than as a link, set the parameter |nolink=on, true, (etc)
Bold
To display the name or link in bold, set |bold=on, true, (etc)
Cookies helfen uns bei der Bereitstellung des ZIM HilfeWikis. Bei der Nutzung vom ZIM HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.