Template:Infobox area: Difference between revisions

From Pikmin Fanon
m (Cheepy-Cheepy moved page Template:Infobox Area to Template:Infobox area)
mNo edit summary
 
(9 intermediate revisions by 2 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" align="right" style="width: 30em; background-color:#fff; font-size: 80%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{customname|{{PAGENAME}} }}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[Image:{{{image|AreaIB.png}}}|{{{size|160px}}}]]
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! style="background: #e6e9ff;" | General location ||{{{Location}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
{{#if:{{{pikmin|}}}|! style="background: #e6e9ff;" {{pipe}}[[Pikmin family|Pikmin]] discovered{{pipe}}{{pipe}}{{{pikmin}}}
{{#if:{{{location|}}}|! width="40%" style="background: #eef;" {{!}} Location
{{pipe}}-}}
{{!}} {{{location|Unknown}}}|}}
|-
|-
! style="background: #e6e9ff;" | [[Cave]]s || {{{Caves}}}
{{#if:{{{pikmin|}}}|! width="40%" style="background: #eef;" {{!}} [[Pikmin family|Pikmin]] discovered
{{!}} {{{pikmin|None}}}|}}
|-
|-
{{#if:{{{treasures|}}}|! style="background: #e6e9ff;" {{pipe}}[[:Category:Treasures|Treasures]]{{pipe}}{{pipe}}{{{treasures}}}
{{#if:{{{caves|}}}|! width="40%" style="background: #eef;" {{!}} [[Cave]]s
{{pipe}}-}}
{{!}} {{{caves|None}}}|}}
|-
|-
! style="background: #e6e9ff;" | [[Hazard]]s || {{{hazards}}}
{{#if:{{{parts|}}}|! width="40%" style="background: #eef;" {{!}} [[Vehicle part]]s
{{!}} {{{parts|None}}}|}}
|-
|-
{{#if:{{{obstacles|}}}|! style="background: #e6e9ff;" {{pipe}}Obstacles{{pipe}}{{pipe}}{{{obstacles}}}
{{#if:{{{treasures|}}}|! width="40%" style="background: #eef;" {{!}} [[Treasure]]s
{{pipe}}-}}
{{!}} {{{treasures|None}}}|}}
{{#if:{{{plants|}}}|! style="background: #e6e9ff;" {{pipe}}Plants{{pipe}}{{pipe}}{{{plants}}}
|-
{{pipe}}-}}
{{#if:{{{fruits|}}}|! width="40%" style="background: #eef;" {{!}} [[Fruit]]s
|}<includeonly>[[Category:Areas|{{PAGENAME}}]]</includeonly><noinclude>
{{!}} {{{fruits|None}}}|}}
[[Category:Infobox templates|{{PAGENAME}}]][[Category:Areas]]
|-
{{#if:{{{collectibles|}}}|! width="40%" style="background: #eef;" {{!}} Collectibles
{{!}} {{{collectibles|None}}}|}}
|-
{{#if:{{{hazards|}}}|! width="40%" style="background: #eef;" {{!}} [[Hazard]]s
{{!}} {{{hazards|None}}}|}}
|-
{{#if:{{{obstacles|}}}|! width="40%" style="background: #eef;" {{!}} [[Obstacle]]s
{{!}} {{{obstacles|None}}}|}}
|-
{{#if:{{{music|}}}|! width="40%" style="background: #eef;" {{!}} Music
{{!}} ''{{{music|None}}}''|}}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Areas]]}}</includeonly><noinclude>
 
{{clear}}
 
==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==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
! customname
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || Specify the name of the area here, so as not to include the title of the game it appears in.
|-
! image
| No ||  || Image for the infobox, extension included.
|-
! size
| No ||  || The image's size.
|-
! caption
| No ||  || The image's caption, if needed.
|-
! location
| No || Unknown || Where the area is located, either on the world map or its geographical location on PNF-404 or another planet.
|-
! pikmin
| No || None || Pikmin types discovered in this area. Pikmin that are found in one of the area's caves should be included as if they too were found on the surface.
|-
! caves
| No || None || The caves found in an area.
|-
! parts
| No || None || The number of [[vehicle part]]s found in an area. Collectibles can be specifically listed instead if so desired.
|-
! treasures
| No || None || Same as above, but with [[treasure]]s instead.
|-
! fruits
| No || None || Same as above, but with [[fruit]]s instead.
|-
! collectibles
| No || None || Same as above, but with miscellaneous collectibles, such as upgrades, instead.
|-
! hazards
| No || None || Hazards present in an area. Usually not necessary considering the large number of hazards found in various areas. Use {{t|icon}} for this.
|-
! obstacles
| No || None || Obstacles found in an area, but not obstacles found in its caves. Use {{t|icon}} for this.
|-
! music
| No || None || The title of the music played in the area. The infobox automatically italicizes its title.
|-
! nocat
| No ||  || Giving this a value like "y" makes the template not auto-categorize the area.
|}


==Use==
==Skeleton==
<pre>{{infobox Area                            *optional field
<pre>
|image     = image name with extension
{{infobox area
|size       = image size
|customname=
|Location  = location on planet
|image=
*|pikmin   = Pikmin types discovered here, if any
|size=
|Caves      = caves in an area
|caption=
*|treasures = treasures in an area, if any
|location=
|hazards   = hazards in an area
|pikmin=
*|obstacles = obstacles in an area, if any
|caves=
*|plants    = plants in an area, if any
|parts=
}}</pre></noinclude>
|treasures=
|fruits=
|collectibles=
|hazards=
|obstacles=
|music=
|nocat=
}}
</pre>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 18:19, 24 December 2023

Infobox area

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
customname No {{PAGENAME}} Specify the name of the area here, so as not to include the title of the game it appears in.
image No Image for the infobox, extension included.
size No The image's size.
caption No The image's caption, if needed.
location No Unknown Where the area is located, either on the world map or its geographical location on PNF-404 or another planet.
pikmin No None Pikmin types discovered in this area. Pikmin that are found in one of the area's caves should be included as if they too were found on the surface.
caves No None The caves found in an area.
parts No None The number of vehicle parts found in an area. Collectibles can be specifically listed instead if so desired.
treasures No None Same as above, but with treasures instead.
fruits No None Same as above, but with fruits instead.
collectibles No None Same as above, but with miscellaneous collectibles, such as upgrades, instead.
hazards No None Hazards present in an area. Usually not necessary considering the large number of hazards found in various areas. Use {{icon}} for this.
obstacles No None Obstacles found in an area, but not obstacles found in its caves. Use {{icon}} for this.
music No None The title of the music played in the area. The infobox automatically italicizes its title.
nocat No Giving this a value like "y" makes the template not auto-categorize the area.

Skeleton

{{infobox area
|customname=
|image=
|size=
|caption=
|location=
|pikmin=
|caves=
|parts=
|treasures=
|fruits=
|collectibles=
|hazards=
|obstacles=
|music=
|nocat=
}}