Template:Meta-phrase/documentation: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} This is a metatemplate. It is used to create ''other'', language-specific, templates that simply generate headword-lines and categorizes them. ==For...")
 
No edit summary
Line 5: Line 5:


===Usage===
===Usage===
The template ({{temp|en-phrase}}, {{temp|fr-phrase}}, {{temp|pt-phrase}}, etc.) should be added to all applicable entries.
The template ({{temp|hval-phrase}}, {{temp|trig-phrase}}, {{temp|henl-phrase}}, etc.) should be added to all applicable entries.


===Parameters===
===Parameters===
Line 19: Line 19:
The code of a simple entry of an English phrase should look like the example below. (Additional information such as pronunciations, etymologies and multiple definitions are not presented here for the sake of simplicity, but they are always encouraged!)
The code of a simple entry of an English phrase should look like the example below. (Additional information such as pronunciations, etymologies and multiple definitions are not presented here for the sake of simplicity, but they are always encouraged!)


<pre>==English==
<pre>==High Valyrian==


===Phrase===
===Phrase===
{{en-phrase|[[foo]] [[bar]]}}
{{hval-phrase|[[foo]] [[bar]]}}


# Lorem ipsum dolor sit amet.</pre>
# Lorem ipsum dolor sit amet.</pre>
Line 31: Line 31:
Just copy any of the codes below, and adapt it. They are identical except for the language code.
Just copy any of the codes below, and adapt it. They are identical except for the language code.


===Example of English template===
===Example of High Valyrian template===
<pre>{{meta-phrase
<pre>{{meta-phrase
|en
|hval
|head={{{head|{{{1|}}}}}}
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
|sc={{{sc|}}}
}}</pre>
}}</pre>


===Example of French template===
===Example of Trigedasleng template===
<pre>{{meta-phrase
<pre>{{meta-phrase
|fr
|trig
|head={{{head|{{{1|}}}}}}
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
|sc={{{sc|}}}
Line 46: Line 46:
}}</pre>
}}</pre>


===Example of Portuguese template===
===Example of Hen Linge template===
<pre>{{meta-phrase
<pre>{{meta-phrase
|pt
|henl
|head={{{head|{{{1|}}}}}}
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
|sc={{{sc|}}}

Revision as of 15:07, 5 September 2020

Documentation for Template:Meta-phrase. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This is a metatemplate. It is used to create other, language-specific, templates that simply generate headword-lines and categorizes them.

For users of language-specific templates

Usage

The template ({{hval-phrase}}, {{trig-phrase}}, {{henl-phrase}}, etc.) should be added to all applicable entries.

Parameters

All parameters are optional. Note that the first parameter may be unnamed (positional) or named.

Positional (unnamed) parameter:

  • |1= or |head= The text that should appear, if not {{PAGENAME}}.

Named parameters:

  • |sc= The script code of the entry, if applicable.
  • |sort= The sort key for Category:<language name> phrases

Example

The code of a simple entry of an English phrase should look like the example below. (Additional information such as pronunciations, etymologies and multiple definitions are not presented here for the sake of simplicity, but they are always encouraged!)

==High Valyrian==

===Phrase===
{{hval-phrase|[[foo]] [[bar]]}}

# Lorem ipsum dolor sit amet.

For creators of language-specific templates

The new template should be named Template:xx-phrase, where xx should be replaced by the language code.

Just copy any of the codes below, and adapt it. They are identical except for the language code.

Example of High Valyrian template

{{meta-phrase
|hval
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
}}

Example of Trigedasleng template

{{meta-phrase
|trig
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
|sort={{{sort|}}}
}}

Example of Hen Linge template

{{meta-phrase
|henl
|head={{{head|{{{1|}}}}}}
|sc={{{sc|}}}
}}