Template:Computer
From syn2cat - HackerSpace.lu
(Difference between revisions)
(Created page with '==Example== Copy and paste this code or simply use the Form:Server to add a server.<br/> <pre> {{Workstation | name= <Computer name> | ip= <ip address> | brand = <manufactur…') |
|||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <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]]''' | ||
+ | |- | ||
+ | ! colspan="2" <!-- This is the header | ||
+ | --> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!-- | ||
+ | --> | [[Image:Computer.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{hostname|}}}|[[Has Name::{{{hostname}}}]]|[[Has Name::{{PAGENAME}}]] }}</span> | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#ehostname|External Hostname]]''': || [[Has ExternalHostName::{{{ehostname|}}}]] | ||
+ | |- | ||
+ | | 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::{{{operatingsystem|}}}]] | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#ComputerStatus|ComputerStatus]]''': || [[Has ComputerStatus::{{{computerstatus|}}}]] | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#Location|Location]]''': || [[Has Location::{{{location|}}}]] | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#Services|Services]]''': || {{#arraymap:{{{services|}}}|,|x|[[Has Service::x|x]]|, }} | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#Admin|Admin]]''': || {{#arraymap:{{{admin|}}}|,|x|[[Has Admin::User:x|x]] ([[Special:EmailUser/x|mail]]) | , }} | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#Museum|Museum]]''': || [[Belongs To Museum::{{{museum|}}}]] | ||
+ | |- | ||
+ | | style="padding: 0 7px;" | '''[[Template:Computer#QrCode|QrCode]]''': || {{#qrcode:}} | ||
+ | |} | ||
+ | {{#ifeq: {{{type|}}} | server | [[Category:Server]] | [[Category:Workstation]] }} | ||
+ | [[Category:Computer]] | ||
+ | </includeonly> | ||
+ | <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 |
− | | | + | | hostname= <host name> |
+ | | ehostname= <external host url> | ||
+ | | type= <server/computer> | ||
| ip= <ip address> | | ip= <ip address> | ||
| brand = <manufacturer> | | brand = <manufacturer> | ||
| model = <model name> | | model = <model name> | ||
− | | | + | | operatingsystem = <operating system> |
+ | | computerstatus = <current status of the system> | ||
+ | | location = <Localization of the 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> |
Latest revision as of 15:04, 17 April 2015
[edit] Example
Copy and paste this code or simply use the Form:Computer to add a server or workstation.
{{Computer | hostname= <host name> | ehostname= <external host url> | type= <server/computer> | ip= <ip address> | brand = <manufacturer> | model = <model name> | operatingsystem = <operating system> | computerstatus = <current status of the system> | location = <Localization of the system> | services = <comma separated list of notable running services> | admin = <admin wiki user> | museum = <whether belonging to the museum (yes/no)> }}