Template:Tl/doc: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (1 revision: Importing useful Templates)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
[[Category:Templates]]{{Documentation subpage}}
<includeonly>{{high-risk| 1,400,000+ }}</includeonly>
<includeonly>{{high-risk| 1,400,000+ }}</includeonly>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Line 48: Line 48:
[[Category:Internal link templates]]
[[Category:Internal link templates]]


[[ar:قالب:قا]]
[[as:Template:Tl]]
[[az:Şablon:Tl]]
[[ba:Ҡалып:Ҡалып]]
[[be-x-old:Шаблён:Ш]]
[[bg:Шаблон:Ш]]
[[ca:Plantilla:Tl]]
[[cs:Šablona:Šablona]]
[[cy:Nodyn:Nodyn]]
[[da:Skabelon:Vis]]
[[de:Vorlage:Vorlage]]
[[dsb:Pśedłoga:Pśedłoga]]
[[eo:Ŝablono:Ŝ]]
[[es:Plantilla:Template link]]
[[fa:الگو:الگوی]]
[[fi:Malline:Malline]]
[[fr:Modèle:M]]
[[he:תבנית:תב]]
[[hr:Predložak:Tl]]
[[hy:Կաղապար:Կ]]
[[hsb:Předłoha:Předłoha]]
[[ia:Patrono:Tl]]
[[id:Templat:Tl]]
[[ja:Template:Tl]]
[[ka:თარგი:Tl]]
[[ko:틀:틀]]
[[kw:Template:Viz]]
[[la:Formula:Fn]]
[[my:Template:Tl]]
[[no:Mal:Mal]]
[[or:Template:Tl]]
[[pih:Template:Tl]]
[[pl:Szablon:S]]
[[pt:Predefinição:Ligação para predefinição]]
[[ru:Шаблон:Tl]]
[[sk:Šablóna:Tl]]
[[sl:Predloga:Tl]]
[[stq:Foarloage:Foarloage]]
[[sv:Mall:Mall]]
[[th:แม่แบบ:Tl]]
[[tr:Şablon:Tl]]
[[uk:Шаблон:Tl]]
[[ur:سانچہ:Tl]]
[[vi:Tiêu bản:Tl]]
[[zh:Template:Tl]]
[[zh-yue:Template:Tl]]
</includeonly>
</includeonly>

Latest revision as of 03:03, 13 December 2012


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
{{Example}}

More complex variations are described below.

Example[edit source]

Code Result
{{Tl|Void}} {{Void}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} {{=)}}

See also[edit source]

Template linking templates
Link style Linked Unlinked Linked with subst Linked including braces Linked with alternative text
Text style {{tlg}} option ​nolink=yes​ ​subst=yes​ ​braceinside=yes​ ​alttext=FOO​
Normal {{tl}} · {{tlp}} · {{tlg}} {{tlf}} {{tls}} · {{tlsp}} {{tn}} {{tla}}
Teletype ​tt=yes​ {{tlx}} {{tld}} · {{tnull}} {{tlxs}}
Bold ​bold=yes​ {{tlb}}
Bold teletype ​bold=yes|tt=yes​ {{tlxb}}
Italic teletype ​italic=yes|tt=yes​ {{tlxi}}
Code ​code=yes​ {{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... {{Milford Haven Line|弘安源氏論議}}
  • {{tlc|Milford Haven Line|弘安源氏論議}} ...produces... {{Milford Haven Line|弘安源氏論議}}


For parameter description
  • {{para|<var>name</var>|value}} ...renders... |name=value