Template:Directionbox/doc

From MafiaWiki
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.

Meta-template for constructing small navigation notices.

Usage

{{directionbox
|text  =Example text.
}}

Parameters

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

The text you want the notice to display.

Optionalx14px
(default: "Icon disambig.svg")
{{#replace:{{#replace:{{#replace:{{#replace:image|| }}| >> | up to }}| // | or }}| ++ |, }}

Name of image to be displayed (without "File:" prefix).

Copy/paste

{{directionbox
|image =
|text  =
}}

Example

{{directionbox
|text  =For another use of this term, visit this page: Other page.
}}

results in:

For another use of this term, visit this page: Other page.