v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Tl/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(+)
(+)
 
Line 1: Line 1:
{{Tl|Tl}} is a simple macro template used to display a template name as a link. '''Tl''' stands for '''T'''emplate '''l'''ink.  
+
{{Tl|Tl}} is a simple macro template used to display a template name as a displayed formatted template, with the template linked inside: '''tl''' stands for '''t'''emplate '''l'''ink. It is meant to be used on internal pages and template documentation to exposit simple templates with up to three variables supported.
 +
 
 +
{{tt|<nowiki>{{tl|cv}}</nowiki>}} → {{tl|cv}}<br/>
 +
{{tt|<nowiki>{{tl|dffd|997}}</nowiki>}} → {{tl|dffd|997}}<br/>
 +
{{tt|<nowiki>{{tl|dffd|997|Map Compressor}}</nowiki>}} → {{tl|dffd|997|Map Compressor}}<br/>
 +
{{tt|<nowiki>{{tl|tt|{{tt|[HOMEOTHERM]}}|Warm-blooded creature|#4a8}}</nowiki>}} → {{tl|tt|{{tt|[HOMEOTHERM]}}|Warm-blooded creature|#4a8}}
  
Note that templates can also be linked to using <code>[[:Template:templatename]]</code> (by adding a colon in front of the link). This works for category pages as well.
 
  
<!--;related: {{Tl2|Tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call.-->
 
'''Example'''
 
  
{| class="wikitable"
 
! Code
 
! Result
 
|-
 
| <code><nowiki>{{Tl|x0}}</nowiki></code>
 
| {{Tl|x0}}
 
|}
 
 
<includeonly>[[Category:Inline formatting templates]]</includeonly>
 
<includeonly>[[Category:Inline formatting templates]]</includeonly>
 
<noinclude>[[Category:Template Documentation]]</noinclude>
 
<noinclude>[[Category:Template Documentation]]</noinclude>

Latest revision as of 03:56, 24 July 2013

{{Tl}} is a simple macro template used to display a template name as a displayed formatted template, with the template linked inside: tl stands for template link. It is meant to be used on internal pages and template documentation to exposit simple templates with up to three variables supported.

{{tl|cv}} → {{cv}}
{{tl|dffd|997}} → {{dffd|997}}
{{tl|dffd|997|Map Compressor}} → {{dffd|997|Map Compressor}}
{{tl|tt|{{tt|[HOMEOTHERM]}}|Warm-blooded creature|#4a8}} → {{tt|[HOMEOTHERM]|Warm-blooded creature|#4a8}}