FANDOM


Templates are pages in the Template Namespace that are transcluded into multiple content pages. When a template is transcluded, the template page is copied onto the page. Templates can also be used to process inputs and display different results using parameters.

Template Mark-ups

The basic template Wikitext mark-up is the template's name surrounded by two curly brackets. Example:

{{Card}}

Templates can also have parameters which are inputs that are processed by the template to change how it displays. If a template has parameters, they will be listed on the template's documentation on its page. Parameters are separated from the template name and each other by pipes [|]. The parameter name/number (if applicable) is separated from the actual input by an equal sign [=]. Parameters can be named or unnamed.

Examples:

This template a named parameter called "Name":

{{Card|Name=Witch}}

This template has two named parameters called "Scale" and "Link":

{{Card|Scale=.2|Link=Witch}}

This template has an unnamed parameter:

{{LookupCardRarity|Archers}}

This template has two unnamed parameters:

{{Root|16|2}}

Parameters do not need to be listed inline. This markup...

{{Card
|Name=Witch
|Scale=.2
|Link=Witch
|Position=middle
}}

...is equivalent to this markup:

{{Card|Name=Witch|Scale=.2|Link=Witch|Position=middle}}

Important Templates

Below are lists of templates that we use frequently here. If you want to learn more about what a specific template does, visit that template's page by clicking the link. There, you will find the template's documentation.

Vital Templates

These templates are very important for the design of articles or the workings of other templates and tools but also likely to need updating from time to time.

Lookup templates are used to ensure that when an important mechanic of the game is changed, only the Lookup template needs to be updated rather than every template or tool that uses that mechanic.

Article Management

These templates are posted at the top of a page to classify it. Each one creates a large banner and places the affected page into a category.

See Article management templates

Images and Design

These templates are used to make pages look their best.

Fun

These templates are used mostly on User pages for fun.

Other