Difference between revisions of "Template:Node"

From Serious Documentation
Jump to: navigation, search
Line 1: Line 1:
{{#if: {{{1|}}} | | Must specify a node type (e.g. box)}}{{#if: {{{2|}}} | [[SHIP:Node:{{{1}}}|{{{2}}}]] |  [[SHIP:Node:{{{1}}}|{{{1}}}]] }}
+
{{#if: {{{1|}}} | | Must specify a node type (e.g. box)}}{{#if: {{{2|}}} | [[SHIP:Node:{{{1}}}|{{{2}}}]] |  [[SHIP:Node:{{{1}}}|{{{1}}}]] <noinclude>
 +
== Usage ==
 +
This template should be used whenever you reference a node type name, like "resources" or "box".  It puts a link to SHIP:Node:(name) but gives us the future option of styling these differently and consistently.
 +
 
 +
You can just use the name of the node, like this:
 +
:<nowiki>{{NodeName|resources}}</nowiki>
 +
 
 +
and it will output
 +
:<nowiki>[[SHIP:Node:resources|resources]]</nowiki>
 +
which looks like this:
 +
:[[SHIP:Node:resources|resources]]
 +
 
 +
Or you can also specify substitute label text like this:
 +
:<nowiki>{{NodeName|resources|my resources node label}}</nowiki>
 +
and it will output
 +
:<nowiki>[[SHIP:Node:resources|my resources node label]]</nowiki>
 +
which looks like this:
 +
:[[SHIP:Node:resources|my resources node label]]
 +
 
 +
</noinclude>

Revision as of 06:07, 27 November 2012

Must specify a node type (e.g. box){{#if: | [[SHIP:Node:{{{1}}}|{{{2}}}]] | [[SHIP:Node:{{{1}}}|{{{1}}}]]

Usage

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

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

{{NodeName|resources}}

and it will output

[[SHIP:Node:resources|resources]]

which looks like this:

resources

Or you can also specify substitute label text like this:

{{NodeName|resources|my resources node label}}

and it will output

[[SHIP:Node:resources|my resources node label]]

which looks like this:

my resources node label