Difference between revisions of "Template:Machine"

From Technologia Incognita
Jump to: navigation, search
Line 5: Line 5:
 
{{Machine
 
{{Machine
 
|Hostname=
 
|Hostname=
|IPv4=
+
|ID=
 
|IPv6=
 
|IPv6=
 
|Function=
 
|Function=
Line 13: Line 13:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#set:IPv6={{{IPv6|}}}}}
+
</noinclude><includeonly>{{#set:IPv6={{#if: {{{IPv6}}}|2a02:898:109:2012::20:{{{ID}}}|}}}}
 
{| border="2" cellspacing="2" cellpadding="4" rules="all" style="float:right; clear:right; width:370px; margin:5px 0 1em 1em; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#FFFFFF; font-size:95%; empty-cells:hide"
 
{| border="2" cellspacing="2" cellpadding="4" rules="all" style="float:right; clear:right; width:370px; margin:5px 0 1em 1em; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#FFFFFF; font-size:95%; empty-cells:hide"
 
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
 
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
Line 26: Line 26:
 
|-
 
|-
 
! style="background-color:#DDDDDD;" | IPv4
 
! style="background-color:#DDDDDD;" | IPv4
| [[IPv4::{{{IPv4|}}}]]
+
| [[IPv4::10.0.20.{{{ID|}}}]]
 
|-
 
|-
 
! style="background-color:#DDDDDD;" | IPv6
 
! style="background-color:#DDDDDD;" | IPv6
| {{{IPv6|}}}
+
| {{#if: {{{IPv6}}}|{{{IPv6}}}|}}
 
|-
 
|-
 
! style="background-color:#DDDDDD;" | Function
 
! style="background-color:#DDDDDD;" | Function

Revision as of 14:33, 14 February 2013

This is the "Machine" template. It should be called in the following format:

{{Machine
|Hostname=
|ID=
|IPv6=
|Function=
|Location=
|Contact=
}}

Edit the page to see the template text.