Template:Meta-phrase/documentation: Difference between revisions
(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...") |
m (Changed links to point to Wiktionary) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
===Usage=== | ===Usage=== | ||
The template ({{temp| | 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>== | <pre>==High Valyrian== | ||
===Phrase=== | ===Phrase=== | ||
{{ | {{hval-phrase|{{wt|foo}} {{wt|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 | ===Example of High Valyrian template=== | ||
<pre>{{meta-phrase | <pre>{{meta-phrase | ||
| | |hval | ||
|head={{{head|{{{1|}}}}}} | |head={{{head|{{{1|}}}}}} | ||
|sc={{{sc|}}} | |sc={{{sc|}}} | ||
}}</pre> | }}</pre> | ||
===Example of | ===Example of Trigedasleng template=== | ||
<pre>{{meta-phrase | <pre>{{meta-phrase | ||
| | |trig | ||
|head={{{head|{{{1|}}}}}} | |head={{{head|{{{1|}}}}}} | ||
|sc={{{sc|}}} | |sc={{{sc|}}} | ||
Line 46: | Line 46: | ||
}}</pre> | }}</pre> | ||
===Example of | ===Example of Hen Linge template=== | ||
<pre>{{meta-phrase | <pre>{{meta-phrase | ||
| | |henl | ||
|head={{{head|{{{1|}}}}}} | |head={{{head|{{{1|}}}}}} | ||
|sc={{{sc|}}} | |sc={{{sc|}}} |
Latest revision as of 02:18, 25 August 2024
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|{{wt|foo}} {{wt|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|}}} }}