FANDOM


Clash Royale Shield The Clash Royale Wikia has its own version of this blog. If you are from the Clash Royale Wikia, click this notice to go that blog. Clash Royale Shield

Blank

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:

{{No Image}}

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 has a named parameter called "level":

{{LookupTankDPS|level=10}}

This template has two named parameters called "RES" and "SIZE":

{{Res|RES=Level|SIZE=25}}

This template has an unnamed parameter:

{{Sqrt|9}}

This template has two unnamed parameters:

{{Root|16|2}}

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

{{Xplvl
|lvl=61
|leader=No
|scale=.5
|left=0px
|top=0px
}}

...is equivalent to this markup:

{{Xplvl|lvl=61|leader=No|scale=.5|left=0px|top=0px}}

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.

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 Decoration

These templates are used to make pages look their best.

Fun

These templates are used mostly on User pages for fun.

Math

These templates are used to do math. They are mostly used for calculators or tables.

Lookups

Lookup templates are used within calculators and other templates to provide the statistics of in-game units to them. These templates are located in Category:Lookup Templates. All of these templates have only one named parameter. That parameter is "level" for most of the these lookups. The following Lookups use parameters other than "level":

CSS Shortcuts

These templates help when writing CSS in elements. These templates allow you to enter information for a CSS property once and have the template automatically reproduce that property with all compatibility prefixes.

Other

  • Template:Protection - places a stoplight at the top of the page that shows that page's protection level
  • Template:MagicWords - inserts the NOTOC and NOEDITSECTION magic words into pages
  • Template:Documentation - used on template pages (inside noinclude tags) to display information about how to use that template
  • Template:InvisHeader - creates an invisible header that can be linked to
  • Template:Help - creates a small icon that can be clicked or hovered over to offer help about something on a page




Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.