Jump to content

Template:Severity Banner: Difference between revisions

From MAMA ALERT
Created page with "<noinclude> This template renders a colour-coded severity banner at the top of every MAMA ALERT card page. == Usage == <pre> {{Severity Banner|level=red|english=VAGINAL BLEEDING|khasi=Ka jingthehsnam}} </pre> == Parameters == * '''level''' β€” yellow, orange, or red (case-insensitive) * '''english''' β€” English title shown big * '''khasi''' β€” Khasi title shown below == Severity meaning == * Yellow β€” Watch closely, see ASHA, plan a sub-centre visit * Orange β€” Sa..."
Β 
No edit summary
Β 
Line 1: Line 1:
<noinclude>
<noinclude>
This template renders a colour-coded severity banner at the top of every MAMA ALERT card page.
Severity banner (page hero) for MAMA ALERT card pages.


== Usage ==
== Usage ==
<pre>
<pre>
{{Severity Banner|level=red|english=VAGINAL BLEEDING|khasi=Ka jingthehsnam}}
{{Severity Banner
| level Β  = red
| titleΒ  Β  = Vaginal Bleeding
| subtitle = Any bleeding, any month, any amount
| labelΒ  Β  = RED ALERT
}}
</pre>
</pre>


== Parameters ==
== Parameters ==
* '''level''' β€” yellow, orange, or red (case-insensitive)
* '''level''' β€” yellow, orange, or red (case-insensitive). Sets the colour.
* '''english''' β€” English title shown big
* '''title''' β€” main headline shown big.
* '''khasi''' β€” Khasi title shown below
* '''subtitle''' β€” optional one-line description below the title.
Β 
* '''label''' β€” small uppercase label above the title (e.g. "RED ALERT" in English, "JINGMA SAW" in Khasi). Defaults to <level> + " ALERT".
== Severity meaning ==
* Yellow β€” Watch closely, see ASHA, plan a sub-centre visit
* Orange β€” Same-day care needed at PHC/CHC
* Red β€” Emergency, call 108 immediately


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><div class="mama-banner mama-{{lc:{{{level|yellow}}}}}">
</noinclude><includeonly><div class="mama-banner mama-{{lc:{{{level|yellow}}}}}">
<div class="mama-banner-level">{{uc:{{{level|YELLOW}}}}} ALERT</div>
<div class="mama-banner-icon">{{#switch:{{lc:{{{level|yellow}}}}}|red=🚨|orange=⚑|#default=⚠️}}</div>
<div class="mama-banner-en">{{{english|}}}</div>
<div class="mama-banner-body">
<div class="mama-banner-kh">{{{khasi|}}}</div>
<div class="mama-banner-meta">{{{label|{{uc:{{{level|YELLOW}}}}} ALERT}}}{{#if:{{{card_no|}}}| Β· CARD {{{card_no}}}}}</div>
<div class="mama-banner-title">{{{title|}}}</div>{{#if:{{{subtitle|}}}|<div class="mama-banner-sub">{{{subtitle}}}</div>}}
</div>
</div></includeonly>
</div></includeonly>

Latest revision as of 12:29, 2 May 2026

Severity banner (page hero) for MAMA ALERT card pages.

Usage

{{Severity Banner
| level    = red
| title    = Vaginal Bleeding
| subtitle = Any bleeding, any month, any amount
| label    = RED ALERT
}}

Parameters

  • level β€” yellow, orange, or red (case-insensitive). Sets the colour.
  • title β€” main headline shown big.
  • subtitle β€” optional one-line description below the title.
  • label β€” small uppercase label above the title (e.g. "RED ALERT" in English, "JINGMA SAW" in Khasi). Defaults to <level> + " ALERT".