Template:Portvar

From Serious Documentation
Revision as of 17:41, 31 January 2013 by NickW-Serious (talk | contribs) (Created page with "<noinclude> == 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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}}}]]