User:Khaim
Sandbox
How-To: Properties & Queries
MediaWiki references
Property Syntax
TODO
Query Syntax
A query allows you to insert content, usually tables, which dynamically update based on data from other pages.
Example wiki code:
{{#ask: [[Skill Base Factor::>0.4]] [[Skill Bonus Factor::+]] | ?Skill Base Factor# = Base | ?Skill Bonus Factor# = Factor | format = table | limit = 100 | mainlabel = Stat | sort = Skill Base Factor,Skill Bonus Factor | order = desc,desc }}
Example renders like this:
Stat | Base | Factor |
---|---|---|
Reading Speed | 1 | 0.02 |
Pruning Speed | 0.92 | 0.01 |
Social Impact | 0.82 | 0.0275 |
Mech Repair Speed | 0.8 | 0.1 |
Subcore Encoding Speed | 0.75 | 0.1 |
Butchery Efficiency | 0.75 | 0.025 |
Mechanoid Shredding Efficiency | 0.75 | 0.025 |
Hacking Speed | 0.75 | 0.025 |
Mech Gestation Speed | 0.75 | 0.025 |
Arrest Success Chance | 0.6 | 0.075 |
Negotiation Ability | 0.4 | 0.075 |
Medical Operation Speed | 0.4 | 0.06 |
Drug Cooking Speed | 0.4 | 0.06 |
Butchery Speed | 0.4 | 0.06 |
Medical Tend Speed | 0.4 | 0.06 |
Mechanoid Shredding Speed | 0.4 | 0.06 |
Smoothing Speed | 0.3 | 0.0875 |
Drug Synthesis Speed | 0.3 | 0.0875 |
Conversion Power | 0.3 | 0.0875 |
Construction Speed | 0.3 | 0.0875 |
Medical Tend Quality | 0.2 | 0.1 |
Mortar Miss Radius Multiplier | 0.2 | -0.025 |
Train Animal Chance | 0.1 | 0.05 |
Research Speed | 0.08 | 0.115 |
Entity Study Rate | 0.08 | 0.115 |
Plant Work Speed | 0.08 | 0.115 |
Suppression Power | 0.05 | 0.0225 |
Deep Drilling Speed | 0.04 | 0.12 |
Mining Speed | 0.04 | 0.12 |
Animal Gather Speed | 0.04 | 0.12 |
Tame Animal Chance | 0.04 | 0.03 |
Foraged Food Amount | 0 | 0.09 |
Hunting Stealth | 0 | 0.05 |
Trade Price Improvement | 0 | 0.015 |
Comments: {{#ask: // Begin a query. // Everything up to the next | is the query term. This particular example returns pages which: [[Skill Base Factor::>0.4]] // have the Skill_Base_Factor property, value is >0.4 [[Skill Bonus Factor::+]] // AND have the Skill_Bonus_Factor property, with any value // Define how the results are displayed. // For a table, the first column is the page name. | ?Skill Base Factor# = Base // The second column is the page's Skill_Base_Factor value, with heading 'Base'. | ?Skill Bonus Factor# = Factor | format = table // 'format = broadtable' makes a table as wide as the screen. Optional. | limit = 100 // Maximum number of pages to return. Optional. | mainlabel = Stat // The heading for the first column (with the page name). | sort = Skill Base Factor,Skill Bonus Factor // Sort by base factor, then bonus factor. Optional. | order = desc,desc }}