Template:Tl/doc

From MafiaWiki
Revision as of 08:41, 13 January 2013 by TimeTrx (Talk | contribs) (Created page with "<noinclude>{{Documentationpage}}</noinclude> Template for easy linking of templates with the appearance of wiki syntax. ==Usage== <pre>{{tl|name}}</nowiki></pre> ===Paramete...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

For use on template documentation pages. Adds header and category.

Based on {{directionbox}}.

Usage

Place the following at the top of the documentation page:

<noinclude>{{Documentationpage}}</noinclude>

Parameters

Optionalx14px
(default: "First part of {{PAGENAME}}")
{{#replace:{{#replace:{{#replace:{{#replace:<unnamed 1> // page|| }}| >> | up to }}| // | or }}| ++ |, }}

Name of the page the documentation page belongs to.

Optionalx14px
(default: "default")
{{#replace:{{#replace:{{#replace:{{#replace:type|| }}| >> | up to }}| // | or }}| ++ |, }}

Allows to specify the type of documentation page and alters display text accordingly.

Available options:

  • default: This page is a normal documentation page.
  • standard: This page is a standard documentation page for all templates based on a specific meta template.

Template for easy linking of templates with the appearance of wiki syntax.

Usage

{{tl|name}}</nowiki>

Parameters

Requiredx14px
{{#replace:{{#replace:{{#replace:{{#replace:<unnamed 1>|| }}| >> | up to }}| // | or }}| ++ |, }}

Name of the template (without "Template:").

Example

{{tl|Main}}

results in: {{Main}}

Template:Copyright Wikipedia