틀:ModifierNameFromId/doc
둘러보기로 이동
검색으로 이동
This template returns the name of a modifier based on its ID.
Usage
{{ modifierNameFromId | <modifier ID> (optional) | lang = <lang> (optional) }}
- First unnamed parameter
ID of the modifier. If empty or invalid, will return empty string.
- lang
Language code. Default is {{lang|}}
. Currently we have 9 languages (as in game): en/es/it/de/fr/zh/pl/pt/ru.
Note: for those 9 languages, it is recommended to use {{modifierNameFromId|<id>|lang=<lang>}}
instead of {{tr|{{modifierNameFromId|<id>|lang=en}}}}
to get the name of the modifier in target language. This ensures that it is exactly the same as in the game, and is usually faster.
Examples
Code | Result |
---|---|
{{modifierNameFromId|60}} |
틀:ModifierNameFromId 틀:Red (expected: Demonic ) |
{{modifierNameFromId| 60 }} |
틀:ModifierNameFromId 틀:Red (expected: Demonic ) |
{{modifierNameFromId|}} |
틀:ModifierNameFromId 틀:Red (expected: ) |
{{modifierNameFromId|60|lang=fr}} |
틀:ModifierNameFromId 틀:Red (expected: Démoniaque ) |
See also
- {{modifierIdFromName}}
분류:
- Pages using DynamicPageList3 parser function
- Pages using DynamicPageList3 dplreplace parser function
- Pages using DynamicPageList3 dplvar parser function
- Templates with unit test failed
- Template documentation