Difference between revisions of "Template:Protocol"

From Serious Documentation
Jump to: navigation, search
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><span style="background-color:rgba(238,204,136,0.3);">''{{#if: {{{1|}}} | {{#if: {{{2|}}} | [[Protocol:{{{1}}}|{{{2}}}]] | [[Protocol:{{{1}}}|{{{1}}} protocol]]}} | {{#if: {{{2|}}} | [[Protocol|{{{2}}}]]| [[Protocol|{{SUBPAGENAME}}]]}} }}</span>
+
</noinclude><span style="background-color:rgba(238,204,136,0.3);">''{{#if: {{{1|}}} | {{#if: {{{2|}}} | [[Protocol:{{{1}}}|{{{2}}}]] | [[Protocol:{{{1}}}|{{{1}}} protocol]]}} | {{#if: {{{2|}}} | [[Protocols|{{{2}}}]]| [[Protocols|{{SUBPAGENAME}}]]}} }}</span>

Revision as of 05:06, 21 September 2014

Usage

This template should be used whenever you reference a protocol type name, like "Modbus" or "Bridge". It puts a link to Protocol:(name) but gives us the future option of styling these differently and consistently.

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

{{Protocol|Modbus}}

and it will output

[[Protocol:Modbus|Modbus]]

which looks like this, and will be a link to Protocol:Modbus

Modbus protocol

Or you can also specify substitute label text like this:

{{Protocol|Modbus|my label}}

and it will output

[[Protocol:Modbus|my label]]

which looks like this, and will be a link to Protocol:Modbus

my label

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

Protocol