Template:Host: Difference between revisions

Template page
m (MAC address optional)
(infobox template)
Line 21: Line 21:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #eee; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
{{infobox start
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>[[Hostname::{{{name}}}]]</big>
|headercolor=#ccccff
|-
|name=[[Hostname::{{{name}}}]]
| Location
}}<!--
| [[Has location::{{{location|}}}]]
 
|-
-->{{infobox row |name=Ort      |value=[[Has location::{{{location|}}}]] }}<!--
| Zweck
-->{{infobox row |name=Zweck     |value=[[Has purpose::{{{purpose|}}}]]] }}<!--
| [[Has purpose::{{{purpose|}}}]]
 
|-
-->{{infobox row |name=OS       |value=[[Operating System::{{{os|}}}]]] }}<!--
| OS
-->{{infobox row |name=Disks     |value={{{disk|}}} }}<!--
| [[Operating System::{{{os|}}}]]
-->{{infobox row |name=RAM       |value={{{ram|}}} }}<!--
|-
-->{{ifnotempty|{{{swap|}}}           |{{infobox row |name=Swap           |value={{{swap|}}}         }}}}<!--
| Disks
 
| {{{disk|}}}
-->{{infobox row |name=ssh key path |value={{{ssh_root_keys|}}} }}<!--
|-
-->{{ifnotempty|{{{ssh_pam|}}}         |{{infobox row |name=PAM?           |value={{{ssh_pam|}}}     }}}}<!--
| RAM
-->{{ifnotempty|{{{ssh_userlogin|}}}   |{{infobox row |name=SSH user login? |value={{{ssh_userlogin}}} }}}}<!--
| {{{ram|}}}
 
|-
-->{{ifnotempty|{{{ownership|}}}       |{{infobox row |name=Besitzstatus   |value=[[Has ownership::{{{ownership|}}}| ]]
{{#if:{{{swap|}}}|{{!}}Swap}}
{{#if:{{{swap|}}}|{{!}}{{{swap|}}}}}
|-
| ssh key path
| {{{ssh_root_keys|}}}
|-
{{#if:{{{ssh_pam|}}}|{{!}}PAM?}}
{{#if:{{{ssh_pam|}}}|{{!}}{{{ssh_pam|}}}}}
|-
{{#if:{{{ssh_userlogin|}}}|{{!}}SSH user login?}}
{{#if:{{{ssh_userlogin|}}}|{{!}}{{{ssh_userlogin|}}}}}
|-
{{#if:{{{ownership|}}}|{{!}}Besitzstatus[[Has ownership::{{{ownership|}}}| ]]}}
{{#switch: {{{ownership|}}}
{{#switch: {{{ownership|}}}
  | private = {{!}}<span style="color: red">privat</span>
  | private = <span style="color: red">privat</span>
  | lent = {{!}}<span style="color: orange">Leihgabe</span>
  | lent   = <span style="color: orange">Leihgabe</span>
  | club = {{!}}<span style="color: green">Club-Eigentum</span>
  | club   = <span style="color: green">Club-Eigentum</span>
}}
}}<!--
|-
-->{{
| Admins
-->{{infobox row |name=Admins   |value={{#if:{{{admins|}}}|[[Has admins::{{{admins|}}}]]|'''FIXME'''}} }}<!--
| {{#if:{{{admins|}}}|[[Has admins::{{{admins|}}}]]|'''FIXME'''}}
-->{{ifnotempty|{{{mac|}}}             |{{infobox row |name=MAC address     |value=[[Has MAC address::{{{mac|}}}]]     }}}}<!--
|-
 
{{#if:{{{mac|}}}|{{!}}MAC address}}
-->
{{#if:{{{mac|}}}|{{!}}[[Has MAC address::{{{mac|}}}]]|}}
|}
|}
[[Category:Administration]]
[[Category:Administration]]
[[Category:Host]]
[[Category:Host]]
</includeonly>
</includeonly>

Revision as of 20:44, 22 August 2012

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

{{Host
|name=
|location=
|purpose=
|os=
|disk=
|ram=
|swap=
|ssh_root_keys=
|ssh_pam=
|ssh_userlogin=
|admins=
|ownership=
|mac=
}}

Edit the page to see the template text.