Template:Compendium: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (→‎top: Standardizing Maintenance Categories)
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class="mw-collapsible mw-collapsed" style="max-width: calc(100% - 26em); min-width: 40em;">
<includeonly><templatestyles src="Template:Compendium/Styles.css"/><!--
<p style="text-align: center;">'''Hyrule Compendium Entry'''</p>
-->{{Collapsible
 
|header= Hyrule Compendium Entry
<div class="messagebox mw-collapsible-content" style="padding:1em; border-radius:20px; border:3px solid {{{Color|#{{ZWborder}}}}}; background-color:{{{Background|#{{ZWheader}}}}};">
|collapse= true
{| style="width: 100%; background: none; font-style:italic;"
|content=
| rowspan="2" colspan="1" style="width:1px; text-align: center; padding:0 1em;"|{{{number|XXX}}}&nbsp;{{{name|Name}}}<br/><!--
<div class="compendium" style="padding:1em; border-radius:20px; border:3px solid {{{Color|#426787}}}; background-color:{{{Background|#1d578b}}};">
{{(!}} style="width: 100%; background: none; font-style:italic;"
{{!}} rowspan="2" colspan="1" style="width:1px; text-align: center; padding:0 1em;"{{!}}{{{number|XXX}}}&nbsp;({{Exp|Master Mode|{{{numbermaster|XXX}}}}})&nbsp;{{{name|Name}}}<br/><!--
-->{{#if:{{{name|}}}
-->{{#if:{{{name|}}}
   |[[File:BotW Hyrule Compendium {{{name}}}.png|250px|link=Hyrule Compendium|center]]
   |[[File:BotW Hyrule Compendium {{{name}}}.png|150px|link=Hyrule Compendium|center]]
   |[[File:BotW Blue Sheikah Eye Symbol.png|link=Hyrule Compendium|250px|Hyrule Compendium|center]]
   |[[File:BotW Crest of the Sheikah Symbol.png|link=Hyrule Compendium|150px|Hyrule Compendium|center]]
   }}
   }}
| rowspan="1" colspan="1" style="vertical-align:top; padding-top:1em;"|<div class="compendium-heading"><div><span>'''Description'''</span></div></div>{{{desc|Description}}}
{{!}} rowspan="1" colspan="1" style="vertical-align:top; padding-top:1em;"{{!}}<div class="compendium-heading"><div><span>'''Description'''</span></div></div>{{{desc|Description}}}
|-
{{!-}}
| rowspan="1" colspan="1" style="vertical-align:bottom;"|<div class="compendium-heading"><div><span>'''Common Locations'''</span></div></div>{{{locs|Common Locations}}}
{{!}} rowspan="1" colspan="1" style="vertical-align:bottom;"{{!}}<div class="compendium-heading"><div><span>'''Common Locations'''</span></div></div>{{{locs|Common Locations}}}
|-
{{!-}}
| rowspan="1" colspan="2" style="text-align: center; padding-left:1em"|<!--
{{!}} rowspan="1" colspan="2" style="text-align: center; padding-left:1em"{{!}}<!--
-->{{#if:{{{loot|}}}      |<div class="compendium-heading"><div><span>'''Recoverable Materials'''</span></div></div>{{{loot}}} }}
-->{{#if:{{{loot|}}}      |<div class="compendium-heading"><div><span>'''Recoverable Materials'''</span></div></div>{{{loot}}} }}
|-
{{!-}}
| rowspan="1" colspan="1" style="text-align: center; padding:0 1em"|<!--
{{!}} rowspan="1" colspan="1" style="text-align: center; padding:0 1em"{{!}}<!--
-->{{#if:{{{healing|}}}    |<div class="compendium-heading"><div><span>'''Hearts Recovered'''</span></div></div>{{HeartAmount|{{{healing}}}|.}} }}
-->{{#if:{{{healing|}}}    |<div class="compendium-heading"><div><span>'''Hearts Recovered'''</span></div></div>{{HeartAmount|{{{healing}}}|.|{{{healing}}}}} }}
| rowspan="1" colspan="1" style="text-align: center;"|<!--
{{!}} rowspan="1" colspan="1" style="text-align: center;"{{!}}<!--
-->{{#if:{{{props|}}}      |<div class="compendium-heading"><div><span>'''Properties'''</span></div></div>{{{props}}} }}<!--
-->{{#if:{{{props|}}}      |<div class="compendium-heading"><div><span>'''Properties'''</span></div></div>{{{props}}} }}<!--
-->{{#if:{{{cookeffects|}}}|<div class="compendium-heading"><div><span>'''Cooking Effects'''</span></div></div>{{{cookeffects}}} }}<!--
-->{{#if:{{{cookeffects|}}}|<div class="compendium-heading"><div><span>'''Cooking Effects'''</span></div></div>{{{cookeffects}}} }}<!--
-->{{#if:{{{addeffects|}}} |<div class="compendium-heading"><div><span>'''Additional Effects'''</span></div></div>{{{addeffects}}} }}
-->{{#if:{{{addeffects|}}} |<div class="compendium-heading"><div><span>'''Additional Effects'''</span></div></div>{{{addeffects}}} }}
|}
{{!)}}
</div><!--End of collapsing div-->
</div><!--End of collapsing div-->
</div><!--End of container div-->
}}</includeonly><noinclude>
{{clear|left}}{{#if:{{#varexists:cssCompendium}}|<!-- nothing -->|{{#css:Template:Compendium/Styles.css}}{{#vardefine:cssCompendium}}}}<noinclude>
{{Documentation}}
{{clear}}
[[Category:Templates needing CSS improvements]] <!-- should use TemplateStyles instead of inline styles -->
==Purpose==
</noinclude>
This template displays a Hyrule Compendium entry in ''Breath of the Wild''.
 
==Usage==
<pre>
{{Compendium
|number=Entry no.
|name=Name
|desc=Description
|locs=Common Locations
|props=Properties
|loot=Recoverable Materials
|healing=Hearts Recovered
|cookeffects=Cooking Effects
|addeffects=Additional Effects
}}
</pre>
 
[[Template:Compendium/Extract]] will mainly be used to display the compendium entry information from a table detailing all compendium entries:
<pre>{{Compendium/Extract}}</pre> or <pre>{{Compendium/Extract|Stamella Shroom}}</pre>
{{Compendium/Extract|Stamella Shroom}}
 
==Example==
{{Compendium
|number=Entry no.aaa
|name=Arrow
|desc=Descriptionaaa
|locs=Common Locationsaaa
|props=Propertiesaaa
|loot=Acorn Arrow Bokoblin&nbsp;Guts
|healing=Hearts Recoveredaaa
|cookeffects=Cooking Effectsaaa
|addeffects=Additional Effectsaaa
}}
 
==See Also==
*[[Template:Compendium/Extract]]
*[[Template:Compendium/Styles.css]]
 
[[Category:Comment Templates]]</noinclude>

Latest revision as of 00:21, 26 April 2023


Purpose

This template displays a Hyrule Compendium entry in Breath of the Wild.

Usage

{{Compendium
|number=Entry no.
|name=Name
|desc=Description
|locs=Common Locations
|props=Properties
|loot=Recoverable Materials
|healing=Hearts Recovered
|cookeffects=Cooking Effects
|addeffects=Additional Effects
}}

Template:Compendium/Extract will mainly be used to display the compendium entry information from a table detailing all compendium entries:

{{Compendium/Extract}}

or

{{Compendium/Extract|Stamella Shroom}}
Hyrule Compendium Entry
173 (178) Stamella Shroom
Description
A green mushroom that grows near trees in the forest. It's chock-full of natural energy. Cook it to release its stamina-restoration properties.
Common Locations
Hyrule Ridge
Hyrule Field
Hearts Recovered
Cooking Effects
Stamina Recovery

Example

Hyrule Compendium Entry
Entry no.aaa (XXX) Arrow
Description
Descriptionaaa
Common Locations
Common Locationsaaa
Recoverable Materials
Acorn Arrow Bokoblin Guts
Hearts Recovered
Hearts Recoveredaaa
Properties
Propertiesaaa
Cooking Effects
Cooking Effectsaaa
Additional Effects
Additional Effectsaaa

See Also

The above documentation is transcluded from Template:Compendium/Documentation. (edit | history)