Difference between revisions of "Template:DictionaryEntry"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 3: Line 3:
 
=={{{language}}}==
 
=={{{language}}}==
 
==={{{part of speech}}}===
 
==={{{part of speech}}}===
{{#ifexist: Template:{{{language}}} | {{{{{language}}}|{{{word}}}}} | [[Dictionary: {{{word}}}|{{{word}}}]] }}{{#if:{{{cite}}}|{{{cite}}}|}}
+
{{#ifexist: Template:{{{language}}} | {{{{{language}}}|{{{word}}}}} | [[Dictionary: {{{word}}}|{{{word}}}]] }}
 
<ol><!--
 
<ol><!--
 
-->{{#if:{{{1|}}}|<li>{{{1}}}</li> }}<!--
 
-->{{#if:{{{1|}}}|<li>{{{1}}}</li> }}<!--
Line 27: Line 27:
 
: Name of the language. Adds Category: <language> dictionary
 
: Name of the language. Adds Category: <language> dictionary
 
; pronunciation
 
; pronunciation
: description on how to pronounce the word
+
: description on how to pronounce the word (optional)
 
; part of speech
 
; part of speech
: one of letter, noun, verb, adjective, adverb, pronoun, preposition, conjunction, interjection, numeral, article, or determiner.
+
: one of letter, noun, name, verb, adjective, adverb, pronoun, preposition, conjunction, interjection, numeral, article, or determiner.
 
; word
 
; word
: The word being given a definition
+
: The word being given a definition. n.b. do not include a "Page cite" against the word
 
; notes
 
; notes
 
: Usage notes on the word describing the use in context. (optional)
 
: Usage notes on the word describing the use in context. (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. These definitions should include a "Page cite" or "Source cite"  or "Unpublished cite" entry.
  
 
=== Layout template ===
 
=== Layout template ===
Line 43: Line 43:
 
  | part of speech = <type>
 
  | part of speech = <type>
 
  | word =  
 
  | word =  
 +
| pronunciation = [Optional pronunciation]
 
  | notes = [Optional notes about the word]
 
  | notes = [Optional notes about the word]
 
  | <definition 1>
 
  | <definition 1>

Revision as of 23:02, 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
pronunciation
description on how to pronounce the word (optional)
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
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

{{DictionaryEntry
 | language = <name>
 | part of speech = <type>
 | word = 
 | pronunciation = [Optional pronunciation]
 | 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 (Anglic: A)

  1. A letter in the Gvegh alphabet