Template:FlexCard: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 7: Line 7:
</noinclude><includeonly><!--
</noinclude><includeonly><!--
-->{{#ifeq:{{{1|}}}|begin|<div class="flexcardcontainer" {{#ifeq:{{{2|}}}|container|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>
-->{{#ifeq:{{{1|}}}|begin|<div class="flexcardcontainer" {{#ifeq:{{{2|}}}|container|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>
<div class="flexcard {{#ifeq:{{{2|}}}|card|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>}}<!--
<div class="flexcard" {{#ifeq:{{{2|}}}|card|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>}}<!--


-->{{#ifeq:{{{1|}}}|div|</div><div class="flexcardcontainer">
-->{{#ifeq:{{{1|}}}|div|</div><div class="flexcardcontainer">
<div class="flexcard {{#ifeq:{{{2|}}}|card|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>}}<!--
<div class="flexcard" {{#ifeq:{{{2|}}}|card|style="background-color:var(--color-surface-4);box-shadow:var(--box-shadow-card);padding:.8em;"}}>}}<!--


-->{{#ifeq:{{{1|}}}|stop|</div></div>}}</includeonly>
-->{{#ifeq:{{{1|}}}|stop|</div></div>}}</includeonly>

Revision as of 19:04, 16 June 2023

  • Param 1: begin / div / stop
  • Param 2: optional; card / container; decides which element should have card background

{{FlexCard|begin|Yes}}