252
edits
Changes
From Gramps
Version: always show lemme. With "full" parameter support.
;{{{word|{{{1}}} }}}{{#if:{{{full|}}}| {{{full}}} :}}:{{#ifeq: {{{lang|}}} | nl
| {{#if: {{{nl|}}}
| ;{{{word|{{{1}}} }}}:{{{nl|}}} | {{#if: {{{default|}}} |;{{{word|{{{1}}} }}}:{{{default|}}} }} }} | {{#if: {{{ {{{lang}}}| }}} |;{{{word|{{{1}}} }}}:{{{ {{{lang}}}| }}}
}}
| {{{ {{{lang}}}| }}}
}}<noinclude>
== The Dict template ==
Code:
<nowiki>;{{{word|{{{1}}} }}}{{#if:{{{full|}}}| - {{{full}}} }}:{{#ifeq: {{{lang|}}} | nl
| {{#if: {{{nl|}}}
| ;{{{word|{{{1}}} }}}:{{{nl|}}} | {{#if: {{{default|}}} |;{{{word|{{{1}}} }}}:{{{default|}}} }}
}}
| {{#if: {{{ {{{lang}}}| }}} |;{{{word|{{{1}}} }}}:{{{ {{{lang}}}| }}} }}}}</nowiki>
}}</nowiki>
Usage where the requested translated text is not yet available (yields no outputonly lemma):
<nowiki>{{Dict|lang=en|sillius soddus
|default=sukkel
}}</nowiki>
Usage for an abbreviation, with '''full''' parameter:
<nowiki>{{Dict|lang=en|A.D.|full=Anno Domini
|en=in the year of our Lord
}}</nowiki>
The '''word''' parameter will be printed as the lemma. Is can also be passed as the first unnamed parameter.
The '''full''' parameter is useful for abbreviations, to add the full (i.e. expanded) version of the lemma. It will be added to the lemma text.
The other parameters give the description text for various languages. The name of the parameter must be the country code for the language in which the description is written. For historic reasons, '''default''' is allowed as an alternative for '''nl'''.
This template will construct a description list (a bold lemma, with on the next line an indented description), chosing from the list of descriptions in different lanugages the language of given in the page that called it'''lang''' parameter.
On an English page (default)
On a Dutch page
;sillius soddus:sukkel
With an expanded abbreviation
;A.D. - Anno Domini: the year of our Lord
If the requested language is not available
;sillius soddus: