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;)
(Added onlyDisassemble field. WIP.)
Line 5: Line 5:


|bodystyle = background:#fdfdfd; width:100%; vertical-align:middle; border-color: #999966;
|bodystyle = background:#fdfdfd; width:100%; vertical-align:middle; border-color: #999966;
|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 = 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 = 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;
Line 129: Line 129:
}}
}}


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


|group9=Tool for
|group9=Component in
|list9={{{ToolI|}}}
|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]}}
|below={{#if: {{{name|}}}|[{{fullurl:Crafting/{{{name|}}}|action=edit}} Edit this recipe] | [{{fullurl:Crafting/{{lc:{{PAGENAME}}}}|action=edit}} Edit this recipe]}}
Line 139: Line 142:
}}<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>

Revision as of 02:33, 6 August 2016

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.