Difference between revisions of "Template:Reserved"

From Serious Documentation
Jump to: navigation, search
(Created page with "<noinclude> == Reserved Word Template Usage == This template should be used whenever you reference a '''Reserved Word''', like "true". It puts a link to SHIP:Reserved_Words#(...")
 
(Undo revision 2634 by NickW-Serious (talk))
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== Reserved Word Template Usage ==
+
== Usage ==
 
This template should be used whenever you reference a '''Reserved Word''', like "true".  It puts a link to SHIP:Reserved_Words#(word) but gives us the future option of styling these differently and consistently.
 
This template should be used whenever you reference a '''Reserved Word''', like "true".  It puts a link to SHIP:Reserved_Words#(word) but gives us the future option of styling these differently and consistently.
  
Line 19: Line 19:
  
 
== Ignore this stuff below... that's the code for the template ==
 
== Ignore this stuff below... that's the code for the template ==
</noinclude>{{#if: {{{1|}}} | | Must specify a reserved word (e.g. true)}}{{#if: {{{2|}}} | [[SHIP:Reserved_Words#{{{1}}}|{{{2}}}]] |  [[SHIP:Reserved_Words#{{{1}}}|{{{1}}}]] }}
+
</noinclude>{{#if: {{{1|}}} | | Must specify a reserved word (e.g. true)}}{{#if: {{{2|}}} | [[SHIP:Reserved_Words#{{{1}}}|<code>{{{2}}}</code>]] |  [[SHIP:Reserved_Words#{{{1}}}|<code>{{{1}}}</code>]] }}

Latest revision as of 10:39, 1 February 2013

Usage

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

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

{{Reserved|true}}

and it will output

[[SHIP:Reserved_Words#true|true]]

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

true

Or you can also specify substitute label text like this:

{{Reserved|true|my alternate label}}

and it will output

[[SHIP:Reserved_Words#true|alternate label]]

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

alternate label

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

Must specify a reserved word (e.g. true)[[SHIP:Reserved_Words#{{{1}}}|{{{1}}}]]