imported>Forumtestuser 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}}}|{{#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:{{{color|#0099FF}}}" 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 12:24, 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 }}