Difference between revisions of "Template:Crafted"

From Salem Wiki
Jump to: navigation, search
m
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:Crafted]] [[Category:Objects]] }}
+
<includeonly>{{#ifeq:{{PAGENAME}}|Contributing||[[Category:Crafted]][[Category:Objects]]}}
{| style="float:left; width:320px; padding:0.2em; border:black 2px solid; border-radius:0.4em; background:#71583b; box-shadow: 2px 2px 5px #999,0px 1px 3px #C4894C inset; font-family:Calibri; margin-right:25px; margin-bottom:25px"
+
{| class="infobox2"
! style="color:white; font-size:1.4em"|{{i|{{PAGENAME}}}}
+
! class="infobox2-header"|{{i|{{PAGENAME}}|{{FULLPAGENAME}}}}
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding-left:0.2em;"
+
{| class="infobox2-skill"
 
| style="width:80px;" |'''Skill(s) required:'''
 
| style="width:80px;" |'''Skill(s) required:'''
 
| colspan=2 |{{#switch: {{{Skills required|}}} | ={{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = ul | link=none | template=i | default=None }}| {{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = ul | link=none | template=i | default= }}{{T1|{{{Skills required}}}}} }}
 
| colspan=2 |{{#switch: {{{Skills required|}}} | ={{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = ul | link=none | template=i | default=None }}| {{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = ul | link=none | template=i | default= }}{{T1|{{{Skills required}}}}} }}
Line 10: Line 10:
 
| '''Object(s) required:''' || colspan=2 | {{#switch: {{{Objects required|}}} | =None | {{T4|{{{Objects required}}} }} }}
 
| '''Object(s) required:''' || colspan=2 | {{#switch: {{{Objects required|}}} | =None | {{T4|{{{Objects required}}} }} }}
 
|-
 
|-
| style="vertical-align:top; text-align:left;" |'''Weight:'''
+
| style="text-align:left" |'''Weight:'''
 
| {{#switch: {{{Weight|}}}
 
| {{#switch: {{{Weight|}}}
  | = unknown
+
  | = ''unknown''
  | {{{Weight}}}
+
  | [[Weight::{{{Weight}}}]]
 
}}
 
}}
 
|-
 
|-
| style="vertical-align:top;" | '''Required by:'''
+
| '''Required <br />by:'''
| style="vertical-align:top;" | '''Objects'''<br />{{#ask: [[Category:Objects]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | default=None }}  
+
| '''Objects'''<br /> {{#ask: [[Category:Objects]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | default=None }}  
| style="vertical-align:top;" | '''Structures'''<br />{{#ask: [[Category:Structures]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | default=None }}  
+
| colspan=2 | '''Structures'''<br /> {{#ask: [[Category:Structures]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | default=None }}  
 
|}</includeonly>
 
|}</includeonly>
<noinclude>{{Notice|NOTE:|This is a MODULAR template. It MUST be used before one of the following templates:
+
<noinclude>{{documentation}}</noinclude>
*[[Template:Food]] if the item is a crafted food.
 
*[[Template:Inspirational]] if the item is a crafted inspirational.
 
*[[Template:Inspirational Food]] if the item is crafted and both an inspirational and a food.
 
*[[Template:Artifact]] if the item is a crafted artifact.
 
*[[Template:Inspirational Artifact]] if the item is crafted and both an inspirational and an artifact.}}
 
 
 
See [[Help:Contributing]] for instructions and examples for adding a new page to the wiki.
 
<br /><br />
 
 
 
{{Crafted
 
| Objects required=
 
| Weight=
 
}}
 
|}
 
{|
 
| style="vertical-align:top" |'''Code:'''
 
----
 
<pre>{{Crafted
 
| Objects required=
 
| Weight=
 
}}
 
</pre>
 
If it's standalone use:
 
<pre>{{Crafted
 
| Objects required=
 
| Weight=
 
}}
 
|}
 
</pre>
 
If you for some reason want to add a required skill (or several) to an object outside of the skill template you can force it by adding a "Skills required" line. However, please only use this as an exception for special cases, such as [[Salem Store]] items or similar; objects unlocked by a skill otherwise, whether directly or indirectly (such as variable crafts of one craft), should be listed on the skill page and that way be automatically displayed as a required skill for that object.
 
<pre>{{Crafted
 
| Skills required=
 
| Objects required=
 
| Weight=
 
}}
 
</pre>
 
|}
 
</noinclude>
 

Latest revision as of 23:05, 12 March 2024


Template documentation (for the template shown above, sometimes hidden or invisible)
NOTE: This is a MODULAR template. It MUST be used before one of the following templates:


See Help:Contributing for instructions and examples for adding a new page to the wiki.

Crafted icon.png Crafted
Skill(s) required: None
Object(s) required: None
Weight: unknown
Required
by:
Objects
None
Structures
None
Code:
{{Crafted
| Objects required= 
| Weight=
}}

If it's standalone use:

{{Crafted
| Objects required= 
| Weight=
}}
|}

If you for some reason want to add a required skill (or several) to an object outside of the skill template you can force it by adding a "Skills required" line. However, please only use this as an exception for special cases, such as Salem Store items or similar; objects unlocked by a skill otherwise, whether directly or indirectly (such as variable crafts of one craft), should be listed on the skill page and that way be automatically displayed as a required skill for that object.

{{Crafted
| Skills required=
| Objects required= 
| Weight=
}}

Visit Template:Crafted/doc to edit this text! (How does this work?)