WikiProjectMed:OWID

From WikiProjectMed
Jump to navigation Jump to search

Online/offline hiding

The "ourworldindata" extension adds the class "mw-kartographer-container" to the iframe tag so that mwoffliner will remove the entire element making it visible online but not offline. The "onlyoffline" class, which has "display:none", is applied to the static version of the OWID map which hides it online, but mwoffliner removes that class which causes it to display offline.

How to use

Single

Share-with-schizophrenia.svg
<!-- Shows online and is interactive -->
<templatestyles src="Owid/styles.css"/><ourworldindatamirror>https://owidm.wmcloud.org/grapher/share-with-schizophrenia</ourworldindatamirror>
<!-- Shows offline and is still -->
{{onlyoffline|[[File:XXX|thumb|400px]]}}

Double

Number of people requiring interventions against neglected tropical diseases (NTDs), OWID.svg
Asthma prevalence, OWID.svg
<!-- Shows online and is interactive -->
<templatestyles src="Owid/styles.css"/><ourworldindatamirror>https://owidm.wmcloud.org/grapher/asthma-prevalence</ourworldindatamirror>
<templatestyles src="Owid/styles.css"/><ourworldindatamirror>https://owidm.wmcloud.org/grapher/interventions-ntds-sdgs</ourworldindatamirror>
<!-- Shows offline and is still -->
{{Flex columns
|1 ={{onlyoffline|[[File:Number of people requiring interventions against neglected tropical diseases (NTDs), OWID.svg|thumb|400px]]}}
|2 ={{onlyoffline|[[File:Asthma prevalence, OWID.svg|thumb|400px]]}}
}}

Test

1

World map of total confirmed COVID-19 cases per million people.png
World map of total confirmed COVID-19 deaths per million people by country.png

Total-cases-covid-19-who.png
Total-deaths-covid-19-who (1).png