Template:Infobox location: Difference between revisions

From ALttPR Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> An infobox for a user profile in the User namespace. = Usage = <nowiki>{{Infobox location</nowiki> | world = Light/Dark | image = Uploaded Location Image...")
 
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
An infobox for a user profile in the User namespace.
An infobox for a location profile in the Main namespace.
= Usage =
= Usage =
  <nowiki>{{Infobox location</nowiki>
  <nowiki>{{Infobox location</nowiki>
  | world   = Light/Dark
  | world       = Light/Dark
  | image   = Uploaded Location Image
  | image       = Uploaded Location Image
  | standing = 0 <!-- Number of Standing items (Mushroom, Piece of Heart, etc) -->
| subzone    = Subzone/Region Name <!-- Subzone/Region name -->
  | chests   = 0 <!-- Number of Chests immediately available -->
| floor      = 1F <!-- Floor name if multiple floors -->
  | npc     = 0 <!-- Number of NPCs that give items -->
| coords      = A1 <!-- Coordinates if on World Map -->
  | bombable = 0 <!-- Number of Chests behind a bombable wall -->
| cost        = 0 <!-- Cost in Rupees -->
  | bonkable = 0 <!-- Number of Chests behind a bonkable wall -->
  | standing   = 0 <!-- Number of Standing items (Mushroom, Piece of Heart, etc) -->
  | chests     = 0 <!-- Number of Chests immediately available -->
  | npc         = 0 <!-- Number of NPCs that give items -->
  | bombable   = 0 <!-- Number of Chests behind a bombable wall -->
  | bonkable   = 0 <!-- Number of Chests behind a bonkable wall -->
| viewable    = 0 <!-- 1 if viewable before accessible, 0 if not -->
| other      = 0 <!-- Doesn't fit above categories, set label below -->
| other-label = Other <!-- Label for "other" count -->
  }}
  }}
[[Image:Infobox location example.png|right]]
[[Image:Infobox location example.png|right]]
</noinclude><includeonly>{| class="infobox wikitable" style="float:right;"
</noinclude><includeonly>{| class="infobox wikitable" style="float:right;"
|-
|-
! colspan="2" | {{ROOTPAGENAME}}
! colspan="2" | {{Inverted}}
|- {{#if: {{{image|}}} | | style="display:none;" }}
|- {{#if: {{{image|}}} | | style="display:none;" }}
! colspan="2" | [[Image:{{{image}}}]]
! colspan="2" | [[Image:{{{image}}}]]
|-
|-
! World || [[{{{world|Light}}} World]]
! World || [[{{{world|Light}}} World]]
|- {{#if: {{{subzone|}}} | | style="display:none;" }}
! Subzone || [[{{{subzone}}}]]
|- {{#if: {{{floor|}}} | | style="display:none;" }}
! Floor || {{{floor}}}
|- {{#if: {{{coords|}}} | | style="display:none;" }}
! Coordinates || [http://alttp.mymm1.com/plane.php?hilite={{{coords}}}&mode={{lc:{{{world|Light}}}}}#{{{coords}}} {{{coords}}}]
|- {{#ifexpr: {{{cost|0}}} > 0 | | style="display:none;" }}
! Cost !! {{{cost|0}}}
|- {{#ifexpr: {{{standing|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{standing|0}}} > 0 | | style="display:none;" }}
! Standing !! {{{standing|0}}}
! Standing !! {{{standing|0}}}
|- {{#ifexpr: {{{chests|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{chests|0}}} > 0 | | style="display:none;" }}
! Chests !! {{{chests|0}}}
! [[Chest]]s !! {{{chests|0}}}
|- {{#ifexpr: {{{npc|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{npc|0}}} > 0 | | style="display:none;" }}
! NPC !! {{{npc|0}}}
! {{#ifexpr: {{{npc|0}}} > 0 |[[NPC]]|NPC}} !! {{{npc|0}}}
|- {{#ifexpr: {{{bombable|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{bombable|0}}} > 0 | | style="display:none;" }}
! Bombable !! {{{bombable|0}}}
! {{#ifexpr: {{{bombable|0}}} > 0 |[[Bombable wall|Bombable]]|Bombable}} !! {{{bombable|0}}}
|- {{#ifexpr: {{{bonkable|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{bonkable|0}}} > 0 | | style="display:none;" }}
! Bonkable !! {{{bonkable|0}}}
! {{#ifexpr: {{{bonkable|0}}} > 0 |[[Bonk|Bonkable]]|Bonkable}} !! {{{bonkable|0}}}
|}</includeonly>
|- {{#ifexpr: {{{other|0}}} > 0 | | style="display:none;" }}
! {{{other-label|Other}}} !! {{{other|0}}}
|- {{#ifexpr: {{{viewable|0}}} > 0 | | style="display:none;" }}
! colspan="2" | Viewable prior to Accessible
|}{{#ifexpr: {{#invoke:String|find|{{PAGENAME}}|/Inverted}} > 0 | [[Category:Inverted State]] | }}
[[Category:{{{world|Light}}} World Locations]]
{{#if: {{{subzone|}}} |[[Category:{{{subzone|Subzone}}} Locations]]|}}
{{#ifexpr: {{{npc|0}}} > 0|[[Category:NPC Locations]]|}}
{{#ifexpr: {{{bombable|0}}} > 0|[[Category:Bombable Locations]]|}}
{{#ifexpr: {{{bonkable|0}}} > 0|[[Category:Bonkable Locations]]|}}
{{#if: {{{cost|}}} |[[Category:Locations with a Cost]]|}}
{{#ifexpr: {{{standing|0}}} > 0|[[Category:Standing Item Locations]]|}}
{{#ifexpr: {{{viewable|0}}} > 0|[[Category:Viewable Locations]]|}}</includeonly>

Latest revision as of 01:15, 30 April 2021

An infobox for a location profile in the Main namespace.

Usage

{{Infobox location
| world       = Light/Dark
| image       = Uploaded Location Image
| subzone     = Subzone/Region Name 
| floor       = 1F 
| coords      = A1 
| cost        = 0 
| standing    = 0 
| chests      = 0 
| npc         = 0 
| bombable    = 0 
| bonkable    = 0 
| viewable    = 0 
| other       = 0 
| other-label = Other 
}}
Infobox location example.png