Template:SmwDictLine: Difference between revisions
From Guild of Archivists
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>'''''[[{{{1}}}|{{lc:{{#invoke:String|replace|source={{{1}}}|pattern=Dictionary:|replace=|plain=true}}}}]]'''''{{#if: {{{2|}}} | <dni>{{{2}}}</dni>}} - {{#invoke:string|{{{3}}}|%[%[%s*[Cc]ategory%s*:.-%]%]| }}</includeonly><noinclude> | <includeonly>'''''[[{{{1}}}|{{lc:{{#invoke:String|replace|source={{{1}}}|pattern=Dictionary:|replace=|plain=true}}}}]]'''''{{#if: {{{2|}}} | <dni>{{{2}}}</dni>}} - {{#invoke:string|replace|{{{3}}}|%[%[%s*[Cc]ategory%s*:.-%]%]| }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} |
Revision as of 06:37, 22 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||''n.'' peace}}
- shorah - n. peace
- {{SmwDictLine|Dictionary:shorah|Sora|''n.'' peace}}
- shorah Sora - n. peace
The above documentation is transcluded from Template:SmwDictLine/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |