Template:Infobox location: Difference between revisions

From ALttPR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 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>
Line 6: Line 6:
  | image      = Uploaded Location Image
  | image      = Uploaded Location Image
  | subzone    = Subzone/Region Name <!-- Subzone/Region name -->
  | subzone    = Subzone/Region Name <!-- Subzone/Region name -->
| floor      = 1F <!-- Floor name if multiple floors -->
| coords      = A1 <!-- Coordinates if on World Map -->
| cost        = 0 <!-- Cost in Rupees -->
  | standing    = 0 <!-- Number of Standing items (Mushroom, Piece of Heart, etc) -->
  | standing    = 0 <!-- Number of Standing items (Mushroom, Piece of Heart, etc) -->
  | chests      = 0 <!-- Number of Chests immediately available -->
  | chests      = 0 <!-- Number of Chests immediately available -->
Line 18: Line 21:
</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}}}]]
Line 25: Line 28:
|- {{#if: {{{subzone|}}} | | style="display:none;" }}
|- {{#if: {{{subzone|}}} | | style="display:none;" }}
! Subzone || [[{{{subzone}}}]]
! 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}}}
Line 30: Line 39:
! [[Chest]]s !! {{{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;" }}
! [[Bomb]]able !! {{{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;" }}
! [[Bonk]]able !! {{{bonkable|0}}}
! {{#ifexpr: {{{bonkable|0}}} > 0 |[[Bonk|Bonkable]]|Bonkable}} !! {{{bonkable|0}}}
|- {{#ifexpr: {{{other|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{other|0}}} > 0 | | style="display:none;" }}
! {{{other-label|Other}}} !! {{{other|0}}}
! {{{other-label|Other}}} !! {{{other|0}}}
|- {{#ifexpr: {{{viewable|0}}} > 0 | | style="display:none;" }}
|- {{#ifexpr: {{{viewable|0}}} > 0 | | style="display:none;" }}
! colspan="2" | Viewable prior to Accessible
! colspan="2" | Viewable prior to Accessible
|}</includeonly>
|}{{#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