{% macro userguide_link( model_id, userguide_page, model_name ) -%} {% set core_models = [ 'annual_water_yield', 'carbon', 'coastal_blue_carbon', 'coastal_blue_carbon_preprocessor', 'coastal_vulnerability', 'crop_production_percentile', 'crop_production_regression', 'delineateit', 'forest_carbon_edge_effect', 'habitat_quality', 'habitat_risk_assessment', 'ndr', 'pollination', 'recreation', 'routedem', 'scenario_generator_proximity', 'scenic_quality', 'sdr', 'seasonal_water_yield', 'stormwater', 'urban_cooling_model', 'urban_flood_risk_mitigation', 'urban_mental_health', 'urban_nature_access', 'wave_energy', 'wind_energy' ] %} {% set is_core_model = True if model_id in core_models else False %} {% if is_core_model and userguide_page %}
To learn more about the {{ model_name }} model, visit the InVEST User Guide (opens in new browser window).
{% elif userguide_page %}To learn more about the {{ model_name }} plugin, visit the {{ model_name }} documentation (opens in new browser window).
{% endif %} {%- endmacro %}