Difference between revisions of "Template:Inventory"

From Technologia Incognita
Jump to: navigation, search
m
m (same automagic colouring as InvTable?)
 
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
|Model=
 
|Model=
 
|Manufacturer Link=
 
|Manufacturer Link=
 +
|Category=
 
|Operational Status=
 
|Operational Status=
 
|Super Users=
 
|Super Users=
Line 19: Line 20:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{| class="wikitable" style="float:right; clear:right; width:370px; margin:5px; font-size:95%; empty-cells:hide"
 
{| class="wikitable" style="float:right; clear:right; width:370px; margin:5px; font-size:95%; empty-cells:hide"
|- style="text-align:center;"
+
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
 
! colspan=2 | ''TechInc Inventory''  
 
! colspan=2 | ''TechInc Inventory''  
 
|- style="text-align:center;"
 
|- style="text-align:center;"
Line 42: Line 43:
 
! Manufacturer Link
 
! Manufacturer Link
 
{{!}} [[InvLink::{{{Manufacturer Link|}}}]]
 
{{!}} [[InvLink::{{{Manufacturer Link|}}}]]
 +
}}
 +
{{!}}-
 +
{{#if:{{{Category|}}}|
 +
! Category
 +
{{!}} [[InvCategory::{{{Category|}}}]]
 
}}
 
}}
 
|-
 
|-
 
! Operational Status
 
! Operational Status
| [[InvStatus::{{{Operational Status|}}}]]
+
|{{#switch: {{{Operational Status|}}} | Working = style="background: #32CD32; text-align: center" | Functional = style="background: #BFFF00; text-align: center" | BROKEN = style="background: #FF6347; text-align: center" | #default = style="background: #BDBDBD"}} | [[InvStatus::{{{Operational Status|}}}]]
 
{{!}}-
 
{{!}}-
 
{{#if:{{{Super Users|}}}|
 
{{#if:{{{Super Users|}}}|
 
! Super Users
 
! Super Users
| [[InvUsers::{{{Super Users|}}}]]
+
{{!}} {{#arraymap:{{{Super Users|}}}|,|x|[[InvUsers::x]]}}
 
}}
 
}}
 
|-
 
|-

Latest revision as of 11:56, 30 May 2013

This is the "Inventory" template. It should be called in the following format:

{{Inventory
|Picture=
|Description=
|Make=
|Model=
|Manufacturer Link=
|Category=
|Operational Status=
|Super Users=
|Received at=
|Acquisition Details=
|Owner=
}}

Edit the page to see the template text.