Changes

From Gramps

User:DomoViridi/TempTest/Dict

2,260 bytes removed, 10 March
Moved documentation to /doc subpage
}}
| {{{ {{{lang}}}| }}}
}}<noinclude> == The Dict template ==Code: <nowiki>;{{{word|{{{1}}} }}}{{#if:{{{full|}}}|&nbsp;-&nbsp;{{{full}}} }}:{{#ifeq: {{{lang|}}} | nl | {{#if: {{{nl|}}} | {{{nl|}}} | {{{default|}}} }} | {{{ {{{lang}}}| }}}}}</nowiki>  Usage: <nowiki>{{Dict |lang=nl |word=sillius soddus |en=silly sod |nl=sukkel }}</nowiki> Legacy usage with '''default''' parameter for Dutch description: <nowiki>{{Dict |lang=en |word=sillius soddus |default=sukkel |en=silly sod }}</nowiki> Usage with '''word''' parameter passed as first unnamed parameter: <nowiki>{{Dict|lang=en|sillius soddus |en=silly sod |nl=sukkel doc}}</nowiki> Usage where the requested translated text is not yet available (yields only 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 '''lang''' parameter is mandatory, and must be the country code for the language to be shown. Its value will be used to select the parameter with the description. 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 given in the '''lang''' parameter. On an English page (default);sillius soddus:silly sodOn a Dutch page;sillius soddus:sukkelWith an expanded abbreviation;A.D. - Anno Domini: the year of our LordIf the requested language is not available;sillius soddus:  If the language of the page is not present in the list given in the template call, nothing will be printed. In a list of dictionary entries, it will be like the entry was omitted. [[Category:Templates]]</noinclude>
252
edits

Navigation menu