Template:SmwDictLine/doc: Difference between revisions
From Guild of Archivists
(BladeLakem moved page Template:SmwDictLine/doc to Template:SmwDictGlosses/doc) Tag: New redirect |
(Removed redirect to Template:SmwDictGlosses/doc) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | This template takes a page that is assumed to be a dictionary page (Dictionary: namespace) and outputs a 'dictionary' style line with the word and the glosses automatically collected from the dictionary page. | ||
This template is primarily designed for use in #ask queries, but can be used independently. | |||
===Usage=== | |||
: <nowiki>{{</nowiki>SmwDictLine|''pagename''<nowiki>}}</nowiki> | |||
: or <nowiki>{{</nowiki>SmwDictLine|''pagename''|''word in dnifont''<nowiki>}}</nowiki> | |||
====Parameters==== | |||
* ''1'' - Name of the page for the word. You must specific the namespace. | |||
* ''2'' - ''(optional)'' The word in Dnifont | |||
====Examples==== | |||
: ''<nowiki>{{SmwDictLine|Dictionary:shorah}}</nowiki>'' | |||
: {{SmwDictLine|Dictionary:shorah}} | |||
: ''<nowiki>{{SmwDictLine|Dictionary:shorah|Sora}}</nowiki>'' | |||
: {{SmwDictLine|Dictionary:shorah|Sora}} |
Revision as of 19:48, 18 September 2020
This template takes a page that is assumed to be a dictionary page (Dictionary: namespace) and outputs a 'dictionary' style line with the word and the glosses automatically collected from the dictionary page.
This template is primarily designed for use in #ask queries, but can be used independently.
Usage
- {{SmwDictLine|pagename}}
- or {{SmwDictLine|pagename|word in dnifont}}
Parameters
- 1 - Name of the page for the word. You must specific the namespace.
- 2 - (optional) The word in Dnifont
Examples
- {{SmwDictLine|Dictionary:shorah}}
- shorah - {{{3}}}
- {{SmwDictLine|Dictionary:shorah|Sora}}
- shorah Sora - {{{3}}}