Difference between revisions of "Template:DictionaryEntry"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 13: Line 13:
 
-->{{#if:{{{8|}}}|<li>{{{8}}}</li>}}<!--
 
-->{{#if:{{{8|}}}|<li>{{{8}}}</li>}}<!--
 
-->{{#if:{{{9|}}}|<li>{{{9}}}</li>}}<!--
 
-->{{#if:{{{9|}}}|<li>{{{9}}}</li>}}<!--
-->{{#if:{{{10|}}}|<li>{{{10}}}</li>}}</ol>[[Category: {{{language}}} dictionary]]</includeonly><noinclude>
+
-->{{#if:{{{10|}}}|<li>{{{10}}}</li>}}<!--
 +
-->{{#if:{{{notes}}}|<li>{{{notes}}}</li>}}</ol>[[Category: {{{language}}} dictionary]]</includeonly><noinclude>
 
A template for doing the layout of dictionary entries. Also used to extract the parts of the definitions.  
 
A template for doing the layout of dictionary entries. Also used to extract the parts of the definitions.  
 
=== parameters ===
 
=== parameters ===
Line 22: Line 23:
 
; word
 
; word
 
: The word being given a definition
 
: The word being given a definition
 +
; notes
 +
: Description or background on the word, it's translation, meanings or use. (optional)
 
; ''anonymous''
 
; ''anonymous''
 
: Definitions are listed as anonymous parameters in the order they should be displayed. You can include up to 10 definitions.  
 
: Definitions are listed as anonymous parameters in the order they should be displayed. You can include up to 10 definitions.  
Line 31: Line 34:
 
  | part of speech = <type>
 
  | part of speech = <type>
 
  | word =  
 
  | word =  
 +
| notes = [Optional notes about the word]
 
  | <definition 1>
 
  | <definition 1>
 
  | <definition 2>
 
  | <definition 2>

Revision as of 19:16, 26 June 2021

A template for doing the layout of dictionary entries. Also used to extract the parts of the definitions.

parameters

language
Name of the language. Adds Category: <language> dictionary
part of speech
one of letter, noun, verb, adjective, adverb, pronoun, preposition, conjunction, interjection, numeral, article, or determiner.
word
The word being given a definition
notes
Description or background on the word, it's translation, meanings or use. (optional)
anonymous
Definitions are listed as anonymous parameters in the order they should be displayed. You can include up to 10 definitions.

Layout template

{{DictionaryEntry
 | language = <name>
 | part of speech = <type>
 | word = 
 | notes = [Optional notes about the word]
 | <definition 1>
 | <definition 2>
}}

Example

Using:

{{DictionaryEntry
 | language = Gvegh
 | part of speech = Letter
 | word = A
 | A letter in the [[Gvegh (language)|Gvegh]] alphabet
}}

produces:


Gvegh

Letter

A

  1. A letter in the Gvegh alphabet
  2. {{{notes}}}