Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
m (Undo revision 66432... i am too noob with that obviously. someone else please try to fix the template, it creates *.jpg in Special:WantedPages) |
m (removed Category:Needs image from the template because it doesn't work properly and will be obsolete soon.) |
||
Line 3: | Line 3: | ||
|- | |- | ||
| | | | ||
− | {{#ifexist: Image: | + | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.jpg |
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | ||
− | | {{#ifexist: Image: | + | | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.png |
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | ||
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | ||
− | |||
}} | }} | ||
}} | }} | ||
Line 14: | Line 13: | ||
! style="background-color:#3c5;" | Creation | ! style="background-color:#3c5;" | Creation | ||
|- | |- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
# [[Activate]] a {{{active}}} | # [[Activate]] a {{{active}}} | ||
# Right-click a {{{passive}}} | # Right-click a {{{passive}}} | ||
− | {{#if:{{{group|}}}|# Open submenu "Create > [[{{{group}}}]] | + | {{#if:{{{group|}}}|# Open submenu "Create > [[{{{group}}}]]}}" |
{{#ifeq:{{{materials}}}|no|| | {{#ifeq:{{{materials}}}|no|| | ||
{{!}}- | {{!}}- | ||
Line 42: | Line 23: | ||
{{!}} | {{!}} | ||
{{{materials}}} | {{{materials}}} | ||
− | |||
}} | }} | ||
|- | |- | ||
Line 53: | Line 33: | ||
|- | |- | ||
| | | | ||
− | |||
* Uses [[{{{skill}}}]] | * Uses [[{{{skill}}}]] | ||
− | |||
{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}}} | {{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}}} | ||
|} | |} | ||
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}} | {{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}} | ||
[[Category:Items]] | [[Category:Items]] | ||
− | |||
{{#if: {{#if: {{{active|}}} | {{#if: {{{passive|}}} | {{#if: {{{group|}}} | {{#if: {{{materials|}}} | {{#if: {{{result|}}} | {{{skill|}}} }} }} }} }} }} ||[[Category:Incomplete item templates]]}} | {{#if: {{#if: {{{active|}}} | {{#if: {{{passive|}}} | {{#if: {{{group|}}} | {{#if: {{{materials|}}} | {{#if: {{{result|}}} | {{{skill|}}} }} }} }} }} }} ||[[Category:Incomplete item templates]]}} | ||
− | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
− | + | Usage example: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | Usage | ||
<pre>{{item | <pre>{{item | ||
|name=Hammer *** defaults to {{PAGENAME}} *** | |name=Hammer *** defaults to {{PAGENAME}} *** | ||
− | |||
|active=[[hammer head]] (0.4 kg) | |active=[[hammer head]] (0.4 kg) | ||
|passive=[[shaft]] (1.0 kg) | |passive=[[shaft]] (1.0 kg) | ||
Line 84: | Line 53: | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Revision as of 15:47, 10 August 2011
Usage example:
{{item |name=Hammer *** defaults to {{PAGENAME}} *** |active=[[hammer head]] (0.4 kg) |passive=[[shaft]] (1.0 kg) |group=Tools |materials=no |result=1 '''hammer''' - 1.4 kg |skill=blacksmithing |improve=smithing }}