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 4: | Line 4: | ||
https://www.mediawiki.org/wiki/Manual:Purge | https://www.mediawiki.org/wiki/Manual:Purge | ||
− | + | == Animal infobox builder test == | |
+ | {{#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}} | ||
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Loop== | ==Loop== | ||
Line 370: | Line 96: | ||
== remove linkng== | == remove linkng== | ||
− | {{#vardefine:linkingtest | [[ | + | {{#vardefine:linkingtest | [[100]] }} |
{{#var:linkingtest}} | {{#var:linkingtest}} | ||
Line 378: | Line 104: | ||
{{#replace:{{#explode:{{#var:linkingtest}}|{{!}}|1}}|]|}} | {{#replace:{{#explode:{{#var:linkingtest}}|{{!}}|1}}|]|}} | ||
− | {{#replace:{{#explode: [[ | + | {{#replace:{{#explode: [[100]] |{{!}}|1}}|]|}} |
==MBOX== | ==MBOX== | ||
Line 426: | Line 152: | ||
*[[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.}}]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Weapon Table== | ==Weapon Table== | ||
Line 834: | Line 382: | ||
| {{Q|{{#var:currentweapon|}}|Market Value Base}} | | {{Q|{{#var:currentweapon|}}|Market Value Base}} | ||
|- | |- | ||
− | + | }} | |
Line 859: | Line 407: | ||
{{#var:armorlayers|}} | {{#var:armorlayers|}} | ||
{{#pos:{{#var:armorlayers|}}|Middle}} | {{#pos:{{#var:armorlayers|}}|Middle}} | ||
+ | |||
+ | |||
+ | {| {{STDT|sortable c_08 text-center}} | ||
+ | ! Name !! Sharp !! Blunt !! Heat !! HP !! Effects !! Coverage !! data-sort-type="number"| Value {{icon|silver|}}{{ref label|Assumption|A|A}} | ||
+ | |- | ||
+ | ! style='text-align: left !important;'| {{Icon Small|Simple helmet|}} Gold [[Simple helmet]] | ||
+ | | {{ #expr: 0.72*0.5*100}}% | ||
+ | | {{ #expr: 0.36*0.5*100}}% | ||
+ | | {{ #expr: 0.36*0.5*100}}% | ||
+ | | {{ #expr: 0.6*80}} | ||
+ | | ''None'' | ||
+ | | Head, Left Ear, Right Ear | ||
+ | | {{icon|silver|{{ #expr: 10*146}}}} | ||
+ | |- | ||
+ | |} | ||
+ | :{{note label|Hat|A|A}} Hat includes [[Bowler hat]]s, [[Cowboy hat]], [[Tribal headdress]]es, [[Tuque]]s and [[War veil]]s" | ||
==Example way to display outdated data page== | ==Example way to display outdated data page== | ||
Line 871: | Line 435: | ||
==Asks== | ==Asks== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
*Stuffable tag on items? Need some way to automate knowing which materials to apply and can't trust the [[:Category:Armor]], [[:Category:Clothing]] system - war veil is armor but takes textiles. A stuffable tag saying "Metallic" "Leathery" "Fabric" "Woody" would allow you to check if the var contains the tag, and display the relevant information. [[Template: Armor material table]] and [[Template: Clothing material table]] could be merged and the right variants could be displayed on the Comparison table (e.g. devilstrand, thrumbofur, hyperweave, plainleather for clothing, plasteel and steel for metallic armor) | *Stuffable tag on items? Need some way to automate knowing which materials to apply and can't trust the [[:Category:Armor]], [[:Category:Clothing]] system - war veil is armor but takes textiles. A stuffable tag saying "Metallic" "Leathery" "Fabric" "Woody" would allow you to check if the var contains the tag, and display the relevant information. [[Template: Armor material table]] and [[Template: Clothing material table]] could be merged and the right variants could be displayed on the Comparison table (e.g. devilstrand, thrumbofur, hyperweave, plainleather for clothing, plasteel and steel for metallic armor) | ||
**This same method could be used for automatic weapon materials tables. Maybe merged quality/material table. | **This same method could be used for automatic weapon materials tables. Maybe merged quality/material table. | ||
Line 957: | Line 441: | ||
{{#ask: [[Resource 1::+]] [[!Category:Building]] [[!Category:Furniture]] [[!Category:Miscellaneous]] [[!Category:Security]] [[!Category:Production]] [[!Category:Floor]] | {{#ask: [[Resource 1::+]] [[!Category:Building]] [[!Category:Furniture]] [[!Category:Miscellaneous]] [[!Category:Security]] [[!Category:Production]] [[!Category:Floor]] | ||
| ?Production Facility 1 | | ?Production Facility 1 | ||
− | |||
− | |||
| sort = Production Facility 1 | | sort = Production Facility 1 | ||
| columns = 3 | | columns = 3 | ||
− | | limit = | + | | limit = 100 |
}} | }} | ||
Line 976: | Line 458: | ||
}} | }} | ||
− | |||
− | |||
{{#ask: [[Category:Clothing]] [[Resource 1::+]] | {{#ask: [[Category:Clothing]] [[Resource 1::+]] | ||
}} | }} | ||
+ | |||
Line 987: | Line 468: | ||
{{#ask: [[Resource 1::Stuff]] | {{#ask: [[Resource 1::Stuff]] | ||
+ | | ?Market Value Base | ||
+ | | limit = 499 | ||
}} | }} | ||
+ | |||
+ | {{#ask: [[Category:Weapons]] | ||
+ | | ?Mode | ||
+ | | ?Damage Base | ||
+ | | ?ArmorPenetration | ||
+ | | ?Resources To Make | ||
+ | | limit = 500 | ||
+ | }} | ||
+ | |||
{{#ask: [[Category:Animals]] [[Leather Name::{{lc:{{PAGENAME}}}}]] | {{#ask: [[Category:Animals]] [[Leather Name::{{lc:{{PAGENAME}}}}]] | ||
Line 1,005: | Line 497: | ||
| limit = 100 | | limit = 100 | ||
}} | }} | ||
+ | |||
+ | {{#ask:[[Resource 1::>]] | ||
+ | | ?Work To Make | ||
+ | | limit = 1 | ||
+ | }} | ||
+ | |||
| format = ul | | format = ul | ||
Line 1,063: | Line 561: | ||
*'''All items of Excellent Quality:''' Marine armor is significant superior to a devilstrand duster and flak vest and superior to both hyperweave and thrumbofur duster and flak pairings for all weapons in the game. | *'''All items of Excellent Quality:''' Marine armor is significant superior to a devilstrand duster and flak vest and superior to both hyperweave and thrumbofur duster and flak pairings for all weapons in the game. | ||
*'''All items of Masterwork or Legendary Quality:''' Marine armor is significant superior to a devilstrand, hyperweave and thrumbofur duster and flak pairings for all weapons in the game. | *'''All items of Masterwork or Legendary Quality:''' Marine armor is significant superior to a devilstrand, hyperweave and thrumbofur duster and flak pairings for all weapons in the game. | ||
+ | |||
<noinclude>[[Category: Harakoni page]]</noinclude> | <noinclude>[[Category: Harakoni page]]</noinclude> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |