Template:FlexCard: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
* Param 2: optional; card / container; decides which element should have card background
* Param 2: optional; card / container; decides which element should have card background


<code><nowiki>{{FlexCard|begin|Yes}}</nowiki></code>
<code><nowiki>{{FlexCard|begin|card}}</nowiki></code> or <code><nowiki>{{FlexCard|begin|container}}</nowiki></code>


</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="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>

Latest revision as of 19:07, 16 June 2023

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

{{FlexCard|begin|card}} or {{FlexCard|begin|container}}