Template:Ability: Difference between revisions

From Gambian Holiday Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
{
{
"params": {
"params": {
"title1": {
"origin": {
"description": "Where did this ability come from / how did its user obtain it?",
"example": "Granted by Odin"
},
"power": {
"description": "How powerful is this ability?",
"example": "9/10"
},
"rarity": {
"description": "How rare is this ability",
"example": "Only one user"
},
"destructive_power": {
"description": "How destructive is this ability",
"example": "11/10"
},
"title": {
"aliases": [
"aliases": [
"title"
"title1 (deprecated)"
],
],
"description": "The name of this ability",
"description": "The name of this ability",
Line 13: Line 29:
"required": true
"required": true
},
},
"image1": {
"image": {
"aliases": [
"aliases": [
"image"
"image1 (deprecated)"
],
],
"description": "The image to show for this ability",
"description": "The image to show for this ability",
Line 21: Line 37:
"required": true
"required": true
},
},
"trait": {
"description": {
"aliases": [
"aliases": [
"description"
"trait (deprecated)"
],
],
"description": "What does this ability do?",
"description": "What does this ability do?",
"example": "Halves the Fertility of someone in contact every 10 seconds"
"example": "Halves the Fertility of someone in contact every 10 seconds"
},
"origin": {
"description": "Where did this ability come from / how did its user obtain it?",
"example": "Granted by Odin"
},
"power": {
"description": "How powerful is this ability?",
"example": "9/10"
},
"rarity": {
"description": "How rare is this ability",
"example": "Only one user"
},
"destructive_power": {
"description": "How destructive is this ability",
"example": "11/10"
}
}
}
},
"description": "Template used to display abilities. Only the image is required. The title defaults to the pagename. For backwards-compatibility, <code>title1</code>, <code>image1</code>, and <code>trait</code> are also accepted instead of <code>title</code>, <code>image</code>, and <code>description</code>, respectively; newer pages should always use the latter, and existing pages should be migrated to use the latter whenever they’re edited.",
"paramOrder": [
"title",
"image",
"description",
"origin",
"power",
"rarity",
"destructive_power"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 01:29, 26 June 2024

Ability

[[File:{{{image}}}]]

Template used to display abilities. Only the image is required. The title defaults to the pagename. For backwards-compatibility, <code>title1</code>, <code>image1</code>, and <code>trait</code> are also accepted instead of <code>title</code>, <code>image</code>, and <code>description</code>, respectively; newer pages should always use the latter, and existing pages should be migrated to use the latter whenever they’re edited.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle title1 (deprecated)

The name of this ability

Example
Divine Fertility Dividing
Stringrequired
imageimage image1 (deprecated)

The image to show for this ability

Example
Dfd-0.png
Unknownrequired
descriptiondescription trait (deprecated)

What does this ability do?

Example
Halves the Fertility of someone in contact every 10 seconds
Unknownoptional
originorigin

Where did this ability come from / how did its user obtain it?

Example
Granted by Odin
Unknownoptional
powerpower

How powerful is this ability?

Example
9/10
Unknownoptional
rarityrarity

How rare is this ability

Example
Only one user
Unknownoptional
destructive_powerdestructive_power

How destructive is this ability

Example
11/10
Unknownoptional