Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Add dynamic links in MPI data pages #3643

Merged
merged 6 commits into from
Nov 28, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,15 @@ definitions:
The intensity of multidimensional poverty is calculated as the average share of indicators in which those counted as MPI poor are deprived.
description_key_flavor: |-
<% if flavor == "Current margin estimate" %>
This indicator is a current margin estimate (CME), meaning that it relies on the most recent survey data available for each country. Look for the harmonized over time (HOT) estimate to see trends over time.
This indicator is a current margin estimate (CME), meaning that it relies on the most recent survey data available for each country.{definitions.description_key_flavor_link}
<% elif flavor == "Harmonized over time" %>
This indicator is a harmonized over time (HOT) estimate. This harmonization seeks to make two or more MPI estimates comparable by aligning the indicator definitions in each survey. Look for the current margin estimate (CME) to see the most recent survey data.
This indicator is a harmonized over time (HOT) estimate. This harmonization seeks to make two or more MPI estimates comparable by aligning the indicator definitions in each survey.{definitions.description_key_flavor_link}
<%- endif -%>
description_key_flavor_link: |-
<% if flavor == "Current margin estimate" and area == "National" %>
Look for the [harmonized over time (HOT) estimate](<<hot_link>>) to see trends over time.
<% elif flavor == "Harmonized over time" and area == "National" %>
Look for the [current margin estimate (CME)](<<cme_link>>) to see the most recent survey data.
<%- endif -%>
description_key_indicator_start: |-
A person in a household is deprived in the indicator _<<indicator.lower()>>_ if
Expand Down Expand Up @@ -201,7 +207,7 @@ tables:
- "{definitions.description_key_assessments}"
- "{definitions.description_key_weights}"
- "{definitions.description_key_intensity}"
- "{definitions.description_key_flavor}"
- <% set cme_link = "https://ourworldindata.org/grapher/multidimensional-poverty-index-mpi" %> <% set hot_link = "https://ourworldindata.org/grapher/multidimensional-poverty-index-mpi-hot" %>"{definitions.description_key_flavor}"
paarriagadap marked this conversation as resolved.
Show resolved Hide resolved
presentation:
title_public: Multidimensional Poverty Index (MPI)
title_variant: "{definitions.title_variant_flavor}{definitions.title_variant_area}"
Expand All @@ -219,7 +225,7 @@ tables:
- "{definitions.description_key_multidimensional_poverty}"
- "{definitions.description_key_assessments}"
- "{definitions.description_key_weights}"
- "{definitions.description_key_flavor}"
- <% set cme_link = "https://ourworldindata.org/grapher/share-multi-poverty" %> <% set hot_link = "https://ourworldindata.org/grapher/share-of-population-multidimensionally-poor-hot" %>"{definitions.description_key_flavor}"
presentation:
title_public: Share of population living in multidimensional poverty
title_variant: "{definitions.title_variant_flavor}{definitions.title_variant_area}"
Expand All @@ -238,7 +244,7 @@ tables:
- "{definitions.description_key_assessments}"
- "{definitions.description_key_intensity}"
- "{definitions.description_key_weights}"
- "{definitions.description_key_flavor}"
- <% set cme_link = "https://ourworldindata.org/grapher/intensity-of-multidimensional-poverty" %> <% set hot_link = "https://ourworldindata.org/grapher/intensity-of-multidimensional-poverty-hot" %>"{definitions.description_key_flavor}"
presentation:
title_public: Intensity of multidimensional poverty
title_variant: "{definitions.title_variant_flavor}{definitions.title_variant_area}"
Expand Down