Difference between revisions of "Template:Test"

From Wurmpedia
Jump to navigation Jump to search
m (Forgive the multiple tests.)
m (Testing)
Line 10: Line 10:
 
<includeonly>
 
<includeonly>
  
{| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
+
{| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1" style="font-weight: bold"
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
+
| {{{name|{{PAGENAME}}}}}
 
|-
 
|-
 
|
 
|
Line 22: Line 22:
 
}}
 
}}
 
|-
 
|-
! style="background-color:#3c5;" | Creation
+
! style="background-color:#CCA133;" | Creation
 
|-
 
|-
|
+
| <ol><li>[[Activate]] {{{active}}}</li><li>Right-click {{{passive}}}</li><li>Open [[Context menu|menu]] > [[Bridges]] </li></ol>
<!-- creation attribute overrides showing creation steps, displaying the text below instead -->
+
|-
{{#if:{{{creation|}}}
+
! style="background-color:#CCAA133;" | Additional materials - {{{materials}}}
    |{{#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
+
! style="background-color:#CCAA133" | Result
 
|-  
 
|-  
|
+
| {{{result}}}
{{{result}}}
 
 
|-
 
|-
! style="background-color:#3c5;" | Skill and improvement
+
! style="background-color:#CCAA133;" | Skill and improvement
 
|-
 
|-
 
|{{#if:{{{skill|}}}|* Uses [[{{{skill}}}]]
 
|{{#if:{{{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:{{{improveItem|}}}|* {{#ifeq:{{{improveItem}}}|no|Cannot be [[improve]]d|[[Improve]] with [[{{{improveItem}}}]]}}}}
 
}}{{#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 -->
 
<!-- optional note -->
 
{{!}}-
 
{{!}}-
! style="background-color:#3c5;" {{!}} Notes
+
! style="background-color:#CCAA133;" {{!}} Notes
 
{{!}}-
 
{{!}}-
 
{{!}}{{#ifeq:{{{note}}}|no|None|{{{note}}}}}}}
 
{{!}}{{#ifeq:{{{note}}}|no|None|{{{note}}}}}}}
 
|}
 
|}
 
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
 
{{#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>
 
</includeonly>

Revision as of 21:18, 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.