Sixty Four Wiki
Tap into the secrets of the Universe

Template:Tag

Template page


Description

The Tag template is used in order to combine Text with Icon (Twi) template with a specific property tag. You can copy or change it to fit your game.

How to create a template for a specific property

For example, if you want to tag a weapon that the hero uses, and display the weapon icon on it, create a template yourgame.game-vault.net/wiki/Template:Weapon with the following code:

<includeonly>{{#set:weapon={{{1}}}}}{{twi|{{{1}}}}}</includeonly>
Usage

On the hero page, you can use:

{{weapon|Staff}}

where the only template parameter is the name of a weapon page (eg. Staff).

Explanation

The first declaration ({{#set:weapon={{{1}}}}}) links the current hero page with the weapon page. And the second one ({{twi|{{{1}}}}}) retrieves the value of the Icon property from the weapon page.

SemanticMediaWiki

You can use properties to make smart lists using SemanticMediaWiki, instead of manually gathering info. For example, this template stores a semantic link between the hero and the weapon, making it possible to get a list of heroes using Staff weapon automatically, like that:

{{#ask:                       <!-- # query -->
  [[Category:Heroes]]         <!-- # all pages in category Heroes -->
  [[Weapon::Staff]]           <!-- # having Staff weapon -->
  |format=ul                  <!-- # and print results as unordered (bulleted) list -->
}}

A single page can store many semantic properties, for example: element, type, rarity, and so on.