Template:Computer

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| align="right" cellpadding="4" cellspacing="0" style="width: 300px; margin: 0 0 1em 1em; border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px; background-color: #FF0000"
+
<!--
| align="center" colspan="2" style="background-color: white; text-align: center;" | {| width="100%"
+
--> {| class="" cellpadding="2" cellspacing="0" <!--
! style="padding: 7px; font-size: 1.5em; color: white; background: #000066" align="center" | {{{name}}}
+
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
 +
|+ '''[[Form:Computer|Add a Computer]]'''
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Name:
+
! colspan="2" <!-- This is the header
 +
--> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!--
 +
--> | [[Image:Event.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{name|}}}|[[Has Name::{{{name}}}]]|[[Has Name::{{PAGENAME}}]] }}</span>
 
|-
 
|-
| [[ServerName::{{{name}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Computer#IP|IP]]''': || [[Has IP::{{{ip}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | IP:
+
| style="padding: 0 7px;"  | '''[[Template:Computer#Type|Type]]''': || [[Is Type::{{{type}}}]]
 
|-
 
|-
| [[ServerIP::{{{ip}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Computer#Brand|Brand]]''': || [[Is Brand::{{{brand}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Services:
+
| style="padding: 0 7px;"  | '''[[Template:Computer#Model|Model]]''': || [[Is Model::{{{model}}}]]
 
|-
 
|-
| {{#arraymap:{{{services|}}}|,|x|[[ServerServices::x|x]]|, }}
+
| style="padding: 0 7px;"  | '''[[Template:Computer#OperatingSystem|OS]]''': || [[Has OS::{{{os}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | ServerAdmin:
+
| style="padding: 0 7px;"  | '''[[Template:Computer#Service|Service]]''': || {{#arraymap:{{{services|}}}|,|x|[[Has Service::x|x]]|, }}
 
|-
 
|-
| [[ServerAdmin::{{{admin}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Computer#Admin|Admin]]''': || [[Has Admin::{{{admin}}}]]
|}
+
|-
 +
| style="padding: 0 7px;"  | '''[[Template:Computer#Museum|Museum]]''': || [[Belongs To Museum::{{{museum}}}]]
 +
}}
 
|}
 
|}
[[Category:Workstations]]</includeonly>
+
{{#ifeq: {{{type|}}} | server | [[Category:Servers]] | [[Category:Workstations]] }}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
==Example==
 
==Example==
Copy and paste this code or simply use the [[Form:Workstation]] to add a workstation.<br/>
+
Copy and paste this code or simply use the [[Form:Computer]] to add a server or workstation.<br/>
  
 
<pre>
 
<pre>
{{Workstation
+
{{Computer
 
| name= <Computer name>
 
| name= <Computer name>
 +
| type= <server/computer>
 
| ip= <ip address>
 
| ip= <ip address>
 
| brand = <manufacturer>
 
| brand = <manufacturer>
 
| model = <model name>
 
| model = <model name>
 
| os = <operating system>
 
| os = <operating system>
 +
| services = <comma separated list of notable running services>
 
| admin = <admin wiki user>
 
| admin = <admin wiki user>
 +
| museum = <whether belonging to the museum (yes/no)>
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 19:54, 10 December 2009


Example

Copy and paste this code or simply use the Form:Computer to add a server or workstation.

{{Computer
| name= <Computer name>
| type= <server/computer>
| ip= <ip address>
| brand = <manufacturer>
| model = <model name>
| os = <operating system>
| services = <comma separated list of notable running services>
| admin = <admin wiki user>
| museum = <whether belonging to the museum (yes/no)>
}}
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools