Template:Portvar

From Serious Documentation
Jump to: navigation, search

Usage

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

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

{{Portvar|glass|kick}}

and it will output

[[SHIP:Port:glass:kick]]

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

kick

Or you can also specify substitute label text like this:

{{Portvar|glass|kick|my alternate label}}

and it will output

[[SHIP:Port:glass:kick|my alternate label]]

which looks like this, and will be a link to SHIP:Property:visible

my alternate label

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

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