Template:Infobox area: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(adding fruits (I hope I didn't break it...))
m (challenges fix)
 
(39 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{|class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
! colspan="2" class="infoboxTitle" | ''{{PAGENAME}}''{{#if:{{{sector|}}}|<br>[[Sector {{{sector}}}]] &ndash; Area {{{area_letter}}}}}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[Image:{{{image}}}|{{{size|250px}}}]]
| colspan="2" style="text-align: center;" | {{#if:{{{screenshot|}}}|<div class="switchable">
<div class="switch" data-switchable-title="Screenshot">
[[File:{{{screenshot}}}|{{{size|250px}}}]]
</div>
<div class="switch" data-switchable-title="Map">
[[File:{{{map}}}|{{{size|250px}}}]]
</div>
</div> | [[File:{{{image|{{{map}}}}}}|{{{size|250px}}}]]}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{!}}- }}
{{#if:{{{parts|}}}|! style="background: #e6e9ff;" {{Pipe}} [[S.S._Dolphin|Ship]] parts
{{Pipe}} {{{parts}}} ([[#Ship parts|list]])
{{Pipe}}-}}
{{#if:{{{treasures|}}}|! style="background: #e6e9ff;" {{Pipe}} [[Treasure]]s
{{Pipe}} {{{treasures}}} ([[#Treasures|list]])
{{Pipe}}-}}
{{#if:{{{fruits|}}}|! style="background: #e6e9ff;" {{Pipe}} [[Fruits]]s
{{Pipe}} {{{fruits}}} ([[#Fruits|list]])
{{Pipe}}-}}
{{#if:{{{caves|}}}|! style="background: #e6e9ff;" {{Pipe}} [[Cave]]s
{{Pipe}} {{{caves}}} ([[#Caves|list]])
{{Pipe}}-}}
! style="background: #e6e9ff;" | [[Hazards]]
| {{{hazards|None}}}
|-
|-
! style="background: #e6e9ff;" | [[:Category:Obstacles|Obstacles]]
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
| {{{obstacles|None}}}
|-
{{#if:{{{parts|}}}|! [[Ship part]]s
{{!}} {{{parts}}} }}
|-
{{#if:{{{rescues|}}}|! [[Castaway|Rescues]]
{{!}} {{{rescues}}} }}
|-
{{#if:{{{treasures|}}}|! [[Treasure]]s
{{!}} {{{treasures}}} }}
|-
{{#if:{{{fruits|}}}|! [[Fruit]]s
{{!}} {{{fruits}}} }}
|-
{{#if:{{{onions|}}}|! [[Onion]]s
{{!}} {{{onions}}} }}
|-
{{#if:{{{caves|}}}|! [[Cave]]s
{{!}} {{{caves}}} }}
|-
{{#if:{{{dandori_c|}}}|! [[Dandori Challenge]]s
{{!}} {{{dandori_c}}} }}
|-
{{#if:{{{dandori_b|}}}|! [[Dandori Battle]]s
{{!}} {{{dandori_b}}} }}
|-
{{#if:{{{pikmin|}}}|! [[Pikmin family|Pikmin]] available
{{!}} {{{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|None}}}
|-
{{#if:{{{next|}}}|! Next area
{{!}} {{{next}}} }}
|-
! Music
| {{{music}}}
|-
|-
{{#if:{{{pikmin|}}}|! style="background: #e6e9ff;" {{Pipe}} [[Pikmin family|Pikmin]] discovered
{{Pipe}} {{{pikmin}}}
{{Pipe}}-}}
{{#if:{{{requirements|}}}|! style="background: #e6e9ff;" {{Pipe}} Requirements
{{Pipe}} {{{requirements}}} }}
|}<includeonly>[[Category:Areas]]</includeonly><noinclude>
|}<includeonly>[[Category:Areas]]</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]


==Use==
{{clear}}
<pre>{{infobox area
==Info==
|image       = image name with extension
Place this at the top of [[area]] articles. This will place an information box with data about the area.
|size         = image size (optional)
 
|caption     = image caption (optional)
Pages with this template are automatically categorized under [[:Category:Areas]].
|parts       = number of ship parts
 
|treasures   = number of treasures (caves excluded)
==Parameters==
|fruits       = number of fruits
{| class = "wikitable"
|caves       = number of caves
! Parameter || Mandatory || Default || Detailed description
|hazards      = hazards available above ground
|-
|pikmin       = the color(s) of Pikmin discovered in this area, including caves
! screenshot
|requirements = number of ship parts required, or specific treasure required.
| No ||  || Image name of an in-game screenshot on the area. with extension.
}}</pre></noinclude>
|-
! 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 {{hp}}, 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==
<pre>
{{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            =  
}}
</pre>
 
[[Category:Information boxes]]</noinclude>

Latest revision as of 21: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             = 
}}