Template:Displaytext/doc
跳到导航
跳到搜索
Get display text. Use in templates with link and customable display text.
Usage
{{displaytext|arg1|arg2|lang=<lang>}}
The result text will be auto translated.
- Unnamed Parameter 1
Base text (usually be link)
- Unnamed Parameter 2 (optional)
Custom display text, or plural suffix (e/es/ies)
- lang (optional)
Language code for plural process. default is {{lang}}
Example
Code | Result | Expected |
---|---|---|
{{displaytext|Block}} |
物块 | Block |
{{displaytext|Block|s}} |
物块 | Blocks |
{{displaytext|Boss|es}} |
Boss | Bosses |
{{displaytext|Butterfly|ies}} |
蝴蝶 | Butterflies |
{{displaytext|Gold Table|Golden}} |
Golden | Golden |
{{displaytext|Golden Chest|s|lang=it}} |
金宝箱 | Cassa dorata |