Template:Infobox cave: Difference between revisions

Added a parameter for wild Pikmin types that can be found in the cave.
(make cells not th (MW bug?))
(Added a parameter for wild Pikmin types that can be found in the cave.)
 
(24 intermediate revisions by 6 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}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[Image:{{{image|Cave entrance.jpg}}}|{{{size|160px}}}]]
| colspan="2" style="text-align: center;" | [[File:{{{image|Cave.png}}}|{{{size|{{#if:{{{image|}}}|300|180}}px}}}]]
|-
|-
! style="background: #e6e9ff;" | Location
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
! style="width:30%" | Location
| [[{{{location}}}]]
| [[{{{location}}}]]
|-
|-
! style="background: #e6e9ff;" | Sublevels
! Sublevels
| {{{sublevels}}}
| {{{sublevels}}}
|-
|-
! style="background: #e6e9ff;" | [[:Category:Treasures|Treasures]]
{{#if:{{{rescues|}}}|! Rescues
{{!}} {{{rescues}}} }}
|-
! [[Treasure]]s
| {{{treasures}}}
| {{{treasures}}}
|-
|-
! style="background: #e6e9ff;" | [[Hazards]]
{{#if:{{{onions|}}}|! [[Onion]]s
| {{{hazards|None}}}
{{!}} {{{onions}}} }}
|-
{{#if:{{{hazards|}}}|! [[Hazard]]s
{{!}} {{{hazards}}} }}
|-
{{#if:{{{suggested|}}}|! Suggested [[Pikmin family|Pikmin]]
{{!}} {{{suggested}}} }}
|-
{{#if:{{{wild|}}}|! Wild Pikmin
{{!}} {{{wild}}} }}
|}<includeonly>[[Category:Caves]]</includeonly><noinclude>
 
{{clear}}
==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==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
|-
! style="background: #e6e9ff;" | [[:Category:Obstacles|Obstacles]]
! image
| {{{obstacles|None}}}
| No || Cave.png || Image name, with extension.
|}<includeonly>[[Category:Caves|{{PAGENAME}}]]</includeonly><noinclude>
|-
[[Category:Infobox templates|{{PAGENAME}}]]
! 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 [[:Category:Hazard button templates|hazard button templates]] for this. Only for {{p2}}.
|-
! suggested
| No ||  || Suggested Pikmin to be brought into the cave. Only for {{p4}}.
|-
! wild
| No ||  || Wild Pikmin types that can be found in the cave. Only for {{p4}}.
|}
 
==Skeleton==
<pre>
{{infobox cave
|image    =
|size      =
|caption  =
|location  =
|sublevels =
|rescues  =
|treasures =
|onions    =
|hazards  =
|suggested =
|wild      =
}}
</pre>


==Use==
[[Category:Information boxes]]</noinclude>
<pre>{{infobox cave
|image=image name with extension
|size=image size
|location=cave location
|sublevels=number of sublevels
|treasures=treasures in cave
|hazards=hazards in cave
|obstacles=obstacles (plugged entrances, clogged holes/geysers, high areas, etc.)
}}</pre></noinclude>