Шаблон:$/doc
< Шаблон:$
Перейти до навігації
Перейти до пошуку
This template is used to quickly pluralize singular links to plural page titles, or append suffix.
Usage
- Unnamed Parameter 1
Display text (singular)
- Unnamed Parameter 2 (optional)
Plural suffix (s
/es
/ies
) or custom link text, will auto detect if omitted. See {{displaytext}} for details about auto plural detection.
- Unnamed Parameter 3 (optional)
Pagename suffix (without parenthesis), See examples below.
Example
[[King Slime]] is a {{$|boss}}.
results in: King Slime is a boss.
Code | Result | Note |
---|---|---|
{{$|event}} |
event | Default plural suffix is s .
|
{{$|boss}} |
boss | See {{displaytext}} for all other plural rules. |
{{$|butterfly}} |
butterfly | |
{{$|ray}} |
ray | |
{{$|leaf}} |
leaf | |
{{$|roof}} |
roof | |
{{$|tooth|teeth}} |
tooth | Custom plural link text for irregular nouns. Equal to [[teeth|tooth]] .
|
{{$|leaf|events}} |
leaf | Custom link text. Equal to [[event|leaf]] . Even though it works, please do not do this!
|
{{$|Jellyfish||bait}} |
Jellyfish | pagename suffix |
{{$|Banner|s|enemy}} |
Знамено ПОМИЛКА! (очікується: Banner) | |
{{lang/set|es}}{{$|Music Box||Snow}} |
[[Помилка Lua у package.lua у рядку 80: module 'Module:Tr/loaddata-es' not found.Music Box (Snow)|Music Box]] FAIL! (expected: Caja de música) | i18n test |
Шаблон:Translation projects
Категорії:
- Сторінки з помилками скриптів
- Шаблони з проваленим модульним тестуванням
- Templates with unit test failed
- Template documentation/es