Template:Port

From Serious Documentation
Jump to: navigation, search

Usage

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

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

{{Port|glass}}

and it will output

[[SHIP:Port:glass|glass]]

which looks like this, and will be a link to SHIP:Port:glass

glass

Or you can also specify substitute label text like this:

{{Port|glass|my glass port label}}

and it will output

[[SHIP:Port:glass|my glass port label]]

which looks like this, and will be a link to SHIP:Port:glass

my glass node label

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

Must specify a node type (e.g. box)[[SHIP:Port:{{{1}}}|{{{1}}}]]