Editing User:Harakoni/Sandbox
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
https://www.mediawiki.org/wiki/Manual:Purge | https://www.mediawiki.org/wiki/Manual:Purge | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Weapon DPS comparator == | == Weapon DPS comparator == | ||
{{#vardefine: y1weapon|Heavy SMG}} | {{#vardefine: y1weapon|Heavy SMG}} | ||
− | {{#vardefine: y2weapon| | + | {{#vardefine: y2weapon|LMG}} |
− | + | {{#vardefine: string | {{Weapon DPS Iterator|{{#var: y1weapon}}|{{lc:Excellent}}|0.95}} }}{{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }}{{#vardefine: string | {{Weapon DPS Iterator|{{#var: y2weapon}}|{{lc:Excellent}}|0.95}} }} | |
− | + | ||
− | + | {{GraphChart|width=400 | |
− | |||
− | |||
− | |||
− | {{#vardefine: string | {{Weapon DPS Iterator|{{#var: y1weapon}}|{{lc: | ||
− | {{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }} | ||
− | {{#vardefine: string | {{Weapon DPS Iterator|{{#var: y2weapon}}|{{lc: | ||
{{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }} | {{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }} | ||
{{#vardefine: y2 | {{#explode: {{#var: string }} | && |1 }} }} | {{#vardefine: y2 | {{#explode: {{#var: string }} | && |1 }} }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|height=200 | |height=200 | ||
|type=line | |type=line | ||
Line 116: | Line 25: | ||
|y1= {{#var: y}} | |y1= {{#var: y}} | ||
|y2= {{#var: y2}} | |y2= {{#var: y2}} | ||
− | + | |y1Title = 1. {{#var: y1weapon}} | |
− | + | |y2Title = 2. {{#var: y2weapon}} | |
− | |y1Title = 1. | ||
− | |y2Title = 2. | ||
− | |||
− | |||
|legend=Legend | |legend=Legend | ||
}} | }} | ||
− | |||
− | |||
− | |||
==Nutrition math sanity check== | ==Nutrition math sanity check== | ||
Line 149: | Line 51: | ||
{{#expr: {{Q|Horse|Meat Yield}}*0.05}} | {{#expr: {{Q|Horse|Meat Yield}}*0.05}} | ||
− | == | + | == Image displays == |
− | + | {| class="wikitable" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {| | ||
− | |||
|- | |- | ||
− | + | | [[File:8 hospital beds compact.png|thumb|thumb]] || thumb | |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | | [[File:8 hospital beds compact.png|frame|frame]] || frame | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | | [[File:8 hospital beds compact.png|frameless|frameless]] || frameless | |
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
|- | |- | ||
+ | | [[File:8 hospital beds compact.png|none|none]] || none | ||
+ | |} | ||
+ | == Animal infobox builder test == | ||
+ | <pre>{{#invoke:DefInfo|query|Races|Hare|description}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | Questions for Dr Strangelove: | ||
+ | *How would I go about getting the AnimalAdult number from lifeStageAges | ||
+ | *How do I get all the different attacks when they're not numbered? Both how do I test for their existiance and then how do I get the data from it. | ||
+ | *How do I get litter size? | ||
+ | *tradeTags returns as table? | ||
+ | Questions for me: | ||
+ | *How do I convert diet into wiki legible - just use a switch? | ||
+ | *Even if I get litter size, how do I convert it to wiki readable? Take the largest value, check if its equal to the round 0 version of itself, and then if it isn't +1? | ||
− | + | {{#vardefine: animalName | Rhinoceros}} | |
− | + | <nowiki>{{infobox main|animal|</nowiki> | |
− | |||
− | |||
− | |||
− | |||
+ | |name = {{#var: animalName}} | ||
− | + | |image = Rhinoceros.png | |
− | | | ||
− | |||
− | |||
− | + | |description = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|description}} | |
− | | | ||
− | |||
+ | |type = Animals | ||
− | + | |type2 = Wild | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |bodysize = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | ||
− | + | |healthscale = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseHealthScale}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |movespeed = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|MoveSpeed}} | ||
− | + | |attack1dmg = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |attack1type = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | ||
− | + | |attack1part = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |attack1cool = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | ||
− | + | |attack2dmg = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |attack2type = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | ||
− | + | |attack2part = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |attack2cool = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}} | ||
− | + | |leathername = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|leatherDef}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |leatheryield = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|LeatherAmount}} | ||
− | + | |manhunter = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|manhunterOnDamageChance}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |manhuntertame = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|manhunterOnTameFailChance}} | ||
− | + | |hungerrate = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseHungerRate}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |diet = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|foodType}} | ||
− | + | |trainable = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|trainability}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |wildness = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|wildness}} | ||
− | + | |gestation = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|gestationPeriodDays}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |offspring = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|litterSizeCurve}} | ||
− | + | |maturityage = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|lifeStageAges}} | |
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
+ | |marketvalue = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|MarketValue}} | ||
− | + | |lifespan = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|lifeExpectancy}} | |
− | | | ||
− | |||
− | |||
− | + | |massadult = {{#expr: {{#invoke:DefInfo|query|Races|{{#var: animalName}}|baseBodySize}}*60}} | |
− | | | + | |min comfortable temperature = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|ComfyTemperatureMin}} |
− | |||
+ | |max comfortable temperature = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|ComfyTemperatureMax}} | ||
− | + | |tradeTags = {{#invoke:DefInfo|query|Races|{{#var: animalName}}|tradeTags}} | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
+ | |page verified for version = {{Current Version}} | ||
− | + | }}</pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Loop== | ==Loop== | ||
Line 370: | Line 155: | ||
== remove linkng== | == remove linkng== | ||
− | {{#vardefine:linkingtest | [[ | + | {{#vardefine:linkingtest | [[100]] }} |
{{#var:linkingtest}} | {{#var:linkingtest}} | ||
Line 378: | Line 163: | ||
{{#replace:{{#explode:{{#var:linkingtest}}|{{!}}|1}}|]|}} | {{#replace:{{#explode:{{#var:linkingtest}}|{{!}}|1}}|]|}} | ||
− | {{#replace:{{#explode: [[ | + | {{#replace:{{#explode: [[100]] |{{!}}|1}}|]|}} |
==MBOX== | ==MBOX== | ||
Line 426: | Line 211: | ||
*[[Persona plasmasword|{{#ifexist:Persona plasmasword|<span style="color:FFEE1D;">This page exists.</span>|This page does not exist.}}]] | *[[Persona plasmasword|{{#ifexist:Persona plasmasword|<span style="color:FFEE1D;">This page exists.</span>|This page does not exist.}}]] | ||
− | *[[ | + | *[[Persona fishstick|{{#ifexist:Persona fishstick|<span style="color:FFEE1D;">This page exists.</span>|This page does not exist.}}]] |
== Animal nutrition table == | == Animal nutrition table == | ||
Line 442: | Line 227: | ||
|} | |} | ||
</li><div> | </li><div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Animal DPS== | ==Animal DPS== | ||
Line 871: | Line 651: | ||
==Asks== | ==Asks== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#ask: [[Name::Fine carpet||Gold tile||Silver tile||Fine stone tile||Hex tile||Spikecore plates||Totemic boards||Morbid stone tile||Spikecore stone tile||Totemic stone tile||Morbid carpet||Hex carpet||Mindbend carpet]]}} | {{#ask: [[Name::Fine carpet||Gold tile||Silver tile||Fine stone tile||Hex tile||Spikecore plates||Totemic boards||Morbid stone tile||Spikecore stone tile||Totemic stone tile||Morbid carpet||Hex carpet||Mindbend carpet]]}} | ||
Line 933: | Line 706: | ||
{{#ask: | {{#ask: | ||
[[Name::~*econ*]] OR [[Name::~*ataphract*]] OR [[Name::~*arine*]] | [[Name::~*econ*]] OR [[Name::~*ataphract*]] OR [[Name::~*arine*]] | ||
− | + | {{{query|}}} | |
| ?# = Name | | ?# = Name | ||
| ?Image | | ?Image | ||
Line 1,105: | Line 878: | ||
|} | |} | ||
<div style="clear:both"></div> | <div style="clear:both"></div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |