Difference between revisions of "User:Kingerman88/Sandbox"
Jump to navigation
Jump to search
Kingerman88 (talk | contribs) |
Kingerman88 (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 62: | Line 62: | ||
--> | --> | ||
{{#vardefine:temp| User:Kingerman88/Sandbox/AnimalTemplate}} | {{#vardefine:temp| User:Kingerman88/Sandbox/AnimalTemplate}} | ||
− | [[User:Kingerman88/Sandbox/AnimalTemplate]] | + | {{#vardefine:BMTRC | User:Kingerman88/Sandbox/Building Material Table Row Copy}} |
+ | [[User:Kingerman88/Sandbox/AnimalTemplate]] <br> | ||
[[User:Kingerman88/Sandbox/Building Material Table Row Copy]] | [[User:Kingerman88/Sandbox/Building Material Table Row Copy]] | ||
Line 72: | Line 73: | ||
{{User:Kingerman88/Sandbox/AnimalTemplate | Bison}} | {{User:Kingerman88/Sandbox/AnimalTemplate | Bison}} | ||
{{{{#var:temp}} | Caribou }} | {{{{#var:temp}} | Caribou }} | ||
+ | |} | ||
+ | |||
+ | {| {{STDT|sortable c_01 text-center}} | ||
+ | |- | ||
+ | ! Material | ||
+ | ! data-sort-type="number" | [[Stuff]] cost | ||
+ | ! data-sort-type="number" | Beauty | ||
+ | ! data-sort-type="number" | Work | ||
+ | ! data-sort-type="number" | Mass | ||
+ | ! data-sort-type="number" | HP | ||
+ | ! data-sort-type="number" | Flammability | ||
+ | ! Terrain Affordance | ||
+ | ! data-sort-type="number" | Market Value | ||
+ | |- | ||
+ | |||
+ | {{#vardefine:name | Barricade }}<!--- | ||
+ | -->{{#vardefine:beauty|{{formatnum:{{Q|{{#var:name}}|Beauty Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:work|{{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}}}}<!--- | ||
+ | -->{{#vardefine:mass|{{formatnum:{{Q|{{#var:name}}|Mass Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:flammability|{{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:value|{{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:stufftags|{{Q|{{#var:name}}|Stuff Tags}}}}<!--- | ||
+ | -->{{#vardefine:stuffAmount|{{Q|{{#var:name}}|Resource 1 Amount}}}}<!--- | ||
+ | -->{{#vardefine:useTerrainAffordance|1}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Leathery|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bearskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Birdskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bluefur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Camelhide}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Chinchilla fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Dog leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Elephant leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Foxfur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Guinea pig fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Heavy fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Human leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Lightleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Lizardskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Panthera fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Patchleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Pigskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Plainleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Rhinoceros leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Thrumbofur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Wolfskin}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Fabric|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Alpaca wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bison wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Cloth}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Devilstrand}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Hyperweave}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Megasloth wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Muffalo wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Sheep wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Synthread}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Woody|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Wood}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Stony|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Granite blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Limestone blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Marble blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Sandstone blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Slate blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Jade}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Metallic|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Gold}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Plasteel}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Silver}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Steel}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Uranium}} | ||
+ | }} | ||
+ | {{#vardefine:name | Sandbags }}<!--- | ||
+ | -->{{#vardefine:beauty|{{formatnum:{{Q|{{#var:name}}|Beauty Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:work|{{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}}}}<!--- | ||
+ | -->{{#vardefine:mass|{{formatnum:{{Q|{{#var:name}}|Mass Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:flammability|{{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:value|{{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}<!--- | ||
+ | -->{{#vardefine:stufftags|{{Q|{{#var:name}}|Stuff Tags}}}}<!--- | ||
+ | -->{{#vardefine:stuffAmount|{{Q|{{#var:name}}|Resource 1 Amount}}}}<!--- | ||
+ | -->{{#ifeq: | {{#pos:{{#var:stufftags}}|Leathery|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bearskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Birdskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bluefur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Camelhide}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Chinchilla fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Dog leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Elephant leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Foxfur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Guinea pig fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Heavy fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Human leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Lightleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Lizardskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Panthera fur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Patchleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Pigskin}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Plainleather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Rhinoceros leather}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Thrumbofur}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Wolfskin}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Fabric|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Alpaca wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Bison wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Cloth}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Devilstrand}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Hyperweave}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Megasloth wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Muffalo wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Sheep wool}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Synthread}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Woody|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Wood}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Stony|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Granite blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Limestone blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Marble blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Sandstone blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Slate blocks}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Jade}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|Metallic|}}|| | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Gold}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Plasteel}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Silver}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Steel}} | ||
+ | {{User:Kingerman88/Sandbox/Building Material Table Row Copy |Uranium}} | ||
+ | }} | ||
+ | |- | ||
|} | |} | ||
Latest revision as of 15:01, 14 August 2021
Info Sheet[edit]
Variables:
{{#vardefine:variableName| thing here }}
Can be used via
{{#var:name}}
─────────────
Arguments:
They can be DEFINED in TEMPLATES
defined by three curly brackets and closed by three "{{{" argument "}}}"
{{{ 1 }}} (first argument)
{{{ 1| }}} (First argument or substitute argument "")
{{{ 1| default argument value}}} (First argument or substitute "default argument value")
Arguments can be defined as names
{{{ argName| defaultValue}}}
You can call them like this
{{template| argName=something | argName2=something}}
Keywords[edit]
Surround by {{ }}
Name | Description | Arguments | Example | Result |
---|---|---|---|---|
formatnum: | Formats the number | 1: number to be formatted | {{formatnum: 134512.5}} |
134,512.5 |
#expr | Represents an expression to do math on | 1: Expression to do | {{#expr:1.125*5 round 2}} |
5.63 |
#ifexpr | Simple if, else structure | 1: Condition | 2: True | 3: False | {{#ifexpr: {{#expr: 105 / 1}} > 100 | 100 | {{#expr: 105 / 1}} }} |
100 |
#switch: | Switch statement | {{#switch: {{{x}}} |1=one |2=two |3|4|5=range 3–5 |other}} |
(replace x with "2") two |
Template Mess[edit]
User:Kingerman88/Sandbox/AnimalTemplate
User:Kingerman88/Sandbox/Building Material Table Row Copy
Animal | Nutrition Consumed (RHR / 2) | Produces Eggs | Produces Milk | Produces Wool | Pack Animal |
---|---|---|---|---|---|
Boomalope | 0.43 | ||||
Cow | 0.43 | ||||
Pig | 0.4 | ||||
Bison | 0.43 | ||||
Caribou | 0.22 |
Material | Stuff cost | Beauty | Work | Mass | HP | Flammability | Terrain Affordance | Market Value |
---|---|---|---|---|---|---|---|---|
Wooden Barricade | 5 | -3 | 224 ticks (3.73 secs) | - | 195 | {{|subst:data-sort-value="ZLight" | Light}} | 6.8 | |
Granite Barricade | 5 | -3 | 1,920 ticks (32 secs) | - | 510 | {{|subst:data-sort-value="ZLight" | Light}} | 12 | |
Limestone Barricade | 5 | -3 | 1,920 ticks (32 secs) | - | 465 | {{|subst:data-sort-value="ZLight" | Light}} | 12 | |
Marble Barricade | 5 | -2 | 1,760 ticks (29.33 secs) | - | 360 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Sandstone Barricade | 5 | -3 | 1,600 ticks (26.67 secs) | - | 420 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Slate Barricade | 5 | -3 | 1,920 ticks (32 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 12 | |
Jade Barricade | 5 | 7 | 1,600 ticks (26.67 secs) | - | 150 | {{|subst:data-sort-value="ZLight" | Light}} | 31 | |
Golden Barricade | 50 | 17 | 288 ticks (4.8 secs) | - | 180 | {{|subst:data-sort-value="ZLight" | Light}} | 500 | |
Plasteel Barricade | 5 | -3 | 704 ticks (11.73 secs) | - | 840 | {{|subst:data-sort-value="ZLight" | Light}} | 48 | |
Silver Barricade | 50 | 3 | 320 ticks (5.33 secs) | - | 210 | {{|subst:data-sort-value="ZLight" | Light}} | 51 | |
Steel Barricade | 5 | -3 | 320 ticks (5.33 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Uranium Barricade | 5 | -3 | 608 ticks (10.13 secs) | - | 750 | {{|subst:data-sort-value="ZLight" | Light}} | 32 | |
Bearskin Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 18 | |
Birdskin Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 9.6 | |
Bluefur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 12 | |
Camelhide Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 12 | |
Chinchilla fur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 33 | |
Dog leather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Elephant leather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 450 | {{|subst:data-sort-value="ZLight" | Light}} | 13 | |
Foxfur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 18 | |
Guinea pig fur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 180 | {{|subst:data-sort-value="ZLight" | Light}} | 26 | |
Heavy fur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 450 | {{|subst:data-sort-value="ZLight" | Light}} | 17 | |
Human leather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 22 | |
Lightleather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 10 | |
Lizardskin Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Panthera fur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 16 | |
Patchleather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 8.1 | |
Pigskin Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 10 | |
Plainleather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 11 | |
Rhinoceros leather Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 450 | {{|subst:data-sort-value="ZLight" | Light}} | 22 | |
Thrumbofur Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 600 | {{|subst:data-sort-value="ZLight" | Light}} | 71 | |
Wolfskin Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 16 | |
Alpaca wool Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 20 | |
Bison wool Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 14 | |
Cloth Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 8.1 | |
Devilstrand Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 28 | |
Hyperweave Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 720 | {{|subst:data-sort-value="ZLight" | Light}} | 46 | |
Megasloth wool Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 14 | |
Muffalo wool Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 14 | |
Sheep wool Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 300 | {{|subst:data-sort-value="ZLight" | Light}} | 14 | |
Synthread Sandbags | 5 | -10 | 180 ticks (3 secs) | - | 390 | {{|subst:data-sort-value="ZLight" | Light}} | 21 |
─────────────
If statement (Alpaca find Wool Amount)