Template:Infobox cave: Difference between revisions
Jump to navigation
Jump to search
(Better image.) |
(New documentation style.) |
||
Line 14: | Line 14: | ||
|- | |- | ||
! style="background: #e6e9ff;" | [[Treasure]]s | ! style="background: #e6e9ff;" | [[Treasure]]s | ||
| {{{treasures}}} | | {{{treasures}}} | ||
|- | |- | ||
! style="background: #e6e9ff; vertical-align: middle;" | [[Hazard]]s | ! style="background: #e6e9ff; vertical-align: middle;" | [[Hazard]]s | ||
Line 22: | Line 22: | ||
| {{{obstacles|None}}} | | {{{obstacles|None}}} | ||
|}<includeonly>[[Category:Caves]]</includeonly><noinclude> | |}<includeonly>[[Category:Caves]]</includeonly><noinclude> | ||
== | ==Info== | ||
Place this at the top of [[cave]] articles. It places an information box with data about the cave. | |||
| | |||
|size | Articles with this template are automatically categorized under [[:Category:Caves]]. | ||
|caption | |||
|location | ==Parameters== | ||
|sublevels | {| class = "wikitable" | ||
|treasures | ! Parameter || Mandatory || Default || Detailed description | ||
|hazards | |- | ||
|obstacles | ! image | ||
|noicons | | No || Cave.png || Image name, with extension. | ||
}}</pre></noinclude> | |- | ||
! size | |||
| No || 300px || Image size. | |||
|- | |||
! caption | |||
| No || || Image caption, if needed. | |||
|- | |||
! location | |||
| '''Yes''' || || [[Area]] the cave is on. | |||
|- | |||
! sublevels | |||
| '''Yes''' || || How many sublevels it has. | |||
|- | |||
! treasures | |||
| '''Yes''' || || Number of treasures in the cave. | |||
|- | |||
! hazards | |||
| No || None || Hazards in the cave. Use the [[:Category:Hazard button templates|hazard button templates]] for this. | |||
|- | |||
! obstacles | |||
| No || None || Same as above, but obstacles, and their [[:Category:Obstacle button templates|templates]]. | |||
|- | |||
! noicons | |||
| No || || Whether to disable display of game icons (to avoid conflicts with other templates). | |||
|} | |||
==Template== | |||
<pre> | |||
{{infobox cave | |||
|image = | |||
|size = | |||
|caption = | |||
|location = | |||
|sublevels = | |||
|treasures = | |||
|hazards = | |||
|obstacles = | |||
|noicons = | |||
}} | |||
</pre> | |||
[[Category:Infobox templates]] | |||
</noinclude> |
Revision as of 11:09, October 20, 2014
Infobox cave | |
---|---|
Location | [[{{{location}}}]] |
Sublevels | {{{sublevels}}} |
Treasures | {{{treasures}}} |
Hazards | None |
Obstacles | None |
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 on. | |
sublevels | Yes | How many sublevels it has. | |
treasures | Yes | Number of treasures in the cave. | |
hazards | No | None | Hazards in the cave. Use the hazard button templates for this. |
obstacles | No | None | Same as above, but obstacles, and their templates. |
noicons | No | Whether to disable display of game icons (to avoid conflicts with other templates). |
Template
{{infobox cave |image = |size = |caption = |location = |sublevels = |treasures = |hazards = |obstacles = |noicons = }}