Template:Computer
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {| | + | <!-- |
| − | | | + | --> {| class="" cellpadding="2" cellspacing="0" <!-- |
| − | + | --> 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 | + | ! 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> | ||
|- | |- | ||
| − | | [[ | + | | style="padding: 0 7px;" | '''[[Template:Computer#IP|IP]]''': || [[Has IP::{{{ip}}}]] |
|- | |- | ||
| − | + | | style="padding: 0 7px;" | '''[[Template:Computer#Type|Type]]''': || [[Is Type::{{{type}}}]] | |
|- | |- | ||
| − | | [[ | + | | style="padding: 0 7px;" | '''[[Template:Computer#Brand|Brand]]''': || [[Is Brand::{{{brand}}}]] |
|- | |- | ||
| − | + | | style="padding: 0 7px;" | '''[[Template:Computer#Model|Model]]''': || [[Is Model::{{{model}}}]] | |
|- | |- | ||
| − | | | + | | style="padding: 0 7px;" | '''[[Template:Computer#OperatingSystem|OS]]''': || [[Has OS::{{{os}}}]] |
|- | |- | ||
| − | + | | style="padding: 0 7px;" | '''[[Template:Computer#Service|Service]]''': || {{#arraymap:{{{services|}}}|,|x|[[Has Service::x|x]]|, }} | |
|- | |- | ||
| − | | [[ | + | | 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: | + | Copy and paste this code or simply use the [[Form:Computer]] to add a server or workstation.<br/> |
<pre> | <pre> | ||
| − | {{ | + | {{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 18: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)>
}}