Template:Tlpad
From TechInfoDepot
Jump to navigationJump to search{{[[Template:{{{1}}}|{{{1}}}]]}}
{{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}}
- Template:Tnfpad, for example, produces: {{pad}}
- No link ({{tpad}})
- To present the template's name in plain text rather than as a link, set the parameter
|nolink=
on, true, (etc) – or use the convenience template {{tpad}} to achieve the same. (Template:Tnfpad, for example, produces: {{pad}})
- Bold ({{tlpadb}})
- To display the name or link in bold, set
|bold=
on, true, (etc) – or use the convenience template {{tlpadb}}. (Template:Tnfpad, for example, produces: Template:Tlpadb)
The above documentation is transcluded from Template:Tlpad/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |