Template:CraftMN: Difference between revisions
(creating sandbox page to test crafted swappable weapon templates) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{{t|}}} |
{{#switch:{{{t|}}} |
||
|sa|s={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
|sa|s={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
||
{{!}} {{{1|?}}} |
{{!}} {{{1|?}}} |
||
Line 59: | Line 61: | ||
{{!}} align="right" {{!}} {{{15|?}}} |
{{!}} align="right" {{!}} {{{15|?}}} |
||
}} |
}} |
||
|la={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
|la={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
||
{{!}} {{{1|?}}}{{#switch:{{{2|}}}|n|no|-=|{{!}}{{!}} {{{2|?}}}}} |
{{!}} {{{1|?}}}{{#switch:{{{2|}}}|n|no|-=|{{!}}{{!}} {{{2|?}}}}} |
||
Line 91: | Line 94: | ||
{{!}} {{GearProcess|{{{14|?}}}|abs2}}{{#switch:{{{15|}}}|-=|{{!}}{{!}} {{GearProcess|{{{15|?}}}|const2}}}} |
{{!}} {{GearProcess|{{{14|?}}}|abs2}}{{#switch:{{{15|}}}|-=|{{!}}{{!}} {{GearProcess|{{{15|?}}}|const2}}}} |
||
{{!}} {{{16|?}}}}} |
{{!}} {{{16|?}}}}} |
||
|w={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
|w={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
||
⚫ | |||
{{!}} {{{mode}}}|}} |
|||
{{!}} {{{1|?}}}{{#switch:{{{2|}}}|n|no|-=|{{!}}{{!}} {{{2|?}}}}} |
{{!}} {{{1|?}}}{{#switch:{{{2|}}}|n|no|-=|{{!}}{{!}} {{{2|?}}}}} |
||
{{!}} align="center" {{!}} {{{m|}}} |
{{!}} align="center" {{!}} {{{m|}}} |
||
Line 103: | Line 105: | ||
{{!}} {{#switch:{{{8}}}|-=-|{{#if:{{{8}}}|[[standard suitability is::{{GearProcess3|{{{8}}}|suit|n}}|{{GearProcess3|{{{8}}}|suit|s}}]]|?}}}}{{#switch:{{{9|}}}|-=|{{!}}{{!}} {{#if:{{{9|}}}|[[standard construction is::{{GearProcess3|{{{9}}}|const|n}}|{{GearProcess3|{{{9}}}|const|s}}]]|?}}}} |
{{!}} {{#switch:{{{8}}}|-=-|{{#if:{{{8}}}|[[standard suitability is::{{GearProcess3|{{{8}}}|suit|n}}|{{GearProcess3|{{{8}}}|suit|s}}]]|?}}}}{{#switch:{{{9|}}}|-=|{{!}}{{!}} {{#if:{{{9|}}}|[[standard construction is::{{GearProcess3|{{{9}}}|const|n}}|{{GearProcess3|{{{9}}}|const|s}}]]|?}}}} |
||
{{!}} align="right" {{!}} {{#if:{{{10|}}}|[[standard weight is::{{{10}}}]]|?}} |
{{!}} align="right" {{!}} {{#if:{{{10|}}}|[[standard weight is::{{{10}}}]]|?}} |
||
|#default={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
|#default={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}}}} |
||
{{#if:{{{mode|}}} |
|||
|ws={{#switch:{{{standard|}}}{{{st|}}}|y|yes|t|true={{!}}- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}} |
|||
|{{#switch:{{{r|}}} |
|||
{{!}} {{{1|?}}}{{#switch:{{{2|}}}|n|no|-=|{{!}}{{!}} {{{2|?}}}}} |
|||
|b= |
|||
{{!}} align="center" {{!}} {{{m|}}} |
|||
⚫ | |||
}} |
|||
{{!}} {{#if:{{{4}}}|[[standard piercing damage is::{{GearProcess3|{{{4}}}|dam|n}}|{{GearProcess3|{{{4}}}|dam|s}}]]|?}} |
|||
{{!}} {{#if:{{{5}}}|[[standard slicing damage is::{{GearProcess3|{{{5}}}|dam|n}}|{{GearProcess3|{{{5}}}|dam|s}}]]|?}} |
|||
}}{{#switch:{{{2|}}} |
|||
{{!}} {{#if:{{{6}}}|[[standard impact damage is::{{GearProcess3|{{{6}}}|dam|n}}|{{GearProcess3|{{{6}}}|dam|s}}]]|?}} |
|||
|n |
|||
{{!}} {{#if:{{{7}}}|[[standard foi is::{{GearProcess3|{{{7}}}|foi|n}}|{{GearProcess3|{{{7}}}|foi|s}}]]|?}} |
|||
|no |
|||
⚫ | |||
|-= |
|||
{{!}} {{#switch:{{{9}}}|-=-|{{#if:{{{9}}}|[[standard suitability is::{{GearProcess3|{{{9}}}|suit|n}}|{{GearProcess3|{{{9}}}|suit|s}}]]|?}}}}{{#switch:{{{10|}}}|-=|{{!}}{{!}} {{#if:{{{10|}}}|[[standard construction is::{{GearProcess3|{{{10}}}|const|n}}|{{GearProcess3|{{{9}}}|const|s}}]]|?}}}} |
|||
⚫ | |||
{{!}} align="right" {{!}} {{#if:{{{11|}}}|[[standard weight is::{{{11}}}]]|?}} |
|||
|{{#switch:{{{r|}}} |
|||
⚫ | |||
|b= |
|||
- {{#switch:{{{e}}}|y|yes|t|true= style="color: red"}}}} |
|||
|#default={{!}}{{!}} rowspan="{{{r}}}" {{!}} {{{2|?}}} |
|||
{{!}} {{#if: {{{r|}}} | {{#ifexpr: {{{r}}} > 3 | error: swapcount (r) must be 2 or 3| {{ifexpr: {{{r}}} < 2 | error: swapcount (r) must be 2 or 3 | rowspan="{{{r}}}" }} | swapcount (r) must be defined as 2 or 3 }} |
|||
}} |
|||
|{{!}}{{!}}{{{2|?}}} |
|||
}} |
|||
}}{{#if:{{{mode|}}} |
|||
|{{#switch:{{{r|}}} |
|||
|b= |
|||
|#default={{!}}{{!}} align="center" rowspan="{{{r}}}" {{!}} {{{m|{{+}}}}} |
|||
⚫ | |||
}} |
|||
|{{!}}{{!}} align="center" {{!}}{{{m|{{+}}}}} |
|||
}}{{#if:{{{mode|}}} |
|||
|{{!}}{{!}} {{{mode}}} |
|||
| |
|||
}} |
|||
{{!}} {{#if:{{#pos:{{{b|}}}|03}}|<u>'''}}{{GearProcess|{{{3|?}}}|dam2}}{{#if:{{#pos:{{{b|}}}|03}}|'''</u>}} |
|||
{{!}} {{#if:{{#pos:{{{b|}}}|04}}|<u>'''}}{{GearProcess|{{{4|?}}}|dam2}}{{#if:{{#pos:{{{b|}}}|04}}|'''</u>}} |
|||
{{!}} {{#if:{{#pos:{{{b|}}}|05}}|<u>'''}}{{GearProcess|{{{5|?}}}|dam2}}{{#if:{{#pos:{{{b|}}}|05}}|'''</u>}} |
|||
{{!}} {{#if:{{#pos:{{{b|}}}|06}}|<u>'''}}{{GearProcess|{{{6|?}}}|foi2}}{{#if:{{#pos:{{{b|}}}|06}}|'''</u>}} |
|||
⚫ | |||
{{!}} {{#switch:{{{8}}}|-=-|{{#if:{{#pos:{{{b|}}}|08}}|<u>'''}}{{GearProcess|{{{8|?}}}|suit2}}{{#if:{{#pos:{{{b|}}}|08}}|'''</u>}}}}{{#switch:{{{9|}}}|-=|#default={{#if:{{{mode|}}}|{{#switch:{{{r|}}}|b=|#default={{!}}{{!}} rowspan="{{{r}}}" {{!}} {{GearProcess|{{{9|?}}}|const2}}}}|{{!}}{{!}}{{GearProcess|{{{9|?}}}|const2}}}}}}{{#if:{{{mode|}}}|{{#switch:{{{r|}}}|b=|#default={{!}}{{!}} rowspan="{{{r}}}" align="right" {{!}} {{{10|?}}}}}|{{!}}{{!}} align="right" {{!}} {{{10|?}}}}}}} |
|||
⚫ | |||
==Usage Documentation== |
==Usage Documentation== |
||
A template for organizing armor and shields made from metal. |
A template for organizing armor and shields made from metal. |
Revision as of 23:23, 5 March 2024
{{#switch:
|sa|s=|-
| ?
| align="center" |
| ?
| ?
| align="right" | ?
| align="right" | ?
|t|tool= |- | ? | ? | ? | ? | ?
|lsh|sh=|-
| ?|| ?
| align="center" |
| ?
| ?
| ?
| ?
| ?
| ?
| ?
| ?
| ?
| ?|| ?
| align="right" | ?
| align="right" | ?
|la=|- | ?|| ? | align="center" | | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ?|| ? | ?
|w=|-
|ws=| - | {{#if: | Expression error: Unrecognized punctuation character "{".
Usage Documentation
A template for organizing armor and shields made from metal.
If "t=sh" it displays it as a shield. If "t=s" it displays the armor piece short form. Documentation is awaiting final additions.
If the weapon is a swappable one, then "mode=" will set which side is used, and "r=#" is used to indicate how many of the following lines are the same weapon, while "r=b" is used to indicate that it is one of those following lines.