Template:CraftingRecipe: Difference between revisions
Appearance
m Protected "Template:CraftingRecipe" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="crafting-recipe-template"> | <div class="crafting-recipe-template"> | ||
<includeonly>{{DISPLAYTITLE:{{{name}}}}}</includeonly> | |||
'''{{{name|{{PAGENAME}}}}}''' | '''{{{name|{{PAGENAME}}}}}''' | ||
{{#if:{{{recipe_image|}}}|[[File:{{{recipe_image}}}|thumb|{{{name}}} Recipe]]|[[File:Image_Placeholder.png|thumb|Image Needed]]}} | |||
{{#if:{{{ | <!-- | ||
[[File:{{{ | ========================== | ||
}} | RECIPE INFO | ||
========================== | |||
<!-- ========================== | --><div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Recipe Info</div> | ||
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Recipe Info</div> | |||
<hr style="border: 0; border-top: 1px solid #555;" /> | <hr style="border: 0; border-top: 1px solid #555;" /> | ||
<div style="margin-left: 1em;"> | <div style="margin-left: 1em;"> | ||
{{#if:{{{ | {{#if:{{{recipe_category|}}}|'''Category: [[{{{recipe_category}}}]]'''<br /> | ||
{{#if:{{{profession|}}}|'''Profession Requirement | }}{{#if:{{{profession|}}}|'''Profession Requirement: [[{{{profession}}}]]'''<br /> | ||
{{#if:{{{level_requirement|}}}|'''Level Requirement''' | }}{{#if:{{{level_requirement|}}}|'''Profession Level Requirement:''' {{{level_requirement}}}<br /> | ||
{{#if:{{{recipe_book|}}}|'''Learned From''' | }}{{#if:{{{recipe_book|}}}|'''Learned From:''' {{#invoke:SingleLink|fromNotation|1={{{recipe_book}}} }}<br /> | ||
</div> | }}</div><!-- | ||
========================== | |||
<!-- ========================== | PRODUCTS | ||
========================== | |||
-->{{#if:{{{products|}}}| | |||
{{#if:{{{products|}}}| | |||
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Products</div> | <div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Products</div> | ||
<hr style="border: 0; border-top: 1px solid #555;" /> | <hr style="border: 0; border-top: 1px solid #555;" /> | ||
Line 28: | Line 24: | ||
{{#invoke:ListLinks|fromDelimited|1={{{products}}}|delimiter=, }} | {{#invoke:ListLinks|fromDelimited|1={{{products}}}|delimiter=, }} | ||
</div> | </div> | ||
}} | }}<!-- | ||
========================== | |||
<!-- ========================== | COMPONENTS | ||
========================== | |||
-->{{#if:{{{component1_name|}}}| | |||
{{#if:{{{component1_name|}}}| | |||
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Components</div> | <div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Components</div> | ||
<hr style="border: 0; border-top: 1px solid #555;" /> | <hr style="border: 0; border-top: 1px solid #555;" /> | ||
Line 51: | Line 46: | ||
{{#if:{{{component5_name|}}}|<li>'''{{{component5_name}}}''' x{{{component5_amount}}}<br /> | {{#if:{{{component5_name|}}}|<li>'''{{{component5_name}}}''' x{{{component5_amount}}}<br /> | ||
{{#invoke:CategoryLinks|fromDelimited|1={{{component5_categories}}}|delimiter=, }}</li>}} | {{#invoke:CategoryLinks|fromDelimited|1={{{component5_categories}}}|delimiter=, }}</li>}} | ||
</ul> | </ul> | ||
}} | }}<!-- | ||
========================== | |||
<!-- ========================== --> | NOTES | ||
<!-- CATEGORIES | ========================== | ||
-->{{#if:{{{notes|}}}| | |||
[[Category:Crafting Recipes]] | {{Notes | ||
|notes={{{notes|}}} | |||
}}}}<!-- | |||
========================== | |||
CATEGORIES | |||
========================== | |||
--><includeonly>[[Category:Crafting Recipes]]</includeonly> | |||
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}} | {{#if:{{{category|}}}|[[Category:{{{category}}}]]}} | ||
{{#if:{{{profession|}}}|[[Category:{{{profession}}} Recipes]]}} | {{#if:{{{profession|}}}|[[Category:{{{profession}}} Recipes]]}} | ||
</div> | |||
</div> | <includeonly><div style="display:none"> | ||
[[Recipe type::Crafting]] | |||
[[Recipe category::{{{recipe_category|}}}]] | |||
[[Profession requirement::{{{profession|}}}]] | |||
[[Profession level requirement::{{{level_requirement|}}}]] | |||
{{#arraymap:{{{products|}}}|,|x|[[Recipe products::x]]}} | |||
{{#arraymap:{{{component1_categories|}}}|,|x|[[Crafting component material category::x]]}} | |||
{{#arraymap:{{{component2_categories|}}}|,|x|[[Crafting component material category::x]]}} | |||
{{#arraymap:{{{component3_categories|}}}|,|x|[[Crafting component material category::x]]}} | |||
{{#arraymap:{{{component4_categories|}}}|,|x|[[Crafting component material category::x]]}} | |||
{{#arraymap:{{{component5_categories|}}}|,|x|[[Crafting component material category::x]]}} | |||
<span style="display:none">{{#default_form:CraftingRecipe}}</span> | |||
</div></includeonly> |