Difference between revisions of "Template:Card"

From The Embassy of Good Science
(MWBot)
Line 1: Line 1:
<includeonly><div class="card">
+
<includeonly>{{#ifeq:{{{link_type|}}}|external|
   <div class="card-header te-mw-link" data-href="{{{4|}}}" data-target="_self">
+
<div class="card">
       <div class="card-icon">[[File:{{{1|}}}|frameless|60x60px|link={{{4}}}]]</div>
+
   <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>
   <div class="card-body te-mw-link" data-href="{{{4|}}}" data-target="_self">
+
   <div class="card-body te-mw-link" data-href="{{{link|}}}" data-target="_self">
     <div class="card-title text-center">[[{{{4|}}}|{{{2|}}}]]</div>
+
     <div class="card-title text-center">[{{{link|}}} {{{title|}}}]</div>
     <div class="card-text text-center">[[{{{4|}}}|{{{3|}}}]]</div>
+
     <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>

Revision as of 14:04, 28 October 2020

Cookies help us deliver our services. By using our services, you agree to our use of cookies.
5.1.6