Template:Card View history

imported>Forumtestuser
No edit summary
imported>ForumuserSTG
No edit summary
Line 26: Line 26:
[[{{#if:{{{image|}}}|file:{{{image}}}|{{#pageimage:{{{link|{{{title|}}}}}} }}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full]]
[[{{#if:{{{image|}}}|file:{{{image}}}|{{#pageimage:{{{link|{{{title|}}}}}} }}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full]]
</div>
</div>
|<div style="background-color:{{{color|#0099FF}}}" 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>
<h4 class="px-3 md:px-4 mt-8 w-full text-xs text-gray-600">{{{type|}}}</h4>
<h4 class="px-3 md:px-4 mt-8 w-full text-xs text-gray-600">{{{type|}}}</h4>
}}
}}

Revision as of 09:28, 4 October 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
    }}