Changes

From Gramps

User:DomoViridi/TempTest/Dict

271 bytes added, 8 March
Let description match the effect of the code.
;{{{word|{{{1}}} }}}:{{{ {{PAGELANGUAGE}}| }}}<noinclude>
== a dictionary The Dict template ==
Code:
<nowiki>;{{{word|{{{1}}} }}}:{{{ {{PAGELANGUAGE}}| }}}</nowiki>
Usage:
<nowiki>{{dict |lang =nlDict |word=abbatiasillius soddus |en=abbeysilly sod |nl=abdijsukkel
}}</nowiki>
orUsage with '''word''' parameter passed as first unnamed parameter: <nowiki>{{dict |lang =nl Dict|word=abbatiasillius soddus |en=abbeysilly sod |defaultnl=abdijsukkel
}}</nowiki>
Dict will return depending on value of lang, the correct translation, so
;'''abbatia''':abbey
If This template will construct a description list (a bold lemma, with on the next line an indented description), chosing from the language is not present list of descriptions in different lanugages the dictionary, language of the language given by page that called it. On an English page (default);'''sillius soddus'''default:silly sodOn a Dutch page;'' is used. If 'sillius soddus'default'' :sukkel  If the language of the page is not presentin the list given in the template call, language ''en'' the lemma is still printed, but the description is used.empty
[[Category:Templates]]
</noinclude>
252
edits

Navigation menu