Template:Inventory: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{InventoryItem
{{Inventory
|Name=
|Name=
|InventoryOwner=
|Owner=
|InventoryStatus=
|Status=
|InventoryHostname=
|Hostname=
|InventoryLocation=
|Location=
|InventoryMap_x=
|Map_x=
|InventoryMap_y=
|Map_y=
|Picture=
|Picture=
|Category=
}}
}}
</pre>
</pre>
Line 23: Line 24:
|-
|-
! Owner
! Owner
| [[InventoryOwner::{{{InventoryOwner| }}}]]
| [[Inventory Owner::{{{Owner| }}}]]
|-
|-
! Status
! Status
| [[InventoryStatus::{{{InventoryStatus|}}}]]
| [[Inventory Status::{{{Status|}}}]]
{{!}}-
{{!}}-
{{#if:{{{InventoryHostname|}}}|
{{#if:{{{Hostname|}}}|
! Hostname
! Hostname
{{!}}[[InventoryHostname::{{{InventoryHostname|}}}]]
{{!}}[[Inventory Hostname::{{{Hostname|}}}]]
}}
}}
{{!}}-
{{!}}-
{{#if:{{{InventoryLocation|}}}|
{{#if:{{{Location|}}}|
! Location
! Location
{{!}}[[InventoryLocation::{{#if{{{Location}}}|{{{Location|}}}|{{{InventoryLocation|}}} }}]]
{{!}}[[Inventory Location::{{{Location|}}}]]
}}
}}
{{#if:{{{InventoryMap_x|}}}|
{{#if:{{{Map_x|}}}|
{{!}}-
{{!}}-
! colspan=2{{!}}{{Site_plan|marker=CircleRed.png|markersize=30|pos_x={{{InventoryMap_x|}}}|pos_y={{{InventoryMap_y|}}}|map=Space_Basis.png|mapsize_x=370|mapsize_y=370}}
! colspan=2{{!}}{{Site_plan|marker=CircleRed.png|markersize=30|pos_x={{{Map_x|}}}|pos_y={{{Map_y|}}}|map=Space_Basis.png|mapsize_x=370|mapsize_y=370}}
}}
}}
|-
|-
! Tool
! Tool
| [[Tool::{{{Tool|}}}]]
| [[Tool::{{{Tool|}}}]]
|-
! Tool category
| [[Tool Category::{{{Category|}}}]]
|}
|}
<!-- hack -->
<!-- hack -->
Line 51: Line 55:
{{#if:{{{Tool}}} | [[Tool Image String::{{{Picture}}}]] | }}
{{#if:{{{Tool}}} | [[Tool Image String::{{{Picture}}}]] | }}
{{#if:{{{Tool}}} | [[Tool Owner::{{{InventoryOwner}}}]] | }}
{{#if:{{{Tool}}} | [[Tool Owner::{{{InventoryOwner}}}]] | }}
{{#if:{{{Tool}}} | [[Tool Location::{{#if{{{Location}}}|{{{Location}}}|{{{InventoryLocation}}} }}
{{#if:{{{Tool}}} | [[Tool Location::{{{Location}}}]] | }}
</div>
</div>
[[Category:Inventory]]
[[Category:Inventory]]

Latest revision as of 11:16, 24 August 2014

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

{{Inventory
|Name=
|Owner=
|Status=
|Hostname=
|Location=
|Map_x=
|Map_y=
|Picture=
|Category=
}}

Edit the page to see the template text.