Jump to content

Template:Card Infobox: Difference between revisions

From MAMA ALERT
Created page with "<noinclude> Right-aligned infobox shown on every symptom card page. == Usage == <pre> {{Card Infobox | card_no = 18 | severity = red | khasi_name = Ka jingthehsnam | category = Bleeding | audio = Vaginal_Bleeding_Khasi.mp3 | call_108 = yes | pathway = ASHA → CHC → District Hospital | image = Card_18_Vaginal_Bleeding.png }} </pre> Category:Templates </noinclude><includeonly>{| class="mama-infobox mama-infobox-{{lc:{{{severity|yellow}}}}}" |..."
 
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
Right-aligned infobox shown on every symptom card page.
Right-aligned info panel for MAMA ALERT card pages. All visible labels accept
overrides so the same template can be used on Khasi pages with translated labels.


== Usage ==
== Usage (English) ==
<pre>
<pre>
{{Card Infobox
{{Card Infobox
| card_no    = 18
| card_no    = 18
| severity  = red
| severity  = red
| khasi_name = Ka jingthehsnam
| category  = Bleeding
| category  = Bleeding
| audio      = Vaginal_Bleeding_Khasi.mp3
| audio      = Vaginal_Bleeding_Khasi.mp3
| call_108  = yes
| call_108  = yes
| pathway    = ASHA → CHC → District Hospital
| pathway    = ASHA → 108 → CHC
| image      = Card_18_Vaginal_Bleeding.png
| image      = Card_18_Vaginal_Bleeding.png
}}
</pre>
== Usage (Khasi — labels overridden) ==
<pre>
{{Card Infobox
| card_no      = 18
| severity      = red
| category      = Theh snam
| call_108      = yes
| pathway      = ASHA → 108 → CHC
| label_card    = CARD
| label_cat    = Jait
| label_audio  = Audio
| label_108    = 108
| label_path    = Lynti iaid
| label_listen  = 🔊 Sngew ha Khasi
| label_yes_108 = 📞 Khot 108
| label_no_108  = Ym donkam
}}
}}
</pre>
</pre>
Line 19: Line 38:
</noinclude><includeonly>{| class="mama-infobox mama-infobox-{{lc:{{{severity|yellow}}}}}"
</noinclude><includeonly>{| class="mama-infobox mama-infobox-{{lc:{{{severity|yellow}}}}}"
|-
|-
! colspan="2" class="mama-infobox-title" | Card {{{card_no|—}}} · {{uc:{{{severity|YELLOW}}}}}
! colspan="2" class="mama-infobox-title" | {{{label_card|CARD}}} {{{card_no|—}}} · {{uc:{{{severity|YELLOW}}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
|-
|-
| colspan="2" style="text-align:center;padding:6px;" | [[File:{{{image}}}|240px|frameless]]
| colspan="2" class="mama-infobox-image" | [[File:{{{image}}}|240px|frameless]]
}}
}}
|-
|-
! Khasi name
! {{{label_cat|Category}}}
| ''{{{khasi_name|—}}}''
| {{{category|—}}}
|-
! Category
| {{{category|General}}}
{{#if:{{{audio|}}}|
{{#if:{{{audio|}}}|
|-
|-
! Audio guide
! {{{label_audio|Audio}}}
| [[:File:{{{audio}}}|🔊 Listen in Khasi]]
| [[:File:{{{audio}}}|{{{label_listen|🔊 Listen in Khasi}}}]]
}}
}}
|-
|-
! 108 emergency
! {{{label_108|108}}}
| {{#ifeq:{{lc:{{{call_108|no}}}}}|yes|<span class="mama-call-108">📞 CALL 108</span>|Not always required}}
| {{#ifeq:{{lc:{{{call_108|no}}}}}|yes|<span class="mama-call-108">{{{label_yes_108|📞 CALL 108}}}</span>|{{{label_no_108|Not always required}}}}}
|-
|-
! Referral pathway
! {{{label_path|Pathway}}}
| <small>{{{pathway|ASHA → Sub-Centre → PHC}}}</small>
| <small>{{{pathway|ASHA → Sub-Centre → PHC}}}</small>
|}</includeonly>
|}</includeonly>

Latest revision as of 12:30, 2 May 2026

Right-aligned info panel for MAMA ALERT card pages. All visible labels accept overrides so the same template can be used on Khasi pages with translated labels.

Usage (English)

{{Card Infobox
| card_no    = 18
| severity   = red
| category   = Bleeding
| audio      = Vaginal_Bleeding_Khasi.mp3
| call_108   = yes
| pathway    = ASHA → 108 → CHC
| image      = Card_18_Vaginal_Bleeding.png
}}

Usage (Khasi — labels overridden)

{{Card Infobox
| card_no       = 18
| severity      = red
| category      = Theh snam
| call_108      = yes
| pathway       = ASHA → 108 → CHC
| label_card    = CARD
| label_cat     = Jait
| label_audio   = Audio
| label_108     = 108
| label_path    = Lynti iaid
| label_listen  = 🔊 Sngew ha Khasi
| label_yes_108 = 📞 Khot 108
| label_no_108  = Ym donkam
}}