Шаблон:Condition

Матеріал з Вікі D&D українською
Версія від 21:54, 27 серпня 2023, створена 587 (обговорення | внесок) (Імпортовано 1 версія)
(різн.) ← Попередня версія | Поточна версія (різн.) | Новіша версія → (різн.)
Перейти до навігації Перейти до пошуку


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 }}