Template:Infobox cave: Difference between revisions

From Pikmin Fanon
m (moved Template:Infobox Cave to Template:Infobox cave: Should be lowercase.)
mNo edit summary
 
(11 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|Cave entrance.jpg}}}|{{{size|160px}}}]]
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! style="background: #e6e9ff;" | Location || [[{{{location}}}]]
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
! style="background: #e6e9ff;" | Sublevels || {{{sublevels}}}
{{#if:{{{location|}}}|! width="40%" style="background: #eef;" {{!}} Location
{{!}} {{{location|Unknown}}}|}}
|-
|-
! style="background: #e6e9ff;" | Gimmicks || {{{treasures}}}
{{#if:{{{sublevels|}}}|! width="40%" style="background: #eef;" {{!}} Sublevels
{{!}} {{{sublevels|1}}}|}}
|-
|-
! style="background: #e6e9ff;" | [[Hazards]] || {{{hazards}}}
{{#if:{{{parts|}}}|! width="40%" style="background: #eef;" {{!}} [[Vehicle part]]s
|}<includeonly>[[Category:Caves|{{PAGENAME}}]]</includeonly><noinclude>
{{!}} {{{parts|None}}}|}}
[[Category:Infobox templates|{{PAGENAME}}]]
|-
{{#if:{{{treasures|}}}|! width="40%" style="background: #eef;" {{!}} [[Treasure]]s
{{!}} {{{treasures|None}}}|}}
|-
{{#if:{{{fruits|}}}|! width="40%" style="background: #eef;" {{!}} [[Fruit]]s
{{!}} {{{fruits|None}}}|}}
|-
{{#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}}}|}}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Caves]]}}</includeonly><noinclude>
 
{{clear}}
 
==Info==
{{todo|Update to accommodate [[tower]]s and [[dungeon]]s.}}
 
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
|-
! customname
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || Specify the name of the cave 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 || The area the cave is located in.
|-
! sublevels
| No || 1 || How many sublevels the cave has.
|-
! parts
| No || None || The number of [[vehicle part]]s found in an cave. 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 in the cave. Use {{t|icon}} for this.
|-
! obstacles
| No || None || Same as above, but for obstacles.
|-
! nocat
| No ||  || Giving this a value like "y" makes the template not auto-categorize the cave.
|}


==Use==
==Skeleton==
<pre>{{infobox cave
<pre>{{infobox cave
|image=image name with extension
|customname=
|size=image size
|image=
|location=cave location
|size=
|sublevels=number of sublevels
|caption=
|treasures=treasures or other focal points in cave
|location=
|hazards=hazards in cave
|sublevels=
}}</pre></noinclude>
|parts=
|treasures=
|fruits=
|collectibles=
|hazards=
|obstacles=
|nocat=
}}</pre>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 18:19, 24 December 2023

Infobox cave

Info

To do: Update to accommodate towers and dungeons.

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
customname No {{PAGENAME}} Specify the name of the cave 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 The area the cave is located in.
sublevels No 1 How many sublevels the cave has.
parts No None The number of vehicle parts found in an cave. 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 in the cave. Use {{icon}} for this.
obstacles No None Same as above, but for obstacles.
nocat No Giving this a value like "y" makes the template not auto-categorize the cave.

Skeleton

{{infobox cave
|customname=
|image=
|size=
|caption=
|location=
|sublevels=
|parts=
|treasures=
|fruits=
|collectibles=
|hazards=
|obstacles=
|nocat=
}}