Difference between revisions of "Template:Inventory"

From Technologia Incognita
Jump to: navigation, search
 
m (same automagic colouring as InvTable?)
 
(9 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
{{Inventory
 
{{Inventory
 
|Picture=
 
|Picture=
 +
|Description=
 
|Make=
 
|Make=
 
|Model=
 
|Model=
 
|Manufacturer Link=
 
|Manufacturer Link=
 +
|Category=
 
|Operational Status=
 
|Operational Status=
 
|Super Users=
 
|Super Users=
Line 16: Line 18:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
+
</noinclude><includeonly>
! Picture
+
{| class="wikitable" style="float:right; clear:right; width:370px; margin:5px; font-size:95%; empty-cells:hide"
| [[picture::{{{Picture|}}}]]
+
|- style="font-size:150%; background: #CCCCCC; text-align:center;"  
 +
! colspan=2 | ''TechInc Inventory''
 +
|- style="text-align:center;"
 +
{{#if:{{{Picture|}}}|
 +
{{!}} style="vertical-align:top; text-align:center;" colspan="2" {{!}} [[File:{{{Picture}}}|300px]]
 +
}}
 
|-
 
|-
 +
! Description
 +
| [[InvDescript::{{{Description|}}}]]
 +
{{!}}-
 +
{{#if:{{{Make|}}}|
 
! Make
 
! Make
| [[InvMake::{{{Make|}}}]]
+
{{!}} [[InvMake::{{{Make|}}}]]
|-
+
}}
 +
{{!}}-
 +
{{#if:{{{Model|}}}|
 
! Model
 
! Model
| [[InvModel::{{{Model|}}}]]
+
{{!}} [[InvModel::{{{Model|}}}]]
|-
+
}}
 +
{{!}}-
 +
{{#if:{{{Manufacturer Link|}}}|
 
! 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|}}}|
 
! Super Users
 
! Super Users
| [[InvUsers::{{{Super Users|}}}]]
+
{{!}} {{#arraymap:{{{Super Users|}}}|,|x|[[InvUsers::x]]}}
 +
}}
 
|-
 
|-
 
! Received at
 
! Received at

Latest revision as of 10: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.