Template:Location: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable" {{#ifeq: {{{defunct}}}|yes|style="float:right; width:300px; margin-left:10px; margin-bottom:10px; color: DarkSlateGray;"|style="float:right; width:300px; margin-left:10px;" }} <!-- make text grey if defunct -->
{| class="wikitable" {{#ifeq: {{{defunct}}}|yes|style="float:right; width:300px; margin-left:10px; margin-bottom:10px; color: DarkSlateGray;"|style="float:right; width:300px; margin-left:10px;" }} <!-- make text grey if defunct -->
! colspan="2" {{#ifeq: {{{defunct}}}|yes|style="background-color:DarkSlateGray; color:#ffffff; text-align: center; border: 1px solid #244724;"|style="background-color:#195905; color:#ffffff; text-align: center; border: 1px solid #244724;" }} | {{{name|{{SUBPAGENAME}}}}} {{#ifeq: {{{defunct}}}|yes|&nbsp;(defunct)}}<!--
! colspan="2" {{#ifeq: {{{defunct}}}|yes|style="background-color:DarkSlateGray; color:#ffffff; text-align: center; border: 1px solid #244724;"|style="background-color:#195905; color:#ffffff; text-align: center; border: 1px solid #244724;" }} | {{{name|{{SUBPAGENAME}}}}} {{#ifeq: {{{defunct}}}|yes|&nbsp;(defunct)}}
-->
   |- {{#if: {{{image|}}} | | style="display: none;" }}
   |- {{#if: {{{image|}}} | | style="display: none;" }}
   ! colspan="2" style="text-align:center;" | [[{{{image}}}|frameless|{{#ifexpr: {{{imagewidth|280}}}>280|280|{{{imagewidth|280}}}}}px|center]]<!--
   ! colspan="2" style="text-align:center;" | [[{{{image}}}|frameless|{{#ifexpr: {{{imagewidth|280}}}>280|280|{{{imagewidth|280}}}}}px|center]]
-->{{#if:{{{use|}}}|<br /><!-- conditional row -->
  |- {{#if:{{{use|}}} | | style="display: none;" }}
  {{!}}-
   ! Intended Use
   ! Intended Use
   {{!}} {{{use}}}
   | {{{use}}}
}}<!--
  |- {{#if:{{{floor|}}} | | style="display: none;" }}
-->{{#if:{{{floor|}}}|<br /><!-- conditional row -->
  {{!}}-
   ! Floor
   ! Floor
   {{!}} {{{floor}}}
   | {{{floor}}}
}}
  |-
|-
  ! Team
! Team
  | {{#if: {{{team|}}}|[[Team:{{{team|}}}|{{{team|}}}]]|[[Team:Infrastructure|Infrastructure]] }}
| {{#if: {{{team|}}}|[[Team:{{{team|}}}|{{{team|}}}]]|[[Team:Infrastructure|Infrastructure]] }} <!--
  |- {{#if: {{{floorplanimage|}}} | | style="display: none;" }}
-->{{#if: {{{floorplanimage|}}}|<br /><!-- conditional row -->
   ! colspan="2" style="text-align:center;" | [[{{{floorplanimage}}}|frameless|{{#ifexpr: {{{imagewidth|220}}}>220|220|{{{imagewidth|220}}}}}px|center]]
  {{!}}-
  |-
   ! Map
  | 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>
  {{!}}  style="text-align:center;" {{!}} [[{{{floorplanimage}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]]
}}
|-
| 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>
|}
|}
<noinclude>
<noinclude>

Revision as of 12:24, 21 February 2019

Location
[[{{{image}}}|frameless|280px|center]]
Intended Use {{{use}}}
Floor {{{floor}}}
Team Infrastructure
[[{{{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=
|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.
floorplanimage
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.