Difference between revisions of "Template:SailFunc"

From Serious Documentation
Jump to: navigation, search
Line 9: Line 9:
 
:<nowiki>[[SHIP:Sail:getChildIndex]]</nowiki>
 
:<nowiki>[[SHIP:Sail:getChildIndex]]</nowiki>
 
which looks like this, and will be a link to SHIP:Sail:getChildIndex
 
which looks like this, and will be a link to SHIP:Sail:getChildIndex
:<code><span style="border-bottom: 1px solid #12EE88 !important;">kick</span></code>
+
:<code><span style="font-family: 'Courier New','Andale Mono',monospace; border-bottom: 1px solid #12EE88 !important;">getChildIndex</span>(node)</code>
  
 
== 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|}}} | [[SHIP:Sail:{{{1}}}|<span style="font-family: 'Courier New','Andale Mono',monospace; border-bottom: 1px solid #12EE88 !important;">{{{1}}}</span>]] | Must specify a function (e.g. round)}}
 
</noinclude>{{#if: {{{1|}}} | [[SHIP:Sail:{{{1}}}|<span style="font-family: 'Courier New','Andale Mono',monospace; border-bottom: 1px solid #12EE88 !important;">{{{1}}}</span>]] | Must specify a function (e.g. round)}}

Revision as of 05:52, 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

getChildIndex(node)

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

Must specify a function (e.g. round)