Difference between revisions of "Template:Card"
From The Embassy of Good Science
(Created page with "<includeonly><div class="card"> <div class="card-header"> <div class="card-icon">[[File:{{{1|}}}|frameless|60x60px|link={{{4}}}]]</div> </div> <div class="card-bod...") |
m (Protected "Template:Card": MWBot ([Edit=Allow only administrators] (indefinite))) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div class="card"> | + | <includeonly>{{#ifeq:{{{link_type|}}}|external| |
− | <div class="card-header"> | + | <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"> | + | <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> |