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)
 
(68 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== {{#ifeq:{{{Category}}}|CC_NONCRAFT|Disassembly|Crafting}} ==
{{Navbox
{| class="va-table" cellpadding="2" style="text-align:center; margin-left:20px; margin-bottom:15px; border-style:solid; border-color:Black; border-width:0px; background-color:lightgrey; width:700px; float: left;"
|name      = Craft
|-
|title      = {{#if:{{{onlyDisassemble|}}}|Disassemble Information|Crafting Information}}
!style="text-align:left" colspan="2"|Skill: {{{Skill1|None}}} {{#if: {{{Skill1|}}}|{{{SkillLvl1}}}|}}{{#if: {{{Skill2|}}}|, {{{Skill2|}}}|}}
|state      = uncollapsed
|- style="background-color:white"
 
!Components
|bodystyle = background:#dddddd; width:100%; vertical-align:middle; border-color: #999966; color:#222222;
!Tools
|titlestyle = {{#if: {{{onlyDisassemble|}}}|background:#9933CC|background:#996633}}; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:center;
|- style="background-color:white"
|groupstyle = {{#if: {{{onlyDisassemble|}}}|background:#9933CC|background:#996633}}; color:#FFFF99; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
|{{{ComponentR|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;
|{{{Tool|None}}}
 
|}
|group1=Learned from
{| class="va-table" cellpadding="2" style="text-align:center; margin-left:20px; margin-bottom:15px; border-style:solid; border-color:Black; border-width:0px; background-color:lightgrey; width:700px"
|list1= {{#if:{{{onlyDisassemble|}}}|
|- style="background-color:white"
        |{{#switch:{{{autolearn|}}}
!Component In
            |true = Once you have the appropriate levels in all the required skills
!Tool For
            |false = {{#if: {{{book_learn1|}}}|A recipe book|When you disassemble a [[{{{name|}}}]] (if you have the required skills at the appropriate level) }}
|- style="background-color:white"
        }}
|{{{ComponentI|None}}}
    }}
|{{{ToolI|None}}}
 
|}
|group2=Recipe book
<noinclude>
|list2= {{#if: {{{book_learn1|}}}|{{Navbox|child
[[Category:Templates]]
| 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
| list1  = {{{book_learn1|}}}{{#if: {{{book_learn1|}}}|, once you reach lvl {{{book_learn1_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
 
| group2 = Book 2
| list2  = {{{book_learn2|}}}{{#if: {{{book_learn2|}}}|, once you reach lvl {{{book_learn2_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
 
| group3 = Book 3
| list3  = {{{book_learn3|}}}{{#if: {{{book_learn3|}}}|, once you reach lvl {{{book_learn3_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
 
| group4 = Book 4
| list4  = {{{book_learn4|}}}{{#if: {{{book_learn4|}}}|, once you reach lvl {{{book_learn4_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
 
| group5 = Book 5
| list5  = {{{book_learn5|}}}{{#if: {{{book_learn5|}}}|, once you reach lvl {{{book_learn5_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
 
| group6 = Book 6
| list6  = {{{book_learn6|}}}{{#if: {{{book_learn6|}}}|, once you reach lvl {{{book_learn6_lvl}}} in {{SKtoname1|{{{Skill1|}}}}}|}}
}} }}
 
|group3=Skills
|list3={{#if: {{{Skill1|}}}|{{Navbox|child
| 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
| list1  = {{SKtoname1|{{{Skill1|}}}}} {{#if: {{{Skill1|}}}|{{{SkillLvl1}}}|}}
 
| group2 = Skill 2
| list2  = {{#if: {{{Skill2|}}}|{{SKtoname1|{{{Skill2|}}}}} {{#if: {{{SkillLvl2|}}}|{{{SkillLvl2|}}}|1}}|}}
 
| group3 = Skill 3
| list3  = {{#if: {{{Skill3|}}}|{{SKtoname1|{{{Skill3|}}}}} {{#if: {{{SkillLvl3|}}}|{{{SkillLvl3|}}}|1}}|}}
 
| group4 = Skill 4
| list4  = {{#if: {{{Skill4|}}}|{{SKtoname1|{{{Skill4|}}}}} {{#if: {{{SkillLvl4|}}}|{{{SkillLvl4|}}}|1}}|}}
 
| group5 = Skill 5
| list5  = {{#if: {{{Skill5|}}}|{{SKtoname1|{{{Skill5|}}}}} {{#if: {{{SkillLvl5|}}}|{{{SkillLvl5|}}}|1}}|}}
 
| group6 = Skill 6
| list6  = {{#if: {{{Skill6|}}}|{{SKtoname1|{{{Skill6|}}}}} {{#if: {{{SkillLvl6|}}}|{{{SkillLvl6|}}}|1}}|}}
}} }}
 
|group4=Tools
|list4={{#if: {{{Tool|}}}|{{Navbox|child
| 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
| list1  = {{{Tool|}}}
 
| group2 = Tool 2
| list2  = {{{Tool2|}}}
 
| group3 = Tool 3
| list3  = {{{Tool3|}}}
 
| group4 = Tool 4
| list4  = {{{Tool4|}}}
 
| group5 = Tool 5
| list5  = {{{Tool5|}}}
 
| group6 = Tool 6
| list6  = {{{Tool6|}}}
}} }}
 
|group5=Components
|list5={{#if: {{{ComponentR|}}}|{{Navbox|child
| 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
| list1  = {{{ComponentR|}}}
 
| group2 = Comp. 2
| list2  = {{{ComponentR2|}}}
 
| group3 = Comp. 3
| list3  = {{{ComponentR3|}}}
 
| group4 = Comp. 4
| list4  = {{{ComponentR4|}}}
 
| group5 = Comp. 5
| list5  = {{{ComponentR5|}}}
 
| group6 = Comp. 6
| list6  = {{{ComponentR6|}}}
 
| group7 = Comp. 7
| list7  = {{{ComponentR7|}}}
 
| 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
|#default=
}}
 
|group8=Can only be disassembled?
|list8={{#if:{{{onlyDisassemble|}}}|Can only be disassembled|}}
 
|group9=Component in
|list9={{{ComponentI|}}}
 
|group10=Tool for
|list10={{{ToolI|}}}
 
|below={{#if: {{{name|}}}|[{{fullurl:Crafting/{{{name|}}}|action=edit}} Edit this recipe] | [{{fullurl:Crafting/{{lc:{{PAGENAME}}}}|action=edit}} Edit this recipe]}}
 
}}<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]]
</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.