Difference between revisions of "Template:Template-linking templates"
From MINR.ORG WIKI
(+ Template:Demo) |
|||
Line 3: | Line 3: | ||
--> | --> | ||
===General-purpose formatting=== | ===General-purpose formatting=== | ||
− | {| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align | + | {| class="wikitable navbox collapsible" style="width:auto;font-size:90%;margin:1.0em auto 1.0em auto;vertical-align:top;text-align |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|style="background:#eef;"| Normal | |style="background:#eef;"| Normal | ||
− | | {{ | + | | {{ |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
{{clear}} | {{clear}} | ||
Line 55: | Line 12: | ||
*<sup>2</sup> Prevents wrapping of text by placing it inside {{tag|span|params=class="nowrap"}} tags. | *<sup>2</sup> Prevents wrapping of text by placing it inside {{tag|span|params=class="nowrap"}} tags. | ||
*<sup>3</sup> Uses monospace font but not {{tag|code}}. | *<sup>3</sup> Uses monospace font but not {{tag|code}}. | ||
− | *<sup>4 | + | *<sup>4 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | {{tlx| | + | | {{tlx|tl2|<nowiki>Hatnote|lang=fr</nowiki>}} || {{tl2|hatnote|lang=fr}} || Supports linking to sister /SSHFS}} || Supports linking to any namespace |
|- | |- | ||
| {{tlx|demo|<nowiki><nowiki>{{Hatnote|lang=fr|Some text}}</nowiki></nowiki>}} || {{demo|<nowiki>{{hatnote|lang=fr|Some text}}</nowiki>}} || Shows code and example | | {{tlx|demo|<nowiki><nowiki>{{Hatnote|lang=fr|Some text}}</nowiki></nowiki>}} || {{demo|<nowiki>{{hatnote|lang=fr|Some text}}</nowiki>}} || Shows code and example | ||
Line 71: | Line 21: | ||
|- | |- | ||
<!-- Yes, I know this isn't actually a template-linking template, but it's a heck of a lot easier to find if it's listed in the docs for e.g. {{tl}} --> | <!-- Yes, I know this isn't actually a template-linking template, but it's a heck of a lot easier to find if it's listed in the docs for e.g. {{tl}} --> | ||
− | | {{tlx|para|<nowiki>title|< | + | | {{tlx|para|<nowiki>title|< or without values |
|} | |} | ||
Revision as of 16:42, 31 July 2016
General-purpose formatting
Normal | {{ |
- 1
{{tlg}}
is the most general, allowing any combination of text style and/or link style options. - 2 Prevents wrapping of text by placing it inside
<span class="nowrap">...</span>
tags. - 3 Uses monospace font but not
<code>...</code>
. - 4
|| Supports linking to any namespace
|-
| {{demo|<nowiki>{{Hatnote|lang=fr|Some text}}</nowiki>}}
|| Template:Demo || Shows code and example
|-
| {{xpd|Hatnote|Some hatnote text}}
|| Template:If || Shows code, example and a link to expand the template code
|-
| {{tlx|para|<nowiki>title|< or without values
|}
With utility links
Code example | Effect |
---|---|
{{lts|Hatnote}} |
Template:Lts |
{{t links|Hatnote}} |
Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) · Module:hatnote |
{{tfd links|Hatnote}} |
Template:Hatnote (edit · talk · history · links · logs · subpages · delete) |
{{tiw|Hatnote}} |
Template:hatnote (backlinks edit) |
{{tltt|Hatnote}} |
{{Hatnote}} |
{{tetl|Hatnote}} |
{{Hatnote}} |
{{tsetl|Hatnote}} |
{{subst:Hatnote}} |
{{ti|Hatnote}} |
Template:Hatnote (talk⧼dot-separator⧽links⧼dot-separator⧽edit) |
{{tic|Hatnote}} |
Template:Hatnote (talk links edit) |
{{tiw|Hatnote}} |
Template:Hatnote (backlinks edit) |
{{tlt|Hatnote}} |
{{Hatnote}} (talk) |
{{ttl|Hatnote}} |
Template:Main other{{Hatnote}} (t/l) |
{{twlh|Hatnote}} |
Template:Hatnote (links, talk) |