Template:$
跳转到导航
跳转到搜索
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}} |
事件 FAIL! (expected: event ) | Default plural suffix is s .
|
{{$|boss}} |
Boss FAIL! (expected: boss ) | See {{displaytext}} for all other plural rules. |
{{$|butterfly}} |
蝴蝶 FAIL! (expected: butterfly ) | |
{{$|ray}} |
ray | |
{{$|leaf}} |
树叶 FAIL! (expected: leaf ) | |
{{$|roof}} |
roof | |
{{$|tooth|teeth}} |
tooth | Custom plural link text for irregular nouns. Equal to [[teeth|tooth]] .
|
{{$|leaf|events}} |
树叶 FAIL! (expected: leaf ) | Custom link text. Equal to [[event|leaf]] . Even though it works, please do not do this!
|
{{$|Jellyfish||bait}} |
水母 FAIL! (expected: Jellyfish ) | pagename suffix |
{{$|Banner|s|enemy}} |
旗帜 FAIL! (expected: Banner ) | |
{{lang/set|es}}{{$|Music Box||Snow}} |
八音盒 FAIL! (expected: Caja de música ) | i18n test |