Template:Magia Record Character Cell: Difference between revisions
Jump to navigation
Jump to search
(Try setting height to 100%) |
(Add description parameter) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{|class="wikitable" style="width:100%;height:100%;margin:0px;text-align:center; | <includeonly>{|class="wikitable" style="width:100%;height:100%;margin:0px;border:none;text-align:center;" | ||
|- | |- style="height:120px;" | ||
|[[File:{{{image}}}| | |style="border-width:0px 0px 1px 0px"|[[File:{{{image}}}|110px|link={{{link|{{{name}}}}}}]] | ||
|- | |- style="height:calc((100% - 120px) / 2)" | ||
|[[{{{link|{{{name}}}}}}|{{{name}}}]] | |style="border-width:1px 0px 1px 0px"|[[{{{link|{{{name}}}}}}|{{{name}}}]] | ||
|- | |- style="height:calc((100% - 120px) / 2)" | ||
|{{#switch:{{{doppel|}}}| | |style="font-size:x-small;border-width:1px 0px 0px 0px"|{{#if:{{{description|}}}|{{{description}}}|{{#switch:{{{doppel|}}}| | ||
none=''Character does not have a Doppel''| | none=''Character does not have a Doppel''| | ||
[[{{{witch|{{{link|{{{name}}}}}}#Doppel Description}}}|{{{doppel}}}]] | nodisplay=''Character does not display a doppel''| | ||
nodisplays=''Characters do not display a doppel''| | |||
unreleased=''Doppel unreleased''| | |||
unplayable=''Character currently unplayable''| | |||
blank= | | |||
[[{{{witch|{{{link|{{{name}}}}}}#Doppel Description}}}|{{{doppel}}}]]}} | |||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
Line 13: | Line 18: | ||
Creates a cell for a Magia Record character to be included on the characters page. | Creates a cell for a Magia Record character to be included on the characters page. | ||
<div style="height: 300px;border:2px solid red"> | |||
{{Magia Record Character Cell | {{Magia Record Character Cell | ||
|name=Hitagi Senjougahara | |name=Hitagi Senjougahara | ||
Line 18: | Line 24: | ||
|doppel=<span style="font-size:65%;display:inline-block;position:relative;top:3px;line-height:4.2pt">刀<br>牛</span> | |doppel=<span style="font-size:65%;display:inline-block;position:relative;top:3px;line-height:4.2pt">刀<br>牛</span> | ||
}} | }} | ||
</div> | |||
Parameters: | |||
* '''name''' - The character's name | |||
* '''link''' - The character's page (defaults to <tt>name</tt> if omitted) | |||
* '''image''' - The character's image; do not use <tt>File:</tt> prefix | |||
* '''doppel''' - Name of the character's doppel | |||
* '''witch''' - Optional; if provided, the doppel links to this page instead of the character's page | |||
* '''description''' - Overrides doppel if provided, giving a short description with no link | |||
The '''doppel''' parameter supports several special values which won't create a link: | |||
* <tt>none</tt> - ''Character does not have a doppel'' | |||
* <tt>nodisplay</tt> - ''Character does not display a doppel'' | |||
* <tt>nodisplays</tt> - ''Characters do not display a doppel'' | |||
* <tt>unreleased</tt> - ''Doppel unreleased'' | |||
* <tt>unplayable</tt> - ''Character currently unplayable'' | |||
* <tt>blank</tt> - leaves the doppel space blank (eg for a character who is not a magical girl) | |||
</noinclude> | </noinclude> |
Latest revision as of 23:43, 8 April 2023
Creates a cell for a Magia Record character to be included on the characters page.
Parameters:
- name - The character's name
- link - The character's page (defaults to name if omitted)
- image - The character's image; do not use File: prefix
- doppel - Name of the character's doppel
- witch - Optional; if provided, the doppel links to this page instead of the character's page
- description - Overrides doppel if provided, giving a short description with no link
The doppel parameter supports several special values which won't create a link:
- none - Character does not have a doppel
- nodisplay - Character does not display a doppel
- nodisplays - Characters do not display a doppel
- unreleased - Doppel unreleased
- unplayable - Character currently unplayable
- blank - leaves the doppel space blank (eg for a character who is not a magical girl)