Difference between revisions of "Dungeons and Dragons Wiki:Ask Syntax"
Tarkisflux (talk | contribs) m (making whole page not small) |
m (Updates) |
||
Line 1: | Line 1: | ||
− | <small>Main documentation for Semantic Mediawiki can be found at [http://semantic-mediawiki.org/wiki/Semantic_MediaWiki]</small> | + | <small>Main documentation for Semantic Mediawiki can be found at [http://semantic-mediawiki.org/wiki/Semantic_MediaWiki the Semantic Mediawiki Wiki]</small> |
== Setting Properties == | == Setting Properties == | ||
Line 21: | Line 21: | ||
=== Query === | === Query === | ||
− | The query | + | The query is a set of properties and categories to filter. Filtering is done via <nowiki>[[Category:categoryName]] or [[Property::value]]</nowiki>. For example, to choose all user fighter feats in 3.5e, the query would be <nowiki>[[Category:3.5e]] [[Category:Feat]] [[Category:User]] [[Type::Fighter]]</nowiki> |
− | + | In an <nowiki>{{ask:}}</nowiki> template, it should be the first value you send. | |
− | + | == Helper Templates == | |
− | + | Dungeons and Dragons Wiki has a set of helper templates with the name of the form "SMW ''type'' Query". These templates take one unnamed parameter, the query. It then outputs the results on the page for you, giving a proper default and using the pipe trick template when necessary. Currently the entire list of helper templates is: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ;list:for paragraph format | |
− | + | ;ul:for a bullet list | |
− | + | ;category:for display as if it was a list on a category page | |
− | + | ;embed:for displaying full transcluded pages—use with caution. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | ; | ||
− | ; |
Revision as of 22:46, 10 March 2011
Main documentation for Semantic Mediawiki can be found at the Semantic Mediawiki Wiki
Setting Properties
To set a property without showing the text on the page, use the format {{#set:Property=Value goes here}}.
To set a property and show the text on the page, use the format [[Property::Value goes here]].
To set multiple properties (mostly used at the beginning of classes), use the following format:
{{set:Property1=Value goes here |Property2=Value of Property 2 |... |PropertyN=Value of last property. }}
Ask Function
Semantic Mediawiki gives the parser function {{ask:<query>[[|param=value[...|param=value]]}}.
Query
The query is a set of properties and categories to filter. Filtering is done via [[Category:categoryName]] or [[Property::value]]. For example, to choose all user fighter feats in 3.5e, the query would be [[Category:3.5e]] [[Category:Feat]] [[Category:User]] [[Type::Fighter]]
In an {{ask:}} template, it should be the first value you send.
Helper Templates
Dungeons and Dragons Wiki has a set of helper templates with the name of the form "SMW type Query". These templates take one unnamed parameter, the query. It then outputs the results on the page for you, giving a proper default and using the pipe trick template when necessary. Currently the entire list of helper templates is:
- list
- for paragraph format
- ul
- for a bullet list
- category
- for display as if it was a list on a category page
- embed
- for displaying full transcluded pages—use with caution.