Template:Card View history

imported>ForumuserSTG
No edit summary
imported>Forumtestuser
No edit summary
Line 24: Line 24:
<div class="card__header text-sm flex flex-column justify-center h-16 md:h-28 mb-6">
<div class="card__header text-sm flex flex-column justify-center h-16 md:h-28 mb-6">
{{#if: {{{image|}}}{{#pageimage:{{{link|{{{title|}}}}}}}}| <div class="w-full overflow-hidden">
{{#if: {{{image|}}}{{#pageimage:{{{link|{{{title|}}}}}}}}| <div class="w-full overflow-hidden">
[[{{#if:{{{image|}}}|file:{{{image}}}|{{#pageimage:{{{link|{{{title|}}}}}} }}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full]]
[[{{#if:{{{image|}}}|file:{{{image}}}|file:{{#pageimage:{{{link|{{{title|}}}}}} }}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full]]
</div>
</div>
|<div style="background-color:{{#if:{{{color|}}}|{{{color|#0099FF}}}|{{#var:color}} }}" class="card__bar w-full h-2 absolute top-0"></div>
|<div style="background-color:{{#if:{{{color|}}}|{{{color|#0099FF}}}|{{#var:color}} }}" class="card__bar w-full h-2 absolute top-0"></div>

Revision as of 11:36, 9 December 2021

Template structure

  • Map Editor

    page name if different form title
    some card content
  • 
    {{card
    |title=UK Quick Start Editing Guide
    |subtitle=some card content (if empty loads target page automatic excerpt)
    |color=#0099FF
    |type=Card Type
    |image=File name (optional) if empty gets first image in linked page
    |link=page name if different form title
    }}