Template:Card View history

imported>Forumtestuser
No edit summary
imported>Forumtestuser
No edit summary
Line 15: Line 15:
|color=#0099FF
|color=#0099FF
|type=Card Type
|type=Card Type
|image=File name (optional)
|image=File name (optional) if empty gets first image in linked page
|link=page name if different form title
|link=page name if different form title
}}</nowiki>
}}</nowiki>
Line 23: Line 23:
<li class="card w-64 flex-none rounded-md border border-gray-200 overflow-hidden pb-4 md:pb-16 pl-0 relative">
<li class="card w-64 flex-none rounded-md border border-gray-200 overflow-hidden pb-4 md:pb-16 pl-0 relative">
<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|}}} | <div class="w-full overflow-hidden">
{{#if: {{{image|}}}{{#pageimage:{{{link|{{{title|}}}}}}}}| <div class="w-full overflow-hidden">
[[file:{{{image}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full|]]
[[{{#if:{{{image|}}}|file:{{{image}}}|{{#pageimage:{{{link|{{{title|}}}}}} }}}}|x112px|link={{{link|{{{title|}}}}}}|class=w-full|]]
</div>
</div>
|
|

Revision as of 12:14, 29 September 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
    }}