Template:Location: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
mNo edit summary
floorplan added
Line 15: Line 15:
| {{#if: {{{team|}}}|[[Team:{{{team|}}}|{{{team|}}}]]|[[Team:Infrastructure|Infrastructure]] }}  
| {{#if: {{{team|}}}|[[Team:{{{team|}}}|{{{team|}}}]]|[[Team:Infrastructure|Infrastructure]] }}  
|-
|-
| colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Locations:''' &nbsp; [[:Category:location|all pages]] • [[Tools/We Have|list]] &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]] • [[Tools/We Have|list]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Location |{{}}]]</small><!--
|}<noinclude>
-->{{#if: {{{floorplanimage|}}}|<br /><!-- conditional row -->
  {{!}}-
  {{!}} colspan="2" style="text-align:center;" {{!}} [[{{{floorplanimage}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]]
}}
|}
<noinclude>
{{clear}}
{{clear}}
== Documentation ==
== Documentation ==
Line 45: Line 50:
;use
;use
:Use to describe the intended purpose of the area
:Use to describe the intended purpose of the area
 
;floorplanimage
: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 01:24, 20 February 2019

Location
Team Infrastructure
Locations:   all pageslist             {{}}

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=
}}

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
floorplanimage
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.