Difference between revisions of "Template:Card"
From The Embassy of Good Science
m (Protected "Template:Card": MWBot ([Edit=Allow only administrators] (indefinite))) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div class="card"> | + | <includeonly>{{#ifeq:{{{link_type|}}}|external| |
− | <div class="card-header te-mw-link" data-href="{{{ | + | <div class="card"> |
− | <div class="card-icon">[[File:{{{ | + | <div class="card-header te-mw-link" data-href="{{{link|}}}" data-target="_ext"> |
+ | <div class="card-icon">[[File:{{{icon|}}}|frameless|60x60px|link={{{link}}}]]</div> | ||
</div> | </div> | ||
− | <div class="card-body te-mw-link" data-href="{{{ | + | <div class="card-body te-mw-link" data-href="{{{link|}}}" data-target="_ext"> |
− | <div class="card-title text-center"> | + | <div class="card-title text-center">[{{{link|}}} {{{title|}}}]</div> |
− | <div class="card-text text-center"> | + | <div class="card-text text-center">[{{{link|}}} {{{content|}}}]</div> |
</div> | </div> | ||
− | </div></includeonly> | + | </div>| |
+ | <div class="card"> | ||
+ | <div class="card-header te-mw-link" data-href="{{{link|}}}" data-target="_self"> | ||
+ | <div class="card-icon">[[File:{{{icon|}}}|frameless|60x60px|link={{{link|}}}]]</div> | ||
+ | </div> | ||
+ | <div class="card-body te-mw-link" data-href="{{{link|}}}" data-target="_self"> | ||
+ | <div class="card-title text-center">[[{{{link|}}}|{{{title|}}}]]</div> | ||
+ | <div class="card-text text-center">[[{{{link|}}}|{{{content|}}}]]</div> | ||
+ | </div> | ||
+ | </div> | ||
+ | }} | ||
+ | </includeonly> |