252
edits
Changes
From Gramps
Code accepts "default" as an alternative for "nl". If no text for the language, then output nothing
{{#ifeq: {{{lang|}}} | nl | {{#if: {{{nl|}}} | ;{{{word|{{{1}}} }}}:{{{nl|}}} | {{#if: {{{default|}}} |;{{{word|{{{1}}} }}}:({{{default|}}} | {{#if: {{{ {{{lang}}}) | }}} |;{{{word|{{{1}}} }}}:{{{ {{{lang}}}| }}}}}<noinclude>
== The Dict template ==
Code:
<nowiki>{{#ifeq: {{{lang|}}} | nl | {{#if: {{{nl|}}} | ;{{{word|{{{1}}} }}}:{{{nl|}}} | {{#if: {{{default|}}} |;{{{word|{{{1}}} }}}:({{{default|}}} | {{#if: {{{ {{{lang}}}) | }}} |;{{{word|{{{1}}} }}}:{{{ {{{lang}}}| }}}}}</nowiki>
Usage:
<nowiki>{{Dict
|word=sillius soddus
|default=sukkel
|en=silly sod
}}</nowiki>
or:
<nowiki>{{Dict
|word=sillius soddus