Template:Craft: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
No edit summary
(Trying again on background colors)
 
(24 intermediate revisions by 5 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 = {{#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=Learnt 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 22: Line 25:


| group2 = Book 2
| group2 = Book 2
| list2  = {{{book_learn2|}}}{{#if: {{{book_learn2|}}}|, once you reach lvl {{{book_learn2_lvl}}} in {{SKtoname1|{{{Skill2|}}}}}|}}
| list2  = {{{book_learn2|}}}{{#if: {{{book_learn2|}}}|, once you reach lvl {{{book_learn2_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}


| group3 = Book 3
| group3 = Book 3
| list3  = {{{book_learn3|}}}{{#if: {{{book_learn3|}}}|, once you reach lvl {{{book_learn3_lvl}}} in {{SKtoname1|{{{Skill3|}}}}}|}}
| list3  = {{{book_learn3|}}}{{#if: {{{book_learn3|}}}|, once you reach lvl {{{book_learn3_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}


| group4 = Book 4
| group4 = Book 4
| list4  = {{{book_learn4|}}}{{#if: {{{book_learn4|}}}|, once you reach lvl {{{book_learn4_lvl}}} in {{SKtoname1|{{{Skill4|}}}}}|}}
| list4  = {{{book_learn4|}}}{{#if: {{{book_learn4|}}}|, once you reach lvl {{{book_learn4_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}


| group5 = Book 5
| group5 = Book 5
| list5  = {{{book_learn5|}}}{{#if: {{{book_learn5|}}}|, once you reach lvl {{{book_learn5_lvl}}} in {{SKtoname1|{{{Skill5|}}}}}|}}
| list5  = {{{book_learn5|}}}{{#if: {{{book_learn5|}}}|, once you reach lvl {{{book_learn5_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}


| group6 = Book 6
| group6 = Book 6
| list6  = {{{book_learn6|}}}{{#if: {{{book_learn6|}}}|, once you reach lvl {{{book_learn6_lvl}}} in {{SKtoname1|{{{Skill6|}}}}}|}}
| list6  = {{{book_learn6|}}}{{#if: {{{book_learn6|}}}|, once you reach lvl {{{book_learn6_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
}} }}
}} }}


|group3=Skills
|group3=Skills
|list3={{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 58: Line 61:
| group6 = Skill 6
| group6 = Skill 6
| list6  = {{#if: {{{Skill6|}}}|{{SKtoname1|{{{Skill6|}}}}} {{#if: {{{SkillLvl6|}}}|{{{SkillLvl6|}}}|1}}|}}
| list6  = {{#if: {{{Skill6|}}}|{{SKtoname1|{{{Skill6|}}}}} {{#if: {{{SkillLvl6|}}}|{{{SkillLvl6|}}}|1}}|}}
}}
}} }}


|group4=Tools
|group4=Tools
|list4={{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 81: Line 84:
| group6 = Tool 6
| group6 = Tool 6
| list6  = {{{Tool6|}}}
| list6  = {{{Tool6|}}}
}}
}} }}


|group5=Components
|group5=Components
|list5={{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 104: Line 107:
| group6 = Comp. 6
| group6 = Comp. 6
| list6  = {{{ComponentR6|}}}
| list6  = {{{ComponentR6|}}}
}}


|group6=Can be disassembled?
| group7 = Comp. 7
|list6={{#switch:{{{reversible|}}}
| list7  = {{{ComponentR7|}}}
|true=Yes {{#if: {{{decomp_learn|}}}|it'll also give you {{{decomp_learn|}}} experience points towards {{SKtoname1|{{{Skill1|}}}}}}}
 
| group8 = Comp. 8
| list8  = {{{ComponentR8|}}}
 
| group9 = Comp. 9
| list9  = {{{ComponentR9|}}}
 
| group10 = Comp. 10
| list10  = {{{ComponentR10|}}}
}} }}
 
|group6=Crafting time
|list6={{#if: {{{time|}}}|{{craftingtime|{{{time|0}}}}} }}
|bodycolor=background:#333333;
 
|group7=Can be disassembled?
|list7={{#switch:{{{reversible|}}}
|true=Yes{{#if: {{{decomp_learn|}}}|, and it'll also give you {{{decomp_learn|}}} experience points towards all the used skills when disassembling it }}
|false=No
|false=No
|#default=
|#default=
}}
}}


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


|group8=Tool for
|group10=Tool for
|list8={{{ToolI|}}}
|list10={{{ToolI|}}}


|below=[{{fullurl:Crafting/{{{name|}}}|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]}}


}}<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;
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.