Difference between revisions of ""PTTLink Wiki":Link templates/Template links"

From "PTTLink Wiki"
Jump to navigation Jump to search
Mediawiki>Herbythyme
m (Reverted edits by Onehit779 (talk) to last revision by ExE Boss)
 
m (1 revision imported)
 

Latest revision as of 08:03, 24 January 2022

[edit subpage]

Template links

List of templates using {{T/main}}
Code Result Notes lock

{{T|example}}

{{Example}} makes brackets part of the link; see docu File:Lock-r.svg

{{T0|example}}

Example just link, without the brackets; see docu File:Lock-g.svg

{{T1|example}}

{{Example}} inner brackets are part of the link; see docu File:Lock-g.svg

{{T2|example}}

{{Example}} brackets are not a part of the link; see docu File:Lock-g.svg

{{Tl|example}}

{{example}} makes brackets around the link; see docu File:Lock-r.svg

{{Tls|example}}

{{subst:example}} no parameters, adds "subst:" File:Lock-r.svg
Templates showing parameters 0 Meta template {{Tle}} is easiest to parametrize.

{{Tle|T=F|p1=1|v1|p2=2|v2|p3=3|v3}}

{{ F | 1 = v1 | 2 = v2 | 3 = v3 }} decribes template parameters by names and values File:Lock-g.svg

{{Tlx|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5||7|8|9}} up to 8 parameters File:Lock-r.svg

{{Tlf|example|1|2|3|...up to 8}}

{{example|1|2|3|...up to 8}} up to 8 parameters, no link; see docu File:Lock-r.svg

{{Tlc|example|1|2|3|4|||7|up to 8|9}}

{{example|1|2|3|4|||7|up to 8|9}} up to 8 parameters, no link, <code> style File:Lock-g.svg

{{Tld|example|1|2||3||}}

{{example|1||2|3||}} up to 8 parameters, <code> style; see docu File:Lock-g.svg

{{Tlr|User:Example}}

like {{tl}} but for any namespace File:Lock-g.svg

{{Tlsu|User:Example}}

{{subst:User:Example}} like {{tlr}}, but also adds "subst:" File:Lock-g.svg
Alternative forms 0 These ignore empty parameters.

{{Tlp|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5||7|8|9}} up to 8 parameters; ignores empty parms File:Lock-r.svg

{{Tl2|example|p1|p2}}

{{example|p1|p2}} up to 2 parameters, <code> style; see docu File:Lock-g.svg

{{Tlsp|example|1|2|3|4|5|6|7|8|9}}

{{subst:example|1|2|3|4|5|6|7|8|9}} up to 8 parameters, adds linked "subst:"; see doc File:Lock-g.svg

{{Tlsx|example|1|2|3|4|5|6|7|8|9}}

{{subst:example|1|2|3|4|5|6|7|8|9}} up to 5 parameters, adds linked "subst:", <code> style File:Lock-g.svg

General-purpose formatting

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ {{tlg}} options[note 1]
to achieve text style
Link style
Linked Unlinked Linked with subst Unlinked with subst Linked including braces
{{tlg}} options[note 1]
to achieve link style
N/A DEFAULT nolink=yes subst=yes nolink=yes|subst=yes braceinside=yes
normal DEFAULT N/A
code code=yes
N/A
monospace plaincode=yes[note 4] N/A
N/A
kbd kbd=yes[note 5]
  1. 1.0 1.1 1.2 {{tlg}} is the most general template, allowing any combination of text style and/or link style options.
  2. 2.0 2.1 2.2 2.3 2.4 Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  3. 3.0 3.1 3.2 Allows links to templates in any namespace.
  4. {{tlg|plaincode=yes}} uses <code style="border: none; background-color: transparent;">...</code>.
  5. 5.0 5.1 5.2 5.3 Displays monospaced font using <span style="font-family: monospace;">...</span>.
Documentationcreate · purge ]