Difference between revisions of "Template:SailFunc"

From Serious Documentation
Jump to: navigation, search
Line 12: Line 12:
  
 
== 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 function (e.g. round)}} | [[SHIP:Sail:{{{1}}}|<span style="background-color:#12EE88;">{{{1}}}</span>]]
+
</noinclude>{{#if: {{{1|}}} | | Must specify a function (e.g. round)}} | [[SHIP:Sail:{{{1}}}|<span style="background-color:#12EE88;"><code>{{{1}}}</code></span>]]

Revision as of 05:20, 22 June 2014

Usage

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

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

{{SailFunc|getChildIndex}}

and it will output

[[SHIP:Sail:getChildIndex]]

which looks like this, and will be a link to SHIP:Sail:getChildIndex

kick

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

Must specify a function (e.g. round) | [[SHIP:Sail:{{{1}}}|{{{1}}}]]