Difference between revisions of "Template:DictionaryEntry"
Jump to navigation
Jump to search
| (20 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly>{{#if: {{{no language header|}}}||<h2>{{{language}}}</h2> }} |
| − | + | <h3>{{{part of speech}}}</h3> | |
| − | {{#if: {{{ | + | {{#ifexist: Template:{{{language}}} |
| − | + | | {{ {{{language}}}|{{{word}}} }} | |
| − | {{#ifexist: Template:{{{language}}} | {{{{{language}}}|{{{word}}}}} | [[Dictionary: {{{word}}}|{{{word}}}]] }} | + | | {{#ifexist: Dictionary:{{{word}}} |
| + | | [[Dictionary:{{{word}}}|{{{word}}}]] | ||
| + | | '''[[{{{word}}}]]''' }} }} | ||
<ol><!-- | <ol><!-- | ||
-->{{#if:{{{1|}}}|<li>{{{1}}}</li> }}<!-- | -->{{#if:{{{1|}}}|<li>{{{1}}}</li> }}<!-- | ||
| Line 16: | Line 18: | ||
-->{{#if:{{{10|}}}|<li>{{{10}}}</li>}}</ol> | -->{{#if:{{{10|}}}|<li>{{{10}}}</li>}}</ol> | ||
{{#if: {{{pronunciation|}}}| | {{#if: {{{pronunciation|}}}| | ||
| − | + | <h4>Pronunciation</h4> | |
| − | {{{pronunciation | + | {{{pronunciation}}} }} |
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
| − | + | <h4>Usage notes</h4> | |
| − | {{{notes}}} }}[[Category: {{{language}}} dictionary]] | + | {{{notes}}} }}[[Category: {{{language}}} dictionary]]</includeonly><noinclude>{{DictionaryEntry/doc}}[[Category: Templates]]</noinclude> |
| − | </includeonly><noinclude> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{DictionaryEntry | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | [[Category: Templates]] | ||
| − | </noinclude> | ||
Latest revision as of 20:41, 25 August 2024
A template for doing the layout of dictionary entries. Also used to extract the parts of the definitions.
parameters[edit]
- language
- Name of the language. Adds Category: <language> dictionary
- no language header
- (Optional) Set to true to omit the language entry in the page
- pronunciation
- (optional) Description on how to pronounce the word
- part of speech
- one of letter, noun, name, verb, adjective, adverb, pronoun, preposition, conjunction, interjection, numeral, article, or determiner.
- word
- The word being given a definition. n.b. do not include a "Page cite" against the word.
- If a pages exists in the main dictionary, then this will be shown as a link to that page
- notes
- Usage notes on the word describing the use in context. (optional)
- anonymous
- Definitions are listed as anonymous parameters in the order they should be displayed. You can include up to 10 definitions. These definitions should include a "Page cite" or "Source cite" or "Unpublished cite" entry.
Layout template[edit]
{{DictionaryEntry
| language = <name>
| no language header =
| part of speech = <type>
| word =
| pronunciation = [Optional pronunciation]
| notes = [Optional notes about the word]
| <definition 1>
| <definition 2>
}}
Example[edit]
Using:
{{DictionaryEntry
| language = Gvegh
| part of speech = Letter
| word = A
| notes = 3rd most frequently used letter in the alphabet
| A letter in the [[Gvegh (language)|Gvegh]] alphabet
}}
produces:
Gvegh
Letter
A (Anglic: A )
- A letter in the Gvegh alphabet
Usage notes
3rd most frequently used letter in the alphabet