Template:Location: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
move to ext arg
test
Line 29: Line 29:
   | colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Locations:''' &nbsp; [[:Category:Location|all pages]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Location |{{}}]]</small>
   | colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Locations:''' &nbsp; [[:Category:Location|all pages]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Location |{{}}]]</small>
|}
|}
<includeonly>{{#ifeq: {{{past}}}|yes|{{#if:{{{parentlocation|}}}|[[Category:Sub-Location (past)]]|[[Category:Location (past)]]}}|{{#if:{{{parentlocation|}}}|[[Category:Sub-Location]]|[[Category:Location]]}} }}</includeonly>
<includeonly>{{#ifeq:{{NAMESPACE}} ||<!--then--> {{#ifeq: {{{past}}}|yes|{{#if:{{{parentlocation|}}}|[[Category:Sub-Location (past)]]|[[Category:Location (past)]]}}|{{#if:{{{parentlocation|}}}|[[Category:Sub-Location]]|[[Category:Location]]}} }} }}</includeonly>
<noinclude>
<noinclude>
{{clear}}
{{clear}}

Revision as of 09:06, 25 February 2019

Location
[[{{{image}}}|frameless|280px|center]]
Intended Use {{{use}}}
Floor {{{floor}}}
Located within [[{{{parentlocation}}}]]
Manufacturer {{{manufacturer}}}
Model {{{model}}}
Team Infrastructure
Map [[{{{floorplanimage}}}|frameless|220px|center]]
Locations:   all pages                 {{}}


Documentation

All arguments are optional, but you should have at least 1 (ideally more). Don't worry about the way it looks on this page: that's purely because no arguments are specified.

Usage

Inserting the following text at the top of the tool page will produce an information box on your page that gives an overview of the tool. Arguments can be written in any order.

Images look great with this template, include one if you can!

Abbreviated parameter list:

{{Location
|image=
|team=
|use=
|floor=
|parentlocation=
|floorplanimage=
}}

Arguments

image
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
team
Team responsible for looking after the area. Defaults to 'infrastructure'. Use name of team only without the 'Team:' prefix or double square brackets. For example, for Team:Laser use use 'team=Laser'. See category:Teams for Team names.
use
Use to describe the intended purpose of the area
floor
Use to note the level the location is on. Use: Upstairs or Downstairs.
parentlocation
Used for assigning a "parent" room for objects and storage locations.
floorplanimage
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
manufacturer
Some sub-locations have specific manufacturers (for example, SlimJim).
model
Some sub-locations have specific models (for example, SlimJim).
past
If the location is no longer part of the space, or has been used for something else use past=yes.

Extended arguments

manufacturer
Some sub-locations have specific manufacturers (for example, SlimJim).
model
Some sub-locations have specific models (for example, SlimJim).