Template:SpiritTableName: Difference between revisions

m
Seems templatedata is no more. Not sure when that happened, but this is literally the only place I could find it being used so not much was lost
(I believe square brackets are a no-go in files, so adding this in. Thanks, Sora)
m (Seems templatedata is no more. Not sure when that happened, but this is literally the only place I could find it being used so not much was lost)
 
Line 8: Line 8:
The parameter <code>{{{anchor}}}</code> overrides the default anchor with a custom one. This is primarily used in cases where the spirit name has a parenthesis to distinguish between multiple spirits which would otherwise have the same name (Example: Slime (Dragon Quest) vs Slime (Minecraft)), but within a page only one of which is used.
The parameter <code>{{{anchor}}}</code> overrides the default anchor with a custom one. This is primarily used in cases where the spirit name has a parenthesis to distinguish between multiple spirits which would otherwise have the same name (Example: Slime (Dragon Quest) vs Slime (Minecraft)), but within a page only one of which is used.


By default, there will not be any links in the cell with the name. If <code>link</code> is not blank, then the name will be linked to its respective page within SmashWiki. If <code>link</code> is not blank and <code>iw</code> isn't left blank, the page will be linked to the respective wiki specified within the parameter <code>iw</code>. Alternatively, the parameter <code>customname</code> could be used to replace the name cell entirely, whether it be to include a unique formatting or to link to an external page.
By default, there will not be any links in the cell with the name. If <code>link</code> is not blank, then the name will be linked to its respective page within SmashWiki. If <code>link</code> is not blank and <code>iw</code> isn't left blank, the page will be linked to the respective wiki specified within the parameter <code>iw</code>. Alternatively, the parameter <code>customname</code> could be used to replace the name cell entirely, whether it be to include a unique formatting or to link to an external page.</noinclude>
 
<templatedata>
{
"params": {
"1": {
"label": "Name",
"description": "The name of the spirit",
"example": "Mario",
"type": "string",
"required": true
},
"size": {
"label": "Size",
"description": "Size in pixels",
"type": "number",
"default": "108"
},
"link": {
"label": "Link",
"description": "Enables a quick link. If set to \"y\" will link to a page on the Smash Wiki. If \"iw\" is specified, it will link to that NIWA wiki",
"type": "boolean"
},
"iw": {
"label": "Interwiki",
"description": "Changes what wiki the link directs to. If set then \"link\" does not need to be used",
"type": "string"
},
"customname": {
"label": "Alternate text",
"description": "Used in place of the \"link\" and \"iw\" parameters where basic linking isn't possible or multiple links are required",
"example": "[[Articuno]], [[Zapdos]], & [[Moltres]]",
"type": "content"
},
"anchor": {
"label": "Anchor",
"description": "Option to make the anchor something other than the spirit name",
"type": "string"
},
"ext": {
"label": "Extension",
"description": "Allows for the file extension to be changed",
"type": "string",
"default": "png"
},
"dlcalt": {
"label": "DLC alts",
"description": "If set, it will add rowspans to make it compatible with Spirit Battles that have Mii costume based alternatives",
"type": "boolean"
}
},
"description": "Template to simplify adding a spirit's info to a table. Automatically adds an anchor, image, and name.",
"format": "inline",
"paramOrder": [
"1",
"size",
"link",
"iw",
"customname",
"dlcalt",
"anchor",
"ext"
]
}
</templatedata></noinclude>
32,622

edits