Template:Const

From Serious Documentation
Jump to: navigation, search

Usage

This template should be used whenever you reference a Constant, like "TOUCH.UP". It puts a link to SHIP:Constants:(word) but gives us the future option of styling these differently and consistently.

You can just use the name of the node, like this:

{{Const|TOUCH.UP}}

and it will output

[[SHIP:Constants:TOUCH.UP|TOUCH.UP]]

which looks like this, and will be a link to SHIP:Constants:TOUCH.UP

TOUCH.UP

Or you can also specify substitute label text like this:

{{Const|TOUCH.UP|my alternate label}}

and it will output

[[SHIP:Constant:TOUCH.UP|my alternate label]]

which looks like this, and will be a link to SHIP:Constant:TOUCH.UP

my alternate label

Ignore this stuff below... that's the code for the template

Must specify a constant (e.g. TOUCH.UP)[[SHIP:Constants:{{{1}}}|{{{1}}}]]