Template:SmwDictGlosses/doc
< Template:SmwDictGlosses
Revision as of 19:00, 18 September 2020 by BladeLakem (talk | contribs) (Created page with "This template is designed to be used with SMW queries, specifically for queries done on the Dictionary namespace. It's passed to the "template" parameter of an #ask statement....")
This template is designed to be used with SMW queries, specifically for queries done on the Dictionary namespace. It's passed to the "template" parameter of an #ask statement.
Example:
{{#ask:
[[-Has subobject::Dictionary:shorah]]
| ?Gloss
|format=plainlist
|valuesep=^
|link=none
|template=SmwDictLine
|sep=
}}
Assumptions
The template assumes:
- that the query is pretty much identical to the one above in terms of options (the lines beginning with |). That is, the only property being returned is Gloss, the values in a property are separated by carats (^), and no link data is being sent through.
- that the dictionary page has its subobjects arranged properly. That is, is using the appropriate part-of-speech templates and that each definition is defined with the {{df}} template.
Using this template in other situations will have unexpected results.