Template:Compendium: Difference between revisions

Jump to navigation Jump to search
m
→‎top: Standardizing Maintenance Categories
m (Forgot to change the Styles.css link)
m (→‎top: Standardizing Maintenance Categories)
 
(34 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;"|<!--
{{!}} 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;"|<!--
{{!}} rowspan="1" colspan="1" style="text-align: center; padding:0 1em"{{!}}<!--
-->{{#if:{{{healing|}}}    |<div class="compendium-heading"><div><span>'''Hearts Recovered'''</span></div></div>{{{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>
{{Template: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>{{Template:Compendium/Extract|Honeyvore Bear}}</pre>
{{Template:Compendium/Extract|Honeyvore Bear}}
 
==Example==
{{Template:Compendium
|number=Entry no.aaa
|name=Arrow
|desc=Descriptionaaa
|locs=Common Locationsaaa
|props=Propertiesaaa
|loot=Recoverable Materialsaaa
|healing=Hearts Recoveredaaa
|cookeffects=Cooking Effectsaaa
|addeffects=Additional Effectsaaa
}}
[[Category:Comment Templates]]</noinclude>
autopatrol, Bots, curators, Administrators
42,457

edits

Navigation menu