Template:Craft: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(WARNING: If you are going to use this template in Crafting\ pages, please type the name of the good in the name of the page in lowercase, otherwise it won't work;)
(Trying again on background colors)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Navbox
{{Navbox
|name      = Craft
|name      = Craft
|title      = Crafting Information
|title      = {{#if:{{{onlyDisassemble|}}}|Disassemble Information|Crafting Information}}
|state      = uncollapsed
|state      = uncollapsed


|bodystyle = background:#fdfdfd; width:100%; vertical-align:middle; border-color: #999966;
|bodystyle = background:#dddddd; width:100%; vertical-align:middle; border-color: #999966; color:#222222;
|titlestyle = background:#996633; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:center;
|titlestyle = {{#if: {{{onlyDisassemble|}}}|background:#9933CC|background:#996633}}; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:center;
|groupstyle = background:#996633; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
|groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9933CC|background:#996633}}; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
|belowstyle = background:#C6AA8D; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:center; font-weight: bold; white-space:nowrap; font-size: 0.8em; text-decoration: none;
|belowstyle = {{#if: {{{onlyDisassemble|}}}|background:#9966FF|background:#FFFFDD}}; color:#C6AA8D; padding-left:1em; padding-right:1em; text-align:center; font-weight: bold; white-space:nowrap; font-size: 0.8em; text-decoration: none;


|group1=Learned from
|group1=Learned from
|list1= {{#switch:{{{autolearn|}}}
|list1= {{#if:{{{onlyDisassemble|}}}|
|true = Once you have the appropriate levels in all the required skills
        |{{#switch:{{{autolearn|}}}
|false = {{#if: {{{book_learn1|}}}|A recipe book|When you disassemble a [[{{{name|}}}]] (if you have the required skills at the appropriate level) }}
            |true = Once you have the appropriate levels in all the required skills
}}
            |false = {{#if: {{{book_learn1|}}}|A recipe book|When you disassemble a [[{{{name|}}}]] (if you have the required skills at the appropriate level) }}
        }}
    }}


|group2=Recipe book
|group2=Recipe book
|list2= {{#if: {{{book_learn1|}}}|{{Navbox|child
|list2= {{#if: {{{book_learn1|}}}|{{Navbox|child
| groupstyle = background:#999966; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
| groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9966FF|background:#999966}}; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;


| group1 = Book 1
| group1 = Book 1
Line 40: Line 42:
|group3=Skills
|group3=Skills
|list3={{#if: {{{Skill1|}}}|{{Navbox|child
|list3={{#if: {{{Skill1|}}}|{{Navbox|child
| groupstyle = background:#999966; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
| groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9966FF|background:#999966}}; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;


| group1 = Skill 1
| group1 = Skill 1
Line 63: Line 65:
|group4=Tools
|group4=Tools
|list4={{#if: {{{Tool|}}}|{{Navbox|child
|list4={{#if: {{{Tool|}}}|{{Navbox|child
| groupstyle = background:#999966; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
| groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9966FF|background:#999966}}; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;


| group1 = Tool 1
| group1 = Tool 1
Line 86: Line 88:
|group5=Components
|group5=Components
|list5={{#if: {{{ComponentR|}}}|{{Navbox|child
|list5={{#if: {{{ComponentR|}}}|{{Navbox|child
| groupstyle = background:#999966; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
| groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9966FF|background:#999966}}; color:#FFFFCC; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;


| group1 = Comp. 1
| group1 = Comp. 1
Line 121: Line 123:
|group6=Crafting time
|group6=Crafting time
|list6={{#if: {{{time|}}}|{{craftingtime|{{{time|0}}}}} }}
|list6={{#if: {{{time|}}}|{{craftingtime|{{{time|0}}}}} }}
|bodycolor=background:#333333;


|group7=Can be disassembled?
|group7=Can be disassembled?
Line 129: Line 132:
}}
}}


|group8=Component in
|group8=Can only be disassembled?
|list8={{{ComponentI|}}}
|list8={{#if:{{{onlyDisassemble|}}}|Can only be disassembled|}}
 
|group9=Component in
|list9={{{ComponentI|}}}


|group9=Tool for
|group10=Tool for
|list9={{{ToolI|}}}
|list10={{{ToolI|}}}


|below={{#if: {{{name|}}}|[{{fullurl:Crafting/{{{name|}}}|action=edit}} Edit this recipe] | [{{fullurl:Crafting/{{lc:{{PAGENAME}}}}|action=edit}} Edit this recipe]}}
|below={{#if: {{{name|}}}|[{{fullurl:Crafting/{{{name|}}}|action=edit}} Edit this recipe] | [{{fullurl:Crafting/{{lc:{{PAGENAME}}}}|action=edit}} Edit this recipe]}}
Line 139: Line 145:
}}<noinclude>
}}<noinclude>
WARNING: If you are going to use this template in Crafting\ pages, please type the name of the good in the name of the page in lowercase, otherwise it won't work;
WARNING: If you are going to use this template in Crafting\ pages, please type the name of the good in the name of the page in lowercase, otherwise it won't work;
If the item can only be disassembled, set 'onlyDisassemble' to 1, and 'reversible' to 'true'. This will change the color of the template, and add the text that it can only be disassembled.
[[category:navbox templates]]
[[category:navbox templates]]
</noinclude>
</noinclude>

Latest revision as of 01:11, 22 February 2021

WARNING: If you are going to use this template in Crafting\ pages, please type the name of the good in the name of the page in lowercase, otherwise it won't work;

If the item can only be disassembled, set 'onlyDisassemble' to 1, and 'reversible' to 'true'. This will change the color of the template, and add the text that it can only be disassembled.