Template:Test: Difference between revisions

From WU Wiki
Jump to navigation Jump to search
wurmpedia->Thyrh
No edit summary
wurmpedia->Marni
m Forgive the multiple tests.
Line 1: Line 1:
<noinclude>This is the template sandbox, write your template in [[Template:Test]] and test it and see how it looks in [[Template Sandbox]].</noinclude>
<noinclude>
This is a useless and very basic test template and the name of this page is {{PAGENAME}}.
This is the template sandbox, write your template in [[Template:Test]] and test it and see how it looks in [[Template Sandbox]]. This is a useless and very basic test template and the name of this page is {{PAGENAME}}.
[[Category:Template]]
</noinclude>


<noinclude>[[Category:Template]]</noinclude>
<!-- DO NOT DELETE ABOVE THIS LINE -->
<!-- DO NOT DELETE ABOVE THIS LINE -->
<!-- DO NOT DELETE ABOVE THIS LINE -->
 
<includeonly>
 
{| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
|-
|
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
    | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
    | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
    }}
}}
|-
! style="background-color:#3c5;" | Creation
|-
|
<!-- creation attribute overrides showing creation steps, displaying the text below instead -->
{{#if:{{{creation|}}}
    |{{#switch: {{lc:{{{creation}}}}}
    | no = This item can not be created.
    | farm = Obtained through [[Farming|harvesting]].
    | forage = Obtained through [[forage|foraging]].
    | botanize = Obtained through [[botanize|botanizing]].
    | fish = Obtained through [[fishing]].
    | mine = Obtained through [[mining]].
    | wood = Obtained through [[woodcutting]].
    | dig = Obtained through [[digging]].
    | butchering = Obtained through [[butchering]].
    | cooking = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}.
* Cook in a [[:Category:Fire_sources|fire place]].
    | #default = {{{creation}}}
    }}
    |<!-- if there is no creation attribute show steps for how to create -->
<ol>
<li>[[Activate]] {{{active}}}</li>
<li>Right-click {{{passive}}}</li>
{{#if:{{{group|}}}
    | <li>Open submenu "Create > [[{{{group}}}]]"</li>
    | {{#if:{{{groupM|}}}
        | <li>Open submenu > {{{groupM}}}</li>
        | {{#if:{{{TopMost|}}}
            | <li>Open [[Context menu|menu]] > {{{TopMost}}}</li>
            | {{#if:{{{assemble|}}}
                | <li>{{{assemble}}}</li>
            }}
        }}
    }}
}}
</ol>
{{#ifeq:{{{materials}}}|no||
{{!}}-
! style="background-color:#3c5;" {{!}} Additional materials
{{!}}-
{{!}}
{{{materials}}}
}}
}}
|-
! style="background-color:#3c5" | Result
|-
|
{{{result}}}
|-
! style="background-color:#3c5;" | Skill and improvement
|-
|{{#if:{{{skill|}}}|* Uses [[{{{skill}}}]]
}}{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}
}}{{#if:{{{improveItem|}}}|* {{#ifeq:{{{improveItem}}}|no|Cannot be [[improve]]d|[[Improve]] with [[{{{improveItem}}}]]}}}}
<!--optional properties -->
{{#if: {{{decoration|}}}|
{{!}}-
! style="background-color:#3c5;" {{!}} Properties
{{!}}-
{{!}}|
{{#if: {{{storage|}}}|
{{!}}-
! style="background-color:#3c5;" {{!}} Properties
{{!}}-
{{!}}|
{{#ifeq: {{{combinable|no}}}|no||
{{!}}-
! style="background-color:#3c5;" {{!}} Properties
{{!}}-
{{!}}}}}}
}}{{#if: {{{decoration|}}}|
{{#switch: {{lc:{{{decoration}}}}}
| yes = * Appears as decoration.[[Category:Decoration]]
| no = * Appears as an item pile.
}}}}{{#switch: {{lc:{{{storage}}}}}
| fsb = * Can be stored in a [[Food storage bin]].[[Category:Food storage items]]
| bsb = * Can be stored in a [[Bulk storage bin]].[[Category:Bulk storage items]]
}}{{#if: {{{combinable|}}}|{{#switch: {{lc:{{{combinable}}}}}
| hot = * Can be [[Combine|combined]] when glowing hot.
| yes = * Can be [[Combine|combined]].
}}}}{{#if: {{{note|}}}|
<!-- optional note -->
{{!}}-
! style="background-color:#3c5;" {{!}} Notes
{{!}}-
{{!}}{{#ifeq:{{{note}}}|no|None|{{{note}}}}}}}
|}
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
[[Category:Items]]
<!-- If (1 creation and (2 anyone from  the create group - active and pasive and [3)- at least one of group or groupM or TopMost or assemble must be NOT empty] and materials and result and skill - are empty add to Incomplete item templates -->
{{#if:{{{creation|}}}||{{#if:{{#if: {{{active|}}} |{{#if: {{{passive|}}} |{{#if:{{#if: {{{group|}}}|{{{group|}}}|{{#if: {{{groupM|}}}|{{{groupM|}}}|{{#if: {{{TopMost|}}}|{{{TopMost|}}}|{{#if:{{{assemble|}}}|{{{assemble|}}}|}}}}}}}}|{{#if: {{{materials|}}}|{{#if: {{{result|}}} | {{{skill|}}} }}}}}}}}}}||[[Category:Incomplete item templates]]}}}}
 
</includeonly>

Revision as of 21:03, 14 October 2014

This is the template sandbox, write your template in Template:Test and test it and see how it looks in Template Sandbox. This is a useless and very basic test template and the name of this page is Test.