Difference between revisions 570519 and 600049 on mediawikiwiki

This was copied from wikitech.  I was experimenting, but now cannot delete?


{| class="infobox vcard" cellpadding="3" style="float:right; width: {{{box_width|22em}}}; text-align: left; font-size: 90%; {{{box_style|}}}"
| class="fn org" colspan="2" bgcolor={{{bgcolor_section|lavender}}} style="text-align: center; font-size: larger;" |'''{{#if:{{{name|<noinclude>Example</noinclude>}}}|{{{name|<noinclude>Example</noinclude>}}}|{{PAGENAME}}}}'''{{#if:{{{native_name|}}}|<br/><span class="nickname">{{{native_name}}}</span>}}{{#if:{{{latin_name|}}}|<br/><span class="nickname">{{{latin_name}}}</span>}}
|-
{{#if: {{{location|<noinclude>demo</noinclude>}}}|
{{!}} bgcolor=#efefef {{!}} Location:
{{!}} bgcolor=#f8f8ff {{!}} [[{{Server/location|{{{location|sandbox}}}}}]]
{{!}}-
}}
{{#if: {{{serial|}}}|
{{!}} bgcolor=#efefef {{!}} Serial:
{{!}} bgcolor=#f8f8ff {{!}} {{{serial}}}
{{!}}-
}}
{{#if: {{{racktables_id|}}}|
{{!}} bgcolor=#efefef {{!}} [[Racktables]] ID:
{{!}} bgcolor=#f8f8ff {{!}} #[https://racktables.wikimedia.org/index.php?page=object&object_id={{urlencode:{{{racktables_id}}}}} {{{racktables_id}}}]
{{!}}-
}}
{{#if: {{{usage|}}}|
{{!}} bgcolor=#efefef {{!}} Usage:
{{!}} bgcolor=#f8f8ff {{!}} {{Server/usage|{{{usage}}}}}
{{!}}-
}}
{{#if: <includeonly>demo</includeonly> |
{{!}} bgcolor=#efefef {{!}} Status:
{{!}} bgcolor=#f8f8ff {{!}} {{Server/status|{{{status|}}}}}
{{!}}-
}}
! colspan="2" bgcolor={{{bgcolor_section|lavender}}} style="text-align: center;" | Hardware
|-
{{#if: {{{memory|}}}|
{{!}} bgcolor=#efefef {{!}} Memory:
{{!}} bgcolor=#f8f8ff {{!}} {{{memory}}}
{{!}}-
}}
{{#if: {{{cpu|}}}|
{{!}} bgcolor=#efefef {{!}} CPU:
{{!}} bgcolor=#f8f8ff {{!}} {{{cpu}}}
{{!}}-
}}
{{#if: {{{hdd|}}}|
{{!}} bgcolor=#efefef {{!}} HDD:
{{!}} bgcolor=#f8f8ff {{!}} {{{hdd}}}
{{!}}-
}}
! colspan="2" bgcolor={{{bgcolor_section|lavender}}} style="text-align: center;" | Software
|-
{{#if: {{{os|}}}|
{{!}} bgcolor=#efefef {{!}} OS:
{{!}} bgcolor=#f8f8ff {{!}} {{Server/os|{{{os}}}}}
{{!}}-
}}
{{#if: {{{kernel|}}}|
{{!}} bgcolor=#efefef {{!}} Kernel:
{{!}} bgcolor=#f8f8ff {{!}} {{{kernel}}}
{{!}}-
}}
{{#if: {{{usage_version|}}}|
{{!}} bgcolor=#efefef {{!}} {{{usage}}}&nbsp;version:
{{!}} bgcolor=#f8f8ff {{!}} {{{usage_version}}}
{{!}}-
}}
{{#if: {{{server_group|<noinclude>demo</noinclude>}}}|
{{#if: {{{server_nodename|<noinclude>demo</noinclude>}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_section|lavender}}} style="text-align: center;" {{!}} {{Ganglia
  | cluster = {{Server/server group|{{{server_group|Example services}}}}}
  | node = {{{server_nodename|foo.examplenet}}}
  }} <includeonly>[[Category:Server group:{{Server/server group|{{{server_group}}}}}|{{{server_nodename}}}]]</includeonly>
{{!}}-
{{!}} bgcolor=#efefef {{!}} Server group:
{{!}} bgcolor=#f8f8ff {{!}} {{Server/server group|{{{server_group|Example services}}}}}
{{!}}-
{{!}} bgcolor=#efefef {{!}} Node name:
{{!}} bgcolor=#f8f8ff {{!}} {{{server_nodename|foo.examplenet}}}
{{!}}-
}}
}}
|}<includeonly><!--
  Categories:
-->[[Category:{{Server/location|{{{location}}}}} cluster]]<!--
-->[[Category:Servers]]<!--
--></includeonly><noinclude><div style="clear: both;"></div>
----
{{MoveToLabs}}

This template categorizes the host page into:
* [[:Category:Servers]]
* a subcategory of [[:Category:Cluster]] (based on the <tt>{{{location}}}</tt> parameter) 
* a subcategory of [[:Category:Servers by usage]] (based on the <tt>{{{usage}}}</tt>)
* a subcategory of [[:Category:Servers by status]] (based on the <tt>{{{status}}}</tt>)
* a subcategory of [[:Category:Servers by OS]] (based on the <tt>{{{os}}}</tt>)
* a subcategory of [[:Category:Servers by group]] (based on the <tt>{{{server_group}}}</tt>/<tt>{{{server_nodename}}}</tt>)

==Parameters==
;location: (required) Which [[:Category:cluster|cluster]] this server is located in.

;name: (optional: defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt>
;native_name: (optional)
;latin_name: (optional)
;serial: (optional)
;usage: (optional)
;status: (optional) Use <code>online</code>, <code>offline</code>, <code>unknown</code> or <code>decommissioned</code> (see [[Template:Server/status]])
;memory: (optional)
;cpu: (optional)
;hdd: (optional)
;os: (optional)
;kernal: (optional)
;usage_version: (optional)
;server_group: (optional) Name of organizational server group (not physical per se). Should match the "Source" group of the node in Ganglia (passed to {{tl|Ganglia}})
;server_nodename: (optional) "Node" hostname. Should match the "Node name" in Ganglia (passed to {{tl|Ganglia}})
;racktables_id: (optional) The "object_id" of the server in [[Racktables]]

;bgcolor_section: (optional)

==Usage==
<pre>{{Server
| location = 
| name = 
| racktables_id =
| serial = 
| usage = 
| status = 
| memory = 
| cpu = 
| hdd = 
| os = 
| kernel = 
| usage_version = 
| server_group =
| server_nodename =
}}</pre>
==Example==
*[[Db10]]

[[Category:Templates|{{PAGENAME}}]]
</noinclude>
{|
|Servernaam
|Serviceboard server
|-
|Hostnaam
|SB
|-
|DNS naam
|sb.ggzdb.nl 
|}