Dungeons and Dragons Wiki:Ask Syntax

From Dungeons and Dragons Wiki
Revision as of 13:51, 6 July 2012 by 83.110.233.86 (talk) (Joan)
Jump to: navigation, search

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]]}}.

It's a huge hit with my group. To the point where they remind me if I haven't sent any asngmsients out. Not everyone completes it every time, but that's the beauty of it the dedicated players get a bonus and the rest are okay with it.

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.
Titled Embed
for displaying full transcluded pages, giving them a top-level heading that links back to the embedded article.

Example

This example shows the query for showing the 4e other pages in an unordered list:

{{SMW UL Query|[[Category:4e]][[Category:User]][[Category:Other]]}}

This example shows the query for showing all feats created by Havvy in a list format:

{{SMW List Query|[[Category:Feat]][[Author::Havvy]]}}