Template:Inflicts: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(change category)
(add format)
Line 1: Line 1:
<includeonly>{{#cargo_store:
<includeonly>{{#cargo_store:
| condition_inflicted = {{{1|}}}
| condition_inflicted = {{{1|}}}
| template = {{{2|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition.
A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition.


The conditions should be specified as their pages are named, without the (Condition) ending. The capitalization is important.
The first parameter is the name of the condition, without the (Condition) ending. The capitalization is important.


Example usage: <code><nowiki>{{Inflicts|Bleeding}}</nowiki></code>
The second parameter is type of page. For example, a spell or ability should specify "sai", and an item should specify "item". If nothing is specified, it'll be listed just as a link.
 
Example usage: <code><nowiki>{{Inflicts|Bleeding|sai}}</nowiki></code>


{{#cargo_declare:
{{#cargo_declare:
_table = condition_sources
_table = condition_sources
| condition_inflicted = String
| condition_inflicted = String
| template = String
}}
}}


Line 24: Line 28:
"required": true,
"required": true,
"type": "string"
"type": "string"
},
"2": {
"label": "format",
"description": "The format of the page.",
"suggestedvalues": [
"sai",
"item"
],
"suggested": true
}
}
},
},

Revision as of 09:54, 13 October 2023

A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition.

The first parameter is the name of the condition, without the (Condition) ending. The capitalization is important.

The second parameter is type of page. For example, a spell or ability should specify "sai", and an item should specify "item". If nothing is specified, it'll be listed just as a link.

Example usage: {{Inflicts|Bleeding|sai}}

This template defines the table "condition_sources". View table.

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
condition1

The condition this page inflicts.

Stringrequired
format2

The format of the page.

Suggested values
sai item
Unknownsuggested