Template:SpiritTableName: Difference between revisions
m (Pretty sure this should cover all cases, going to run some tests then attempt to mainspace it.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>|{{anchor|{{{name}}}}}[[File:SSBU spirit {{{name}}}.png|center|{{{size|108}}}x{{{size|108}}}px]] | <onlyinclude>|{{anchor|{{{name}}}}}[[File:SSBU spirit {{{name}}}.png|center|{{{size|108}}}x{{{size|108}}}px]] | ||
|{{{customname|{{{# | |{{{customname|{{{#if|{{{link|}}}|[[{{{{{{iw|}}}:name}}}]]|{{{name}}}}}}}}}</onlyinclude><noinclude> | ||
Should be able to replace the second and third columns of the spirit table for all tables except fighter. Currently has Two main parameters. The first parameter, <code>{{{name}}}</code>, sets up the anchor, image file, and default name listed in the next cell. The other main parameter, <code>{{{size}}}</code>, sets the size of the image shown in pixels, it defaults to 108 if no value is inputted. | Should be able to replace the second and third columns of the spirit table for all tables except fighter. Currently has Two main parameters. The first parameter, <code>{{{name}}}</code>, sets up the anchor, image file, and default name listed in the next cell. The other main parameter, <code>{{{size}}}</code>, sets the size of the image shown in pixels, it defaults to 108 if no value is inputted. | ||
By default, there will not be any links in the cell with the name. If <code>link | 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>interwiki</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> | </noinclude> |
Revision as of 11:49, November 19, 2020
|[[File:SSBU spirit {{{name}}}.png|center|108x108px]] |
Should be able to replace the second and third columns of the spirit table for all tables except fighter. Currently has Two main parameters. The first parameter, {{{name}}}
, sets up the anchor, image file, and default name listed in the next cell. The other main parameter, {{{size}}}
, sets the size of the image shown in pixels, it defaults to 108 if no value is inputted.
By default, there will not be any links in the cell with the name. If link
is not blank, then the name will be linked to its respective page within SmashWiki. If link
is not blank and iw
isn't left blank, the page will be linked to the respective wiki specified within the parameter interwiki
. Alternatively, the parameter customname
could be used to replace the name cell entirely, whether it be to include a unique formatting or to link to an external page.