User:Relyk/SMW
Management[edit]
Projects[edit]
- /NPC infobox
- /Heart infobox
- /sandbox
- Semantic query examples
- Semantic query for bugs
- Semantic query for NPC ranks
- /subquery
- User:Relyk/Tailor table
- User:Relyk/redirect
- User:Relyk/waypoint
- User:Relyk/Skill infobox effects
- /pvp skill
- /inventory
- /map completion
- /meta event
- /list of spoons
- /craftingoverview
- /tonic
- /ascendedweapon
- /storyreward
- /iteminfobox
- /worldbosslist
Skill table[edit]
- User:Relyk/Template:Skill table
- User:Relyk/Template:Skill table/smw
- User:Relyk/Template:Skill table2
- User:Relyk/Template:Skill table2/smw
- User:Relyk/Template:Skill table3
- User:Relyk/Template:Skill table3/smw
- User:Relyk/Template:Skill table4
- User:Relyk/sandbox/combo
Weapon skills[edit]
- User:Relyk/Template:Weapon skill table header - Template:Weapon skill table header
- User:Relyk/Template:Weapon skill table row - Template:Weapon skill table row
Vendor table[edit]
- User:Relyk/Vendor table header
- User:Relyk/Vendor table row
- User:Relyk/Vendor table row2
- User:Relyk/Vendor table row result format
- User:Relyk/Vendor item cost
- User:Relyk/Sells item
- User:Relyk/vendor sample query
- User:Relyk/vendor table
Skill table[edit]
Item gallery[edit]
Event[edit]
Skill icon[edit]
Renown heart[edit]
Recipe[edit]
- /recipelist
- /recipesheet
- /recipetable
- /reciperow
- /requiressheet
- /itemvendorrecipes
- /vendor recipe
- /recipesheetitem
Recipe tree table[edit]
Achievement table[edit]
- /achievement table header
- /achievement table row
- /achievement demo
- /achievement list
- /achievement list result format
- /achievement example
NPC[edit]
Skill fact[edit]
Weapon sets[edit]
Infobox[edit]
Dye[edit]
Location tree[edit]
Notes[edit]
Parsing[edit]
Can't use the {{!}} trick to avoid parsing incorrectly. You have to supply the pipe and use the if statement to bring the parameter.
{{#ask:[[Category:Guardian skills]] [[Is for weapon::Greatsword]] |?Has canonical name {{#if: y | {{!}}?Is for weapon}} }}
Binding Blade, Leap of Faith, Pull (guardian skill), Strike, Symbol of Resolution, Vengeful Strike, Whirling Wrath, Wrathful Strike
{{#ask:[[Category:Guardian skills]] [[Is for weapon::Greatsword]] |?Has canonical name |{{#if: y |?Is for weapon}} }}
Has canonical name | Is for weapon | |
---|---|---|
Binding Blade | Binding Blade | Greatsword |
Leap of Faith | Leap of Faith | Greatsword |
Pull (guardian skill) | Pull | Greatsword |
Strike | Strike | Greatsword |
Symbol of Resolution | Symbol of Resolution | Greatsword |
Vengeful Strike | Vengeful Strike | Greatsword |
Whirling Wrath | Whirling Wrath | Greatsword |
Wrathful Strike | Wrathful Strike | Greatsword |
Template parameters[edit]
{{Event icon|[[Has event icon::swords]]}}
Templates do not like SMW in their parameters. Just because you are setting a string type for a semantic property does not mean it's a string yet in parsing. You have to use #set, which you should be doing anyways.
{{Event icon|swords}} {{#set:Has event icon=swords}}
Template format[edit]
Even if the property is not set for a particular article, the query will pass an empty parameter to the formatting template. You need to check if the parameter is empty before you pass it to any templates because using a default value won't work, the parameter will exist but as an empty value rather than not existing at all.
Null values in queries[edit]
Queries will occasionally return null values for properties for one reason or another. This means that the correct property was found on the page, but a value for the property wasn't found. A query will not display the default if this happens, so it may not be immediately obvious. You can verify this by asking for a particular property with a query, then checking the page itself to see if the property is there. Care should be taken with query formatting templates to check for this to assist in troubleshooting easily. Ask ishmael for a solution if anything goes wrong, it usually works.--Relyk ~ talk > 20:56, 3 May 2013 (UTC)