Template:Ability: Difference between revisions

From Gambian Holiday Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox|title={{{title1|{{PAGENAME}}}}}|image={{{image1}}}|content={{Infobox/row|Trait|{{{trait|}}}}}{{Infobox/row|Origin|{{{origin|}}}}}{{Infobox/row|Power|{{{power|}}}}}{{Infobox/row|Rarity|{{{rarity|}}}}}{{Infobox/row|Destructive Power|{{{destructive_power|}}}}}}}
<includeonly>{{Infobox|title={{{title1|{{{title|{{PAGENAME}}}}}}}}|image={{{image1|{{{image|}}}}}}|caption={{{caption|{{{caption1|}}}}}}|content={{Infobox/row|Effect|{{{trait|}}}{{{description|}}}}}{{Infobox/row|Origin|{{{origin|}}}}}{{Infobox/row|Power|{{{power|}}}}}{{Infobox/row|Rarity|{{{rarity|}}}}}{{Infobox/row|Destructive Power|{{{destructive_power|}}}}}}}</includeonly><noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"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",
"example": "Divine Fertility Dividing",
"example": "Divine Fertility Dividing",
"type": "string",
"type": "string"
"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 35:
"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": {
"caption": {
"description": "Where did this ability come from / how did its user obtain it?",
"description": "Caption to show below the image."
"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, ‘title1’, ‘image1’, and ‘trait’ are also accepted instead of ‘title’, ‘image’, and ‘description’, 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",
"caption",
"description",
"origin",
"power",
"rarity",
"destructive_power"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 15:23, 16 August 2024

Template used to display abilities. Only the image is required. The title defaults to the pagename. For backwards-compatibility, ‘title1’, ‘image1’, and ‘trait’ are also accepted instead of ‘title’, ‘image’, and ‘description’, 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
Stringoptional
imageimage image1 (deprecated)

The image to show for this ability

Example
Dfd-0.png
Unknownrequired
captioncaption

Caption to show below the image.

Unknownoptional
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