Template:Infobox cave: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
m (Added links to the Castaway and Wild Pikmin pages in the infobox.)
Tag: Mobile edit
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if:{{{noicons|}}}||{{game icons|pikmin2=y}}}}
{| class="infobox"
{|class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="2" class="infoboxTitle" | ''{{PAGENAME}}''
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[File:{{{image|Cave.png}}}|{{{size|{{#if:{{{image|}}}|300|180}}px}}}]]
| colspan="2" style="text-align: center;" | [[File:{{{image|Cave.png}}}|{{{size|{{#if:{{{image|}}}|300|180}}px}}}]]
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{!}}- }}
|-
! style="background: #e6e9ff;" | Location
! style="width:30%" | Location
| [[{{{location}}}]]
| [[{{{location}}}]]
|-
|-
! style="background: #e6e9ff;" | Sublevels
! Sublevels
| {{{sublevels}}}
| {{{sublevels}}}
|-
|-
! style="background: #e6e9ff;" | [[Treasure]]s
{{#if:{{{rescues|}}}|! [[Castaway|Rescues]]
{{!}} {{{rescues}}} }}
|-
! [[Treasure]]s
| {{{treasures}}}
| {{{treasures}}}
|-
|-
! style="background: #e6e9ff; vertical-align: middle;" | [[Hazard]]s
{{#if:{{{onions|}}}|! [[Onion]]s
| {{{hazards|None}}}
{{!}} {{{onions}}} }}
|-
{{#if:{{{hazards|}}}|! [[Hazard]]s
{{!}} {{{hazards}}} }}
|-
{{#if:{{{suggested|}}}|! Suggested [[Pikmin family|Pikmin]]
{{!}} {{{suggested}}} }}
|-
|-
! style="background: #e6e9ff; vertical-align: middle;" | [[Obstacle]]s
{{#if:{{{wild|}}}|! [[Wild Pikmin]]
| {{{obstacles|None}}}
{{!}} {{{wild}}} }}
|}<includeonly>[[Category:Caves]]</includeonly><noinclude>
|}<includeonly>[[Category:Caves]]</includeonly><noinclude>


Line 43: Line 51:
|-
|-
! location
! location
| '''Yes''' ||  || [[Area]] the cave is on.
| '''Yes''' ||  || [[Area]] the cave is in.
|-
|-
! sublevels
! sublevels
| '''Yes''' ||  || How many sublevels it has.
| '''Yes''' ||  || How many sublevels it has.
|-
! rescues
| No ||  || Number of rescues in the cave.
|-
|-
! treasures
! treasures
| '''Yes''' ||  || Number of treasures in the cave.
| '''Yes''' ||  || Number of treasures in the cave.
|-
! onions
| No ||  || Number of onions in the cave.
|-
|-
! hazards
! hazards
| No || None || Hazards in the cave. Use the [[:Category:Hazard button templates|hazard button templates]] for this.
| No || || Hazards in the cave. Use the [[:Category:Hazard button templates|hazard button templates]] for this. Only for {{p2}}.
|-
|-
! obstacles
! suggested
| No || None || Same as above, but obstacles, and their [[:Category:Obstacle button templates|templates]].
| No || || Suggested Pikmin to be brought into the cave. Only for {{p4}}.
|-
|-
! noicons
! wild
| No ||  || Whether to disable display of game icons (to avoid conflicts with other templates).
| No ||  || Wild Pikmin types that can be found in the cave. Only for {{p4}}.
|}
|}


==Template==
==Skeleton==
<pre>
<pre>
{{infobox cave
{{infobox cave
Line 69: Line 83:
|location  =  
|location  =  
|sublevels =  
|sublevels =  
|rescues  =
|treasures =  
|treasures =  
|onions    =
|hazards  =  
|hazards  =  
|obstacles =  
|suggested =  
|noicons  =  
|wild      =  
}}
}}
</pre>
</pre>


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

Latest revision as of 21:14, July 14, 2024

Infobox cave
The entrance to a cave.
Location [[{{{location}}}]]
Sublevels {{{sublevels}}}
Treasures {{{treasures}}}

Info

Place this at the top of cave articles. It places an information box with data about the cave.

Articles with this template are automatically categorized under Category:Caves.

Parameters

Parameter Mandatory Default Detailed description
image No Cave.png Image name, with extension.
size No 300px Image size.
caption No Image caption, if needed.
location Yes Area the cave is in.
sublevels Yes How many sublevels it has.
rescues No Number of rescues in the cave.
treasures Yes Number of treasures in the cave.
onions No Number of onions in the cave.
hazards No Hazards in the cave. Use the hazard button templates for this. Only for Pikmin 2.
suggested No Suggested Pikmin to be brought into the cave. Only for Pikmin 4.
wild No Wild Pikmin types that can be found in the cave. Only for Pikmin 4.

Skeleton

{{infobox cave
|image     = 
|size      = 
|caption   = 
|location  = 
|sublevels = 
|rescues   = 
|treasures = 
|onions    = 
|hazards   = 
|suggested = 
|wild      = 
}}