Template:Location: Difference between revisions
Jump to navigation
Jump to search
m Allow any text in location but catch Upstairs & Downstairs |
Parent parameter |
||
Line 9: | Line 9: | ||
! Floor | ! Floor | ||
| {{#switch:{{lc:{{{floor|}}}}}|upstairs=[[Hackspace 2.0|Upstairs]]|downstairs=[[Hackspace 2.5|Downstairs]]|#default={{{floor}}} }} | | {{#switch:{{lc:{{{floor|}}}}}|upstairs=[[Hackspace 2.0|Upstairs]]|downstairs=[[Hackspace 2.5|Downstairs]]|#default={{{floor}}} }} | ||
|- | |||
|- {{#if:{{{parentlocation|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Located within | |||
| {{{parentlocation}}} | |||
|- | |- | ||
! Team | ! Team | ||
Line 18: | Line 22: | ||
| colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Locations:''' [[:Category:Location|all pages]] [[Template:Location |{{}}]]</small> | | colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Locations:''' [[:Category:Location|all pages]] [[Template:Location |{{}}]]</small> | ||
|} | |} | ||
{{#if:{{{parentlocation|}}}|[[Category:Sub-Location]]|[[Category:Location]]}} | |||
<noinclude> | <noinclude> | ||
{{clear}} | {{clear}} | ||
Line 37: | Line 42: | ||
|use= | |use= | ||
|floor= | |floor= | ||
|parentlocation= | |||
|floorplanimage= | |floorplanimage= | ||
}} | }} | ||
Line 51: | Line 57: | ||
;floor | ;floor | ||
:Use to note the level the location is on. Use: Upstairs or Downstairs. | :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 | ;floorplanimage | ||
:An image, in the format File:<image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> brackets otherwise the image will display full size. | :An image, in the format File:<image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> brackets otherwise the image will display full size. | ||
[[Category:Templates infoboxes]] | [[Category:Templates infoboxes]] | ||
</noinclude> | </noinclude> |
Revision as of 23:38, 22 February 2019
Location | |
---|---|
Team | Infrastructure |
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.