Template:Infobox area: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Simplifying template.)
m (challenges fix)
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{|class="infobox"
{| class="infobox"
! colspan="2" class="infoboxTitle" | ''{{PAGENAME}}''
! colspan="2" class="infoboxTitle" | ''{{PAGENAME}}''{{#if:{{{sector|}}}|<br>[[Sector {{{sector}}}]] &ndash; Area {{{area_letter}}}}}
|-
|-
| colspan="2" style="text-align: center;" | {{#if:{{{screenshot|}}}|<div class="switchable">
| colspan="2" style="text-align: center;" | {{#if:{{{screenshot|}}}|<div class="switchable">
<div class="switch" title="Screenshot">
<div class="switch" data-switchable-title="Screenshot">
[[File:{{{screenshot}}}|{{{size|250px}}}]]
[[File:{{{screenshot}}}|{{{size|250px}}}]]
</div>
</div>
<div class="switch" title="Map">
<div class="switch" data-switchable-title="Map">
[[File:{{{map}}}|{{{size|250px}}}]]
[[File:{{{map}}}|{{{size|250px}}}]]
</div>
</div>
Line 15: Line 15:
|-
|-
{{#if:{{{parts|}}}|! [[Ship part]]s
{{#if:{{{parts|}}}|! [[Ship part]]s
{{!}} {{{parts}}} ([[#Ship parts|list]]) }}
{{!}} {{{parts}}} }}
|-
{{#if:{{{rescues|}}}|! [[Castaway|Rescues]]
{{!}} {{{rescues}}} }}
|-
|-
{{#if:{{{treasures|}}}|! [[Treasure]]s
{{#if:{{{treasures|}}}|! [[Treasure]]s
{{!}} {{{treasures}}} ([[#Treasures|list]]) }}
{{!}} {{{treasures}}} }}
|-
|-
{{#if:{{{fruits|}}}|! [[Fruit]]s
{{#if:{{{fruits|}}}|! [[Fruit]]s
{{!}} {{{fruits}}}{{#ifeq:{{{fruits}}}|0||&nbsp;([[#Fruits|list]])}} }}
{{!}} {{{fruits}}} }}
|-
{{#if:{{{onions|}}}|! [[Onion]]s
{{!}} {{{onions}}} }}
|-
|-
{{#if:{{{caves|}}}|! [[Cave]]s
{{#if:{{{caves|}}}|! [[Cave]]s
{{!}} {{{caves}}} ([[#Caves|list]]) }}
{{!}} {{{caves}}} }}
|-
|-
! [[Hazard]]s
{{#if:{{{dandori_c|}}}|! [[Dandori Challenge]]s
| {{{hazards|None}}}
{{!}} {{{dandori_c}}} }}
|-
|-
! [[Obstacle]]s
{{#if:{{{dandori_b|}}}|! [[Dandori Battle]]s
| {{{obstacles|None}}}
{{!}} {{{dandori_b}}} }}
|-
|-
{{#if:{{{pikmin|}}}|! [[Pikmin family|Pikmin]] discovered
{{#if:{{{pikmin|}}}|! [[Pikmin family|Pikmin]] available
{{!}} {{{pikmin}}} }}
{{!}} {{{pikmin}}} }}
|-
{{#if:{{{pikmin_discovered|}}}|! [[Pikmin family|Pikmin]] discovered
{{!}} {{{pikmin_discovered}}} }}
|-
{{#if:{{{suggested|}}}|! Suggested [[Pikmin family|Pikmin]]
{{!}} {{{suggested}}} }}
|-
{{#if:{{{wild|}}}|! Wild [[Pikmin family|Pikmin]]
{{!}} {{{wild}}} }}
|-
|-
! Requirements
! Requirements
| {{{requirements|None}}}
| {{{requirements|None}}}
|-
|-
{{#if:{{{sunsetenemies|}}}|! [[Day#Sunset|Sunset]] cutscene enemies
{{#if:{{{next|}}}|! Next area
{{!}} {{{sunsetenemies}}} }}
{{!}} {{{next}}} }}
|-
|-
! Music
! Music
Line 70: Line 85:
! caption
! caption
| No ||  || Image caption, if needed.
| No ||  || Image caption, if needed.
|-
! sector
| No ||  || If this is an area in {{hp}}, specify the sector number here.
|-
! area_letter
| No ||  || If this is an area in ''Hey! Pikmin'', specify the area letter here.
|-
|-
! parts
! parts
| No ||  || Number of ship parts.
| No ||  || Number of ship parts.
|-
! rescues
| No ||  || Number of rescues.
|-
|-
! treasures
! treasures
| No ||  || Number of treasures (caves excluded).
| No ||  || Number of treasures.
|-
|-
! fruits
! fruits
| No ||  || Number of fruits.
| No ||  || Number of fruits.
|-
! onions
| No ||  || Number of onions.
|-
|-
! caves
! caves
| No ||  || Number of caves.
| No ||  || Number of caves.
|-
|-
! hazards
! dandori_c
| No || None || Hazards (caves excluded). Use the [[:Category:Hazard button templates|hazard button templates]] for this.
| No || || Number of Dandori Challenges.
|-
|-
! obstacles
! dandori_b
| No || None || Same as above, but obstacles, and their [[:Category:Obstacle button templates|templates]].
| No || || Number of Dandori Battles.
|-
|-
! pikmin
! pikmin
| No ||  || Pikmin types discovered here, caves included.
| No ||  || Pikmin types available here (for ''Hey! Pikmin'' areas).
|-
! pikmin_discovered
| No ||  || Pikmin types discovered here, caves included (for ''Pikmin'', ''Pikmin 2'', and ''Pikmin 3'' areas).
|-
! suggested
| No ||  || Suggested Pikmin types here (for ''Pikmin 4'' areas).
|-
! wild
| No ||  || Wild Pikmin types here (for ''Pikmin 4'' areas).
|-
|-
! requirements
! requirements
| No || None || Requirements needed to access this area.
| No || None || Requirements needed to access this area.
|-
|-
! sunsetenemies
! next
| No || || The enemies that appear during the sunset cutscene.
| No || || Next area, or areas.
|-
|-
! music
! music
Line 105: Line 141:
<pre>
<pre>
{{infobox area
{{infobox area
|screenshot   =  
|screenshot       =  
|map           =  
|map               =  
|image         =  
|image             =  
|size         =  
|size             =  
|caption      =  
|caption           =
|parts         =  
|sector            =
|treasures     =  
|area_letter       =  
|fruits       =  
|parts             =
|caves        =  
|rescues          =  
|hazards      =  
|treasures         =  
|pikmin       =  
|fruits           =
|requirements =  
|onions            =  
|sunsetenemies =  
|caves             =
|music         =  
|dandori_c         =  
|dandori_b        =  
|pikmin           =
|pikmin_discovered =
|suggested        =
|wild              =  
|requirements     =  
|next              =  
|music             =  
}}
}}
</pre>
</pre>


[[Category:Information boxes]]
[[Category:Information boxes]]</noinclude>
</noinclude>

Latest revision as of 22:00, January 1, 2024

Infobox area
[[File:{{{map}}}|250px]]
Requirements None
Music {{{music}}}

Info

Place this at the top of area articles. This will place an information box with data about the area.

Pages with this template are automatically categorized under Category:Areas.

Parameters

Parameter Mandatory Default Detailed description
screenshot No Image name of an in-game screenshot on the area. with extension.
map No Image name of the area's map, with extension.
image No Image name, with extension. Use the previous two, preferably.
size No 250px Image size.
caption No Image caption, if needed.
sector No If this is an area in Hey! Pikmin, specify the sector number here.
area_letter No If this is an area in Hey! Pikmin, specify the area letter here.
parts No Number of ship parts.
rescues No Number of rescues.
treasures No Number of treasures.
fruits No Number of fruits.
onions No Number of onions.
caves No Number of caves.
dandori_c No Number of Dandori Challenges.
dandori_b No Number of Dandori Battles.
pikmin No Pikmin types available here (for Hey! Pikmin areas).
pikmin_discovered No Pikmin types discovered here, caves included (for Pikmin, Pikmin 2, and Pikmin 3 areas).
suggested No Suggested Pikmin types here (for Pikmin 4 areas).
wild No Wild Pikmin types here (for Pikmin 4 areas).
requirements No None Requirements needed to access this area.
next No Next area, or areas.
music Yes Name of the song that plays here, linking to the corresponding section on a music article.

Skeleton

{{infobox area
|screenshot        = 
|map               = 
|image             = 
|size              = 
|caption           = 
|sector            = 
|area_letter       = 
|parts             = 
|rescues           = 
|treasures         = 
|fruits            = 
|onions            = 
|caves             = 
|dandori_c         = 
|dandori_b         = 
|pikmin            = 
|pikmin_discovered = 
|suggested         = 
|wild              = 
|requirements      = 
|next              = 
|music             = 
}}