Difference between revisions of "Template:Host"

From Chaosdorf Wiki
Jump to navigation Jump to search
(add field for NetBox ID)
m (print NetBox ID as link text)
Line 55: Line 55:
 
-->{{ifnotempty|{{{mac|}}}            |{{infobox row |name=MAC address    |value=[[Has MAC address::{{{mac|}}}]]      }}}}<!--
 
-->{{ifnotempty|{{{mac|}}}            |{{infobox row |name=MAC address    |value=[[Has MAC address::{{{mac|}}}]]      }}}}<!--
 
-->{{ifnotempty|{{{static_ip|}}}      |{{infobox row |name=Static IP      |value=[[Has IP address::{{{static_ip|}}}]] }}}}<!--
 
-->{{ifnotempty|{{{static_ip|}}}      |{{infobox row |name=Static IP      |value=[[Has IP address::{{{static_ip|}}}]] }}}}<!--
-->{{ifnotempty|{{{netbox_id|}}}      |{{infobox row |name=NetBox ID      |value=[https://netbox.chaosdorf.space/dcim/devices/{{{netbox_id}}}/] }}}}<!--
+
-->{{ifnotempty|{{{netbox_id|}}}      |{{infobox row |name=NetBox ID      |value=[https://netbox.chaosdorf.space/dcim/devices/{{{netbox_id}}}/ {{{netbox_id}}}] }}}}<!--
  
  

Revision as of 18:31, 13 December 2018

This is the 'Host' template. It should be called in the following format:

{{Host
|name=
|location=
|purpose=
|os=
|disk=
|ram=
|swap=
|admin_toolkit=Yes/No
|ssh_root_keys=
|ssh_pam=
|ssh_userlogin=
|admins=
|ownership=
|mac=
|static_ip=
}}

Edit the page to see the template text.