Ad placeholder

Template:Inflicts: Difference between revisions

Jump to navigation Jump to search
Added "parent" page support
(expand suggested values)
(Added "parent" page support)
Line 2: Line 2:
| condition_inflicted = {{{1|}}}
| condition_inflicted = {{{1|}}}
| template = {{{2|}}}
| template = {{{2|}}}
| parent = {{{parent|}}}
| parent_template = {{{parent template|}}}
}}</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.
Line 8: Line 10:


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. See [[Template:Condition sources]] for the template that displays these condition sources.
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. See [[Template:Condition sources]] for the template that displays these condition sources.
If it is necessary to show a parent page of this page, use the "parent" field to specify that page and the "parent template" field to specify what template it should use to display.


Example usage: <code><nowiki>{{Inflicts|Bleeding|sai}}</nowiki></code>
Example usage: <code><nowiki>{{Inflicts|Bleeding|sai}}</nowiki></code>
Example usage with parent: <code><nowiki>{{Inflicts|Bleeding|sai|parent=Spiked Bulb|parent template=item}}</nowiki></code>


{{#cargo_declare:
{{#cargo_declare:
Line 15: Line 21:
| condition_inflicted = String
| condition_inflicted = String
| template = String
| template = String
| parent = Page
| parent_template = String
}}
}}


Line 36: Line 44:
"item",
"item",
                 "cond",
                 "cond",
                "passive",
                 "weapon action"
                 "weapon action"
],
],
            "type": "string",
"suggested": true
"suggested": true
},
        "parent": {
"label": "parent",
"description": "The parent page that provides this page.",
"type": "string"
},
"parent template": {
"label": "format",
"description": "The template to use to format the parent page",
"suggestedvalues": [
"sai",
"item",
                "cond",
                "passive",
                "weapon action"
],
            "type": "string"
}
}
},
},

Navigation menu