Template:Severity Banner: Difference between revisions
Appearance
Adminsuper (talk | contribs) 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..." Β |
Adminsuper (talk | contribs) No edit summary Β |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Severity banner (page hero) for MAMA ALERT card pages. | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Severity Banner|level=red| | {{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. | ||
* ''' | * '''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". | ||
* | |||
[[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- | <div class="mama-banner-body"> | ||
<div class="mama-banner- | <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".