Template:Card: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Prevent Japanese text from overflowing over the border of the card; having a scrollbar is a little weird but it's better than text overlaid on whatever is after the card)
(Force witch cards into the expected dimensions)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| style = "width: 100%;"
<includeonly>{| style = "width: 100%;"
| style = "width: 278px; min-height: 385px; vertical-align: top;" |<div style="position: relative; width: 278px;">
| style = "width: 278px; min-height: 385px; vertical-align: top;" |<div style="position: relative; width: 278px;">
[[{{#if:{{{image|}}}|{{{image}}}|File:Card Missing.png}}]]
[[{{#if:{{{image|}}}|{{{image}}}|File:Card Missing.png}}|278x385px]]
<div style="position: absolute; top: 283px; left: 23px; width: 235px; height: 80px; font-size: 11px; line-height: 115%; color: #fff; overflow-y: scroll; {{{jatext_extra_styles}}}" lang="ja" xml-lang="ja">{{{japanese_desc}}}</div>
<div style="position: absolute; top: 283px; left: 23px; width: 235px; height: 80px; font-size: 11px; line-height: 115%; color: #fff; overflow-y: auto; {{{jatext_extra_styles}}}" lang="ja" xml-lang="ja">{{{japanese_desc}}}</div>
</div>
</div>
|style="vertical-align:top;"|<div style="padding:0 5px;">
|style="vertical-align:top;"|<div style="padding:0 5px;">

Latest revision as of 13:06, 27 April 2023

Usage:

{{Card
|name          = Yom-ini Kui
|runes         = YOMINIKUI
|runes_variant = musical
|image         = File:Card Yominikui.png
|japanese_desc = 日本語の説明文
|english_desc  = English description here.
|type          = Witch of Illegible
|task          = Making typos
|nature        = Typos
|witchkiss     = File:Witch's Kiss Yominikui.png
|griefseed     = File:Grief Seed Yominikui.png
|episodes      = [[Episode 1]], [[Episode 2]]
|jatext_extra_styles = extra styling for japanese text
|header_extra_styles = extra styling for header label
}}