Editing User:Khaim
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: | ||
==How-To: Properties & Queries== | ==How-To: Properties & Queries== | ||
+ | |||
+ | '''MediaWiki references''' | ||
+ | * [https://www.semantic-mediawiki.org/wiki/Help:Properties_and_types Properties] | ||
+ | * [https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages Query syntax] | ||
+ | * [https://www.semantic-mediawiki.org/wiki/Help:Displaying_information Display syntax] | ||
+ | * [https://www.semantic-mediawiki.org/wiki/Help:Result_formats Result formats] | ||
===Property Syntax=== | ===Property Syntax=== | ||
− | + | ''TODO'' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Query Syntax=== | ===Query Syntax=== | ||
Line 52: | Line 37: | ||
Query output: | Query output: | ||
{{#ask: | {{#ask: | ||
− | [[Skill Base Factor:: | + | [[Skill Base Factor::+]] |
[[Skill Bonus Factor::+]] | [[Skill Bonus Factor::+]] | ||
| ?Skill Base Factor# = Base | | ?Skill Base Factor# = Base | ||
Line 64: | Line 49: | ||
Comments: | Comments: | ||
− | + | <nowiki>{{#ask: // Begin a query. | |
− | |||
// Everything up to the next | is the query term. This particular example returns pages which: | // 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 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 | [[Skill Bonus Factor::+]] // AND have the Skill_Bonus_Factor property, with any value | ||
− | + | // Define how the results are displayed. | |
− | // Define | + | // 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 Base Factor# = Base // The second column is the page's Skill_Base_Factor value, with heading 'Base'. | ||
− | | ?Skill Bonus Factor# = Factor | + | | ?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). | |
− | | format = table // | + | | sort = Skill Base Factor,Skill Bonus Factor // Sort by base factor, then bonus factor. Optional. |
− | | limit = 100 // Maximum number of pages to return. | ||
− | | sort = Skill Base Factor,Skill Bonus Factor // Sort by base factor, then bonus factor. | ||
| order = desc,desc | | order = desc,desc | ||
}}</nowiki> | }}</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |