Template:meta-phrase/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
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[edit]

Usage[edit]

The template ({{en-phrase}}, {{fr-phrase}}, {{pt-phrase}}, etc.) should be added to all applicable entries.

Parameters[edit]

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[edit]

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!)

==English==

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

# Lorem ipsum dolor sit amet.

For creators of language-specific templates[edit]

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 English template[edit]

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

Example of French template[edit]

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

Example of Portuguese template[edit]

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