Template:Condition
Use this to display a condition. Examples follow.
This template just runs the Cargo query. For the formatting, see: Template:Condition/Format
Base usage
Usage:
{{Condition | Bleeding }}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT() AS `save`,CONCAT() AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
With duration
Usage:
{{Condition | Bleeding | duration = 2 }}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT() AS `save`,CONCAT('2') AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
With saving throw
Usage:
{{Condition | Bleeding | save = CON }}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT('CON') AS `save`,CONCAT() AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
With duration and saving throw
Usage:
{{Condition | Bleeding | save = CON | duration = 2 | dc = 15 }}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT('CON') AS `save`,CONCAT('2') AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT('15') AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
With a border
Use border = 1 to add a border.
{{Condition | Bleeding | save = CON | duration = 2 | border = 1}}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT('CON') AS `save`,CONCAT('2') AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
Inline-friendly
Usage:
{{Condition | Bleeding | inline = true }}Result: blabla
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT() AS `save`,CONCAT() AS `duration`,CONCAT('true') AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
Alternative display name
{{Condition | Bleeding | save = CON | altname=oh no i'm bleeding | duration = 2 }}
Result:
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT('CON') AS `save`,CONCAT('2') AS `duration`,CONCAT() AS `inline`,CONCAT('oh no i"m bleeding') AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Bleeding" ORDER BY `_ID` LIMIT 100
Also displays types
Function: CargoSQLQuery::run Query: SELECT `cargo__conditions`.`_pageID` AS `cargo_backlink_page_id_conditions`,`_pageName` AS `Page`,`name` AS `name`,`icon` AS `icon`,`effects` AS `effects`,`types__full` AS `types`,CONCAT() AS `save`,CONCAT() AS `duration`,CONCAT() AS `inline`,CONCAT() AS `altname`,CONCAT() AS `dc` FROM `cargo__conditions` WHERE Page = "Feverish" ORDER BY `_ID` LIMIT 100