Шаблон:Tagvalue: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Arex (обсуждение | вклад) м Правки Arex (обсуждение) откачены к версии Cypselus |
GeloMor (обсуждение | вклад) Обновил шаблон с англовики, добавил интервики |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#df_tagvalue:{{{1}}}|{{{2}}}|{{{notfound|not found}}}}}</includeonly><noinclude> | <includeonly>{{#df_tagvalue:{{{1}}}|{{{2}}}|{{{3|0}}}|{{{notfound|not found}}}}}</includeonly><noinclude> | ||
Usage: <nowiki>{{ tagvalue | raw entry | tag name }}</nowiki> | Usage: <nowiki>{{ tagvalue | raw entry | tag name | number | notfound=placeholder text }}</nowiki> | ||
Returns: value associated to that tag. uses the first tag encountered. | Returns: value associated to that tag. uses the (N+1)th (default first) tag encountered. If the tag is not found, the "notfound" parameter specifies what gets returned (defaults to "not found"). | ||
[[category:raw templates]] | [[category:raw templates]][[en:Template:Tagvalue]] | ||
</noinclude> | </noinclude> |
Текущая версия от 02:40, 3 августа 2018
Usage: {{ tagvalue | raw entry | tag name | number | notfound=placeholder text }}
Returns: value associated to that tag. uses the (N+1)th (default first) tag encountered. If the tag is not found, the "notfound" parameter specifies what gets returned (defaults to "not found").