Actions

Template

Facility: Difference between revisions

From hmis

No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>This template is used to display and annotate information about a **Facility** in Semantic MediaWiki. 
{{#template_params:Has address (label=Address;property=Has address)|Has services (label=Services;list;property=Has service)|Has shelter (label=Shelter;property=Has shelter)|Has Shelter for (label=For;property=Has shelter for)|Has shelter type (label=Type;property=Has shelter type)|Has provider (label=Provider;property=Has provider)|URL (label=URL;property=Has URL)|Phone (label=Phone;property=Has phone)|Fax (label=Fax;property=Has fax)|Email (label=email;property=Has email)|Has description (label=Description;property=Has description)|Has character (label=Character;property=Has character)|Has funding (label=Funding;list;property=Has funding)|Has note (label=Note;list;property=Has note)|Has referral (label=Referral;list;property=Has referral)}}
It sets semantic properties for use in queries and provides a structured layout of facility details.
 
=== Parameters ===
* '''Has description''' – Free text description of the facility.
* '''Has services''' – Comma-separated list of services provided (e.g., `Service1, Service2`).
* '''Has provider''' – The organization or entity providing the services.
* '''Has funding''' – Comma-separated list of funding sources.
* '''Has address''' – Street address or location of the facility.
* '''Has note''' – Additional notes.
* '''Has referral''' – Referral information (if applicable).
* '''Has character''' – Icon identifier used for map display (e.g., `hospital`, `school`).
* '''Coords''' – Explicit coordinates (`lat, long`). If omitted, coordinates will be geocoded from the address.
* '''Phone''' – Facility phone number.
* '''Fax''' – Facility fax number.
* '''Email''' – Contact email.
* '''URL''' – Website URL.
* '''Has shelter''' – Boolean / yes-no indicating if the facility provides shelter.
* '''Has shelter type''' – Comma-separated list of shelter types (e.g., `emergency, transitional`).
* '''Has shelter for''' – Comma-separated list of populations the shelter serves (e.g., `families, individuals`).
 
=== Usage ===
To use this template, include it on a facility page with the desired parameters, for example:
 
<pre>
{{Facility
| Has description = Community health clinic
| Has services = Primary Care, Mental Health
| Has provider = HealthPartners
| Has funding = State Grant, Federal Grant
| Has address = 123 Main St, Portland, OR
| Phone = (503) 555-1212
| Email = info@example.org
| URL = https://www.example.org
| Has shelter = Yes
| Has shelter type = Emergency, Transitional
| Has shelter for = Families, Youth
}}
</pre>
 
This will create a structured entry that can be queried with Semantic MediaWiki and displayed on maps.
 
</noinclude><includeonly>
</noinclude><includeonly>
__NOEDITSECTION__
__NOEDITSECTION__
Line 14: Line 54:


{{#if: {{{Has note|}}} | '''Notes: ''' [[Has note::{{{Has note|}}}]] </br>|}}
{{#if: {{{Has note|}}} | '''Notes: ''' [[Has note::{{{Has note|}}}]] </br>|}}
{{#if: {{{Has referral|}}} | '''Referral: '''[[Has referral::{{{Has referral|}}}]] | }} {{#set: Has character={{{Has character|}}} }}
{{#if: {{{Has referral|}}} | '''Referral: '''[[Has referral::{{{Has referral|}}}]]</br> | }} {{#set: Has character={{{Has character|}}} }}


{{#ifeq: {{{Has character|}}} | Closed | <div style="font-size: 400%; text-align: center;"> Closed </div> |
{{#if: {{{Coords|}}}  
{{#if: {{{Coords|}}}  
| {{#set: Has coordinates={{{Coords|}}} }}
| {{#set: Has coordinates={{{Coords|}}} }}
{{#display_map: {{{Coords|}}} |icon={{{Has character|}}}.svg}}
{{#display_map: {{{Coords|}}} |icon={{{Has character|}}}.svg}}
| {{#set: Has coordinates={{#Geocode:{{{Has address|}}}}}}}
| {{#set: Has coordinates={{#Geocode:{{{Has address|}}}}}}}
{{#display_map: {{#Geocode:{{{Has address|}}}}} |icon={{{Has character|}}}.svg}} }}
{{#display_map: {{#Geocode:{{{Has address|}}}}} |icon={{{Has character|}}}32.svg}} }}
 
}}


{|
{|
|{{#if: {{{Phone|}}} | '''Phone: ''' [[Has phone::{{{Phone|}}}]]</br>|}}
|{{#if: {{{Phone|}}} | '''Phone: ''' [[Has phone::{{{Phone|}}}]]</br>|}}{{#if: {{{Fax|}}} | '''Fax: ''' [[Has fax::{{{Fax|}}}]]</br>|}}{{#if: {{{Email|}}} | '''email: ''' [[Has email::{{{Email|}}}]]</br>|}}{{#if: {{{URL|}}} | '''URL: ''' [[Has URL::{{{URL|}}}]]|}}
{{#if: {{{Fax|}}} | '''Fax: ''' [[Has fax::{{{Fax|}}}]]</br>|}}
{{#if: {{{Email|}}} | '''email: ''' [[Has email::{{{Email|}}}]]</br>|}}
{{#if: {{{URL|}}} | '''URL: ''' [[Has URL::{{{URL|}}}]]|}}
 
|{{#if: {{{Has shelter|}}} |  
|{{#if: {{{Has shelter|}}} |  



Latest revision as of 14:20, October 22, 2025

This template is used to display and annotate information about a **Facility** in Semantic MediaWiki. It sets semantic properties for use in queries and provides a structured layout of facility details.

Parameters

  • Has description – Free text description of the facility.
  • Has services – Comma-separated list of services provided (e.g., `Service1, Service2`).
  • Has provider – The organization or entity providing the services.
  • Has funding – Comma-separated list of funding sources.
  • Has address – Street address or location of the facility.
  • Has note – Additional notes.
  • Has referral – Referral information (if applicable).
  • Has character – Icon identifier used for map display (e.g., `hospital`, `school`).
  • Coords – Explicit coordinates (`lat, long`). If omitted, coordinates will be geocoded from the address.
  • Phone – Facility phone number.
  • Fax – Facility fax number.
  • Email – Contact email.
  • URL – Website URL.
  • Has shelter – Boolean / yes-no indicating if the facility provides shelter.
  • Has shelter type – Comma-separated list of shelter types (e.g., `emergency, transitional`).
  • Has shelter for – Comma-separated list of populations the shelter serves (e.g., `families, individuals`).

Usage

To use this template, include it on a facility page with the desired parameters, for example:

{{Facility
 | Has description = Community health clinic
 | Has services = Primary Care, Mental Health
 | Has provider = HealthPartners
 | Has funding = State Grant, Federal Grant
 | Has address = 123 Main St, Portland, OR
 | Phone = (503) 555-1212
 | Email = info@example.org
 | URL = https://www.example.org
 | Has shelter = Yes
 | Has shelter type = Emergency, Transitional
 | Has shelter for = Families, Youth
}}

This will create a structured entry that can be queried with Semantic MediaWiki and displayed on maps.