Template:DataType

From Serious Documentation
Jump to: navigation, search

Usage

This template should be used whenever you reference a data type name, like "Boolean" or "Short". It puts a link to SHIP:Data_Types#(name) but gives us the future option of styling these differently and consistently.

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

{{DataType|Boolean}}

and it will output

[[SHIP:Data_Types#Boolean|Boolean]]

which looks like this, and will be a link to SHIP:Node:resources

Boolean

Or you can also specify substitute label text like this:

{{DataType|Boolean|my Boolean label}}

and it will output

[[SHIP:Data_Types#Boolean|my resources node label]]

which looks like this, and will be a link to SHIP:Node:resources

my Boolean label

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

Must specify a data type (e.g. Boolean)[[SHIP:Data_Types:{{{1}}}|{{{1}}}]]