Template:Character info: Difference between revisions

Jump to navigation Jump to search
(Add support for conditions list in the infobox)
(Added documentation and fixed render issue for conditions)
Line 113: Line 113:
{{div col end}}
{{div col end}}
}}
}}
{{!}}-
{{#if:{{{passive|}}}|
{{#if:{{{passive|}}}|
{{!}} colspan="2" align="center" style="font-size: 110%; background: #281C14; color: #C1A886;"  {{!}} '''Passive features'''
{{!}} colspan="2" align="center" style="font-size: 110%; background: #281C14; color: #C1A886;"  {{!}} '''Passive features'''
Line 223: Line 224:
|proficiency=2
|proficiency=2
|initiative=-1
|initiative=-1
|conditions = {{CON|Legendary Resistance}}
|passive = {{PAS|Opportunity Attack}}
|passive = {{PAS|Opportunity Attack}}
{{PAS|Darkvision (Passive Feature)|Darkvision}}
{{PAS|Darkvision (Passive Feature)|Darkvision}}
Line 295: Line 297:
|proficiency=2
|proficiency=2
|initiative=-1
|initiative=-1
|conditions = {{CON|Legendary Resistance}}
|passive = {{PAS|Opportunity Attack}}
|passive = {{PAS|Opportunity Attack}}
{{PAS|Darkvision (Passive Feature)|Darkvision}}
{{PAS|Darkvision (Passive Feature)|Darkvision}}
Line 362: Line 365:
|proficiency  =  
|proficiency  =  
|initiative  =  
|initiative  =  
|conditions  =
|passive      = {{PAS|Opportunity Attack}}
|passive      = {{PAS|Opportunity Attack}}
|bludgeoning  =  
|bludgeoning  =  
Line 590: Line 594:
"label": "Initiative",
"label": "Initiative",
"type": "number"
"type": "number"
},
        "conditions": {
"description": "Character's conditions that they start with. Use template {{CON|condition name)}} for automatic icons and linking.",
"example": "{{CON|Legendary Resistance}} {{CON|Blade Ward}}",
"suggestedvalues": [
"{{PAS|Blade Ward}}",
"{{PAS|Legenary Resistance}}"
],
"suggested": true,
"label": "Conditions",
"type": "string"
},
},
"passive": {
"passive": {
Line 957: Line 972:
"proficiency",
"proficiency",
"initiative",
"initiative",
        "conditions",
"passive",
"passive",
"class",
"class",