Template:Lts/doc

From PortlandWiki
Jump to: navigation, search


Main discussion & Queries: template talk:Lts


Template:Lts is a smaller variant of {{Lt}} with pleasant output, for use especially also on browsers which don't support ·.

Usage

{{Lts|template}} shows links for the specified template.
{{Lts}} shows links for a template wrt the {{PAGENAME}}.

Example

Code Result
{{Lts|Lt}} Template:Lt (edit talk links history)
{{Lts}} Template:Lts/doc (edit talk links history)

See also

Template:Las (edit talk links history) 'Lts' formatted, but for anything,
 Defaults to article space, but accepts category or template, etc. namespace prefixes too.
Template:Lts (edit talk links history) for templates (List Template Short ["Lt"])
Template:Lcs (edit talk links history) for categories
Template:Lps (edit talk links history) for {{ns:Project}} (= PortlandWiki)
Template:Ltsmeta (edit talk links history) for templates copied from Meta
Template:Lts/ (edit talk links history) for template lists (see below)
Template:Lx (edit talk links history) boilerplate for the Lx family
Category:Internal link templates for a comparison of this zoo see below
Template:Ltsmeta
Template:Ltsmeta
Template:Ltsmeta

Comparison

We got a zoo of similar templates, pick what you like. This list is probably incomplete and intentionally omits variants with parameters like {{Tlx}} and redirections like {{Tln}}:

Source Code Result
Template:Lts/ {{lt|x4}} Template:Lt
Template:Lts/ {{lts|x4}} Template:X4 (edit talk links history)
Template:Lts/ {{lts/|x4}} Template:Lts/
Template:Lts/ {{tetl|x4}} Template:Tetl
Template:Lts/ {{ti|x4}} Template:Ti
Template:Lts/ {{tic|x4}} Template:Tic
Template:Lts/ {{tiw|x4}} w:Template:X4
Template:Lts/ {{tl|x4}} {{x4}}
Template:Lts/ {{tn|x4}} {{x4}}
Template:Lts/ {{tlc|x4}} {{x4}}
Template:Lts/ {{tls|x4}} Template:Tls
Template:Lts/ {{tlsetl|x4}} Template:Tlsetl
Template:Lts/ {{tlt|x4}} Template:Tlt
Template:Lts/ {{ttl|x4}} Template:Ttl
Template:Lts/ {{twlh|x4}} Template:Twlh
Template linking templates
Link Style Linked Unlinked Linked with subst: Linked including braces Linked with alternative text
Text Style {{tlg}} option -- <syntaxhighlight lang="text" enclose="none">​nolink=yes​</syntaxhighlight> <syntaxhighlight lang="text" enclose="none">​subst=yes​</syntaxhighlight> <syntaxhighlight lang="text" enclose="none">​braceinside=yes​</syntaxhighlight> <syntaxhighlight lang="text" enclose="none">​alttext=FOO​</syntaxhighlight>
Normal -- {{tl}}, {{tlp}}; {{tlg}} {{tlf}} {{tls}}, {{tlsp}} {{tn}} {{tla}}
Teletype <syntaxhighlight lang="text" enclose="none">​tt=yes​</syntaxhighlight> {{tlx}} {{tld}}, {{tnull}} {{tlxs}}
Bold <syntaxhighlight lang="text" enclose="none">​bold=yes​</syntaxhighlight> {{tlb}}
Bold Teletype <syntaxhighlight lang="text" enclose="none">​bold=yes|tt=yes​</syntaxhighlight> {{tlxb}}
Italic Teletype <syntaxhighlight lang="text" enclose="none">​italic=yes|tt=yes​</syntaxhighlight> {{tlxi}}
Code <syntaxhighlight lang="text" enclose="none">​code=yes​</syntaxhighlight> {{tlc}}
NOTE: {{tlg}} is the most general, allowing any combination of the above options.

Style comparison:

  • {{tlf|Milford Haven Line|弘安源氏論議}} produces: {{Milford Haven Line|弘安源氏論議}}
  • {{tld|Milford Haven Line|弘安源氏論議}} produces: Template:Tld
  • {{tlc|Milford Haven Line|弘安源氏論議}} produces: {{Milford Haven Line|弘安源氏論議}}

For parameter description,

  • {{para|<var>name</var>|value}} renders: |name=value