Difference between revisions of "Template:SmwDictLine"

Line 1: Line 1:
<includeonly>'''''[[{{{1}}}|{{lc:{{#invoke:String|replace|source={{{1}}}|pattern=Dictionary:|replace=|plain=true}}}}]]'''''{{#if: {{{2|}}} | &nbsp;<dni>{{{2}}}</dni>}}&nbsp;- {{{3}}}</includeonly><noinclude>
+
<includeonly><#invoke:Dict D'ni|smw_dict_line></includeonly><noinclude>
 +
 
 +
 
 +
'''''[[{{{1}}}|{{lc:{{#invoke:String|replace|source={{{1}}}|pattern=Dictionary:|replace=|plain=true}}}}]]'''''{{#if: {{{2|}}} | &nbsp;<dni>{{{2}}}</dni>}}&nbsp;- {{{3}}}
  
 
{{documentation}}
 
{{documentation}}

Revision as of 04:49, 28 September 2020


[[{{{1}}}|{{{1}}}]] - {{{3}}}

Template documentation[view] [edit] [history] [purge]

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}}
<#invoke:Dict D'ni|smw_dict_line>
{{SmwDictLine|Dictionary:shorah|Sora|''n.'' peace}}
<#invoke:Dict D'ni|smw_dict_line>