Templat:prefixusex/doc
Penampilan
Menggunakan Lua:
This template creates usage examples for prefix entries in the format prefix- + word → prefixed word. More complex entries are also possible, e.g.:
- prefix- + word1 + word2 → prefixed word
- prefix1- + word1 → prefixed word 1 + -suffix2 → suffixed word 2
- word1 (qualifier) + word2 → combined word
Parameters
[sunting]- This template takes almost exactly the same parameters as
{{affixusex}}and its shortcut{{afex}}; see the documentation of that template for more information. There are only slight differences between the two:
- When
{{prefixusex}}/{{prefex}}is used, the parameter|altaff=can also be named|altpref=, for compatibility purposes. - When interpolating a prefix before the first component (taken from the
|altaff=parameter or the page name),{{affixusex}}checks that the prefix being inserted actually looks like a prefix (i.e. it ends with a hyphen and doesn't begin with a hyphen) before being interpolated.{{prefixusex}}does not make this extra check. This may matter in languages where prefixes are not normally followed by a hyphen (e.g. East Asian languages), or are followed by a different character (e.g. Hebrew and Arabic). For Latin-script languages, it usually doesn't matter.
In practice, these are very minor differences, and it is recommended to use {{affixusex}}/{{afex}} in all circumstances; {{prefixusex}} and {{suffixusex}} are maintained largely for compatibility.
See also
[sunting]{{suffixusex}}/{{sufex}}: like{{prefixusex}}/{{prefex}}, but for suffixes{{affixusex}}/{{afex}}: general variant for prefixes, suffixes, interfixes, compounds, etc.{{ux}}: to format general usage examples