Template:Infobox enchantment/doc: Difference between revisions
m +Category:Infobox templates, ja-interwiki |
m interwiki JA |
||
(16 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation header}} | {{Documentation header}} | ||
This template provides a uniform design for the infobox on the [[Enchanting]] page. | This template provides a uniform design for the infobox on the [[Enchanting]] page. | ||
<pre style="display:table"> | |||
{{Enchantment | |||
| title = | |||
| addedVersion = | |||
| addedDate = | |||
| removedVersion = | |||
| removedDate = | |||
| maxlevel = | |||
| primaryitems = | |||
| secondaryitems = | |||
| weight = | |||
| id = | |||
| incompat = | |||
| overleveling = | |||
}} | |||
</pre> | |||
{| class="wikitable" | {| class="wikitable" | ||
! Parameter | ! Parameter | ||
Line 7: | Line 24: | ||
! Default value | ! Default value | ||
|- | |- | ||
| | | <code>1</code>, <code>title</code> | ||
| The enchantment's name | | The enchantment's name | ||
| | | <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | ||
|- | |||
| <code>maxlevel</code> || The enchantment's maximum level || — | |||
|- | |||
| <code>addedVersion</code> || The version that added this enchantment || ''None'' | |||
|- | |||
| <code>addedDate</code> || The date that removed this enchantment || ''None'' | |||
|- | |- | ||
| <code> | | <code>removedVersion</code> || The version that removed the enchantment || ''None'' | ||
| The enchantment' | |||
|- | |- | ||
| <code> | | <code>removedDate</code> || The date that removed this enchantment || ''None'' | ||
| | |||
| ''None'' | |||
|- | |- | ||
| <code> | | <code>primaryitems</code> || Items which can be offered the enchantment by an enchantment table || ''None'' | ||
| | |||
| ''None'' | |||
|- | |- | ||
| <code> | | <code>secondaryitems</code> || Other legitimate items || ''None'' | ||
| | |||
|- | |- | ||
| <code> | | <code>weight</code> || The enchantment's relative probability of being offered || | ||
| | |||
| | |||
|- | |- | ||
| <code> | | <code>id</code>, <code>namespace</code>, <code>namespacedid</code> || The resource location of the enchantment || | ||
| The | |||
| | |||
|- | |- | ||
| <code> | | <code>incompat</code> || Other enchantments incompatible with this one || | ||
| | |||
| | |||
|- | |- | ||
| <code>overleveling</code> || The behavior the enchantment takes when scaled greater than normal using commands || | |||
|} | |} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"aliases": [ | |||
"title" | |||
], | |||
"label": "Enchantment name", | |||
"description": "The name of the enchantment, if it differs from the title.", | |||
"example": "Sharpness", | |||
"type": "string" | |||
}, | |||
"maxlevel": { | |||
"aliases": [ | |||
"level" | |||
], | |||
"label": "Maximum level", | |||
"description": "The maximum possible level acquirable in survival with no cheats.", | |||
"example": "4", | |||
"suggested": true | |||
}, | |||
"primaryitems": { | |||
"aliases": [ | |||
"primary" | |||
], | |||
"label": "Primary items", | |||
"description": "Items which can be offered this enchantment in an enchantment table.", | |||
"suggested": true | |||
}, | |||
"secondaryitems": { | |||
"aliases": [ | |||
"secondary" | |||
], | |||
"label": "Secondary items", | |||
"description": "Other items that this enchantment items can be applied to" | |||
}, | |||
"weight": { | |||
"label": "Weight", | |||
"description": "The probability for this enchantment to be offered in an enchanting table.", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"incompat": { | |||
"aliases": [ | |||
"incompatible", | |||
"incompatibilities" | |||
], | |||
"label": "Incompatibilities", | |||
"description": "A list of enchantments that are incompatible with this enchantment.", | |||
"suggested": true | |||
}, | |||
"overleveling": { | |||
"label": "Overleveling behavior", | |||
"description": "How the enchantment scales when exceeding the maximum normal level.", | |||
"type": "string" | |||
}, | |||
"versionAdded": { | |||
"aliases": [ | |||
"added" | |||
], | |||
"label": "Version added", | |||
"description": "The version the enchantment first appeared.", | |||
"example": "18w47a" | |||
}, | |||
"dateAdded": { | |||
"label": "Date added", | |||
"description": "The date the enchantment first appeared.", | |||
"example": "{{Start date|2018|9|25}}", | |||
"type": "date" | |||
}, | |||
"versionRemoved": { | |||
"aliases": [ | |||
"removed" | |||
], | |||
"label": "Version removed", | |||
"description": "The version that removed this enchantment", | |||
"example": "Beta 1.5" | |||
}, | |||
"dateRemoved": { | |||
"label": "Date removed", | |||
"description": "The date that this enchantment was removed.", | |||
"example": "{{End date|2011|12|19}}", | |||
"type": "date" | |||
}, | |||
"id": { | |||
"aliases": [ | |||
"namespace", | |||
"namespacedid" | |||
], | |||
"label": "Resource location", | |||
"description": "The resource location of the enchantment.", | |||
"example": "strength", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"format": "block", | |||
"description": "Creates an infobox for an enchantment.", | |||
"paramOrder": [ | |||
"1", | |||
"versionAdded", | |||
"dateAdded", | |||
"versionRemoved", | |||
"dateRemoved", | |||
"maxlevel", | |||
"primaryitems", | |||
"secondaryitems", | |||
"weight", | |||
"id", | |||
"incompat", | |||
"overleveling" | |||
] | |||
} | |||
</templatedata> | |||
==See also== | |||
{{infobox see also}} | |||
<includeonly> | <includeonly> | ||
<!-- template categories/interwikis here --> | <!-- template categories/interwikis here --> | ||
[[ja:テンプレート:Enchantment]] | [[es:Plantilla:Encantamiento]] | ||
[[ja:テンプレート:Infobox enchantment]] | |||
[[ko:틀:Enchantment]] | |||
[[uk:Шаблон:Чари]] | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
Line 49: | Line 181: | ||
<noinclude> | <noinclude> | ||
<!-- doc categories/interwikis here --> | <!-- doc categories/interwikis here --> | ||
[[ja:テンプレート:Enchantment/doc]] | [[es:Plantilla:Encantamiento/doc]] | ||
[[ja:テンプレート:Infobox enchantment/doc]] | |||
[[ko:틀:Enchantment/doc]] | |||
[[uk:Шаблон:Чари/док]] | |||
</noinclude> | </noinclude> |
Latest revision as of 13:57, 30 June 2024
This template provides a uniform design for the infobox on the Enchanting page.
{{Enchantment | title = | addedVersion = | addedDate = | removedVersion = | removedDate = | maxlevel = | primaryitems = | secondaryitems = | weight = | id = | incompat = | overleveling = }}
Parameter | Function | Default value |
---|---|---|
1 , title
|
The enchantment's name | {{BASEPAGENAME}}
|
maxlevel |
The enchantment's maximum level | — |
addedVersion |
The version that added this enchantment | None |
addedDate |
The date that removed this enchantment | None |
removedVersion |
The version that removed the enchantment | None |
removedDate |
The date that removed this enchantment | None |
primaryitems |
Items which can be offered the enchantment by an enchantment table | None |
secondaryitems |
Other legitimate items | None |
weight |
The enchantment's relative probability of being offered | |
id , namespace , namespacedid |
The resource location of the enchantment | |
incompat |
Other enchantments incompatible with this one | |
overleveling |
The behavior the enchantment takes when scaled greater than normal using commands |
Creates an infobox for an enchantment.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Enchantment name | 1 title | The name of the enchantment, if it differs from the title.
| String | optional |
Version added | versionAdded added | The version the enchantment first appeared.
| Unknown | optional |
Date added | dateAdded | The date the enchantment first appeared.
| Date | optional |
Version removed | versionRemoved removed | The version that removed this enchantment
| Unknown | optional |
Date removed | dateRemoved | The date that this enchantment was removed.
| Date | optional |
Maximum level | maxlevel level | The maximum possible level acquirable in survival with no cheats.
| Unknown | suggested |
Primary items | primaryitems primary | Items which can be offered this enchantment in an enchantment table. | Unknown | suggested |
Secondary items | secondaryitems secondary | Other items that this enchantment items can be applied to | Unknown | optional |
Weight | weight | The probability for this enchantment to be offered in an enchanting table. | Number | suggested |
Resource location | id namespace namespacedid | The resource location of the enchantment.
| String | suggested |
Incompatibilities | incompat incompatible incompatibilities | A list of enchantments that are incompatible with this enchantment. | Unknown | suggested |
Overleveling behavior | overleveling | How the enchantment scales when exceeding the maximum normal level. | String | optional |
See also
- Minecraft
{{Infobox biome}}
{{Infobox block}}
{{Infobox command}}
{{Infobox development phase}}
{{Infobox enchantment}}
{{Infobox effect}}
{{Infobox entity}}
{{Infobox fluid}}
{{Infobox item}}
{{Infobox item entity}}
{{Infobox structure}}
- Minecraft Earth
- Minecraft Dungeons
{{Infobox Dungeons cosmetic}}
{{Infobox Dungeons enchantment}}
{{Infobox Dungeons entity}}
{{Infobox Dungeons item}}
{{Infobox Dungeons mission}}
- Minecraft Legends
{{Infobox Legends biome}}
{{Infobox Legends entity}}
{{Infobox Legends resource}}
{{Infobox Legends mode}}
{{Infobox Legends skin}}
{{Infobox Legends structure}}
- Minecraft Story Mode
{{Infobox episode}}
- Other
{{Infobox album}}
{{Infobox book}}
{{Infobox board game}}
{{Infobox company}}
{{Fallback infobox}}
{{Infobox guide}}
{{Infobox mash-up}}
{{Infobox music}}
{{Infobox person}}
{{Infobox profile}}
{{Infobox program}}
{{Infobox screen effect}}
{{Infobox server}}
{{Infobox skin pack}}
{{Infobox theme}}
{{Infobox version}}
{{Infobox video}}
{{Infobox website}}
{{Infobox world}}
- Meta
{{Infobox}}
{{Infobox row}}
{{Infobox header}}
- Module:Infobox
es:Plantilla:Encantamiento/doc
ja:テンプレート:Infobox enchantment/doc
ko:틀:Enchantment/doc
uk:Шаблон:Чари/док