Template:BlueRed: Difference between revisions

Template page
m (RogerDodger moved page Template:StrengthsAndWeaknesses to Template:BlueRed: rename to be more succinct and broader scope)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1em;">
<includeonly><div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.5em; margin-top: 0.8rem; margin-bottom: 0.8rem;"><div>
<div>
<div class="bg-blue" style="font-weight: bold; text-align: center; padding: 0 0.5em 0.1em;">{{{blueLabel|Strengths}}}</div>
<div class="bg-blue" style="font-weight: bold; text-align: center; padding: 0 0.5em 0.1em;">{{{blueLabel|Strengths}}}</div>
{{{blue|}}}
{{{blue|}}}
Line 7: Line 6:
<div class="bg-red" style="font-weight: bold; text-align: center; padding: 0 0.5em 0.1em;">{{{redLabel|Weaknesses}}}</div>
<div class="bg-red" style="font-weight: bold; text-align: center; padding: 0 0.5em 0.1em;">{{{redLabel|Weaknesses}}}</div>
{{{red|}}}
{{{red|}}}
</div>
</div></div></includeonly><noinclude>{{documentation}}</noinclude>
</div>
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 06:28, 4 February 2024

This template is used to compare and contrast two sections, one with a blue label and the other with a red one. The most common usage is for a “Strengths and Weaknesses” section in a character overview.

On larger screens the sections appear side by side, but on smaller displays the layout collapses into a single column.

Warning: If you ever write "Good punishment" for "Strengths" or "Bad punishment" for "Weaknesses", you will be shot.

Usage

{{BlueRed
|blueLabel=Good
|blue={{Dotlist|
* Blue is good
* Blue is great
* Blue never do wrong}}
|redLabel=Bad
|red={{Dotlist|
* Red is bad
* Red is evil
* Red must go}}
}}

Parameters

Parameter Default Description
blueLabel Strengths Label for the blue section.
blue Contents for the blue section.
redLabel Weaknesses Label for the red section.
red Contents for the red section.

Example

Good
  • Blue is good
  • Blue is great
  • Blue never do wrong
Bad
  • Red is bad
  • Red is evil
  • Red must go

See also