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>share-of-population-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>asthma-prevalence</ourworldindatamirror>
<templatestyles src="Owid/styles.css"/><ourworldindatamirror>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

2

Full url used

Error: Dataset name contains invalid characters. Error: Dataset name contains invalid characters.

Prevalence of anemia in women of reproductive age, OWID.svg
Prevalence of anemia in children, OWID.svg

use tag attribute to override chart to map

test use of compound attribute like country

Even as tag attribute this one causes a problem

3

Trouble shooting