Шаблон:Condition: відмінності між версіями
bg3>Taylan Немає опису редагування |
587 (обговорення | внесок) (Створена сторінка: Категорія:Потребує перекладу <includeonly>{{#cargo_query: tables = conditions | fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration | where = name = '{{#replace: {{{1}}} | ' | '' }}' | format = template | template = Condition/Format | named args = yes }}</includeonly><noinclude> Use this to display a condition. Examples follow. This template just runs the Cargo query. For the for...) |
||
Рядок 1: | Рядок 1: | ||
[[Категорія:Потребує перекладу]] | |||
<includeonly>{{#cargo_query: tables = conditions | <includeonly>{{#cargo_query: tables = conditions | ||
| fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration | | fields = name, icon, effects, CONCAT('{{{save|}}}') = save, CONCAT('{{{duration|}}}') = duration |
Версія за 16:49, 25 серпня 2023
Use this to display a condition. Examples follow.
This template just runs the Cargo query. For the formatting, see: Template:Condition/Format
Usage:
{{Condition | Bleeding }}
Result:
{{#cargo_query: tables = conditions | fields = name, icon, effects, CONCAT() = save, CONCAT() = duration | where = name = 'Bleeding' | format = template | template = Condition/Format | named args = yes }}
Usage:
{{Condition | Bleeding | duration = 2 }}
Result:
{{#cargo_query: tables = conditions | fields = name, icon, effects, CONCAT() = save, CONCAT('2') = duration | where = name = 'Bleeding' | format = template | template = Condition/Format | named args = yes }}
Usage:
{{Condition | Bleeding | save = CON }}
Result:
{{#cargo_query: tables = conditions | fields = name, icon, effects, CONCAT('CON') = save, CONCAT() = duration | where = name = 'Bleeding' | format = template | template = Condition/Format | named args = yes }}
Usage:
{{Condition | Bleeding | save = CON | duration = 2 }}
Result:
{{#cargo_query: tables = conditions | fields = name, icon, effects, CONCAT('CON') = save, CONCAT('2') = duration | where = name = 'Bleeding' | format = template | template = Condition/Format | named args = yes }}