Facility: Difference between revisions
From hmis
No edit summary |
No edit summary |
||
| (11 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. | ||
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__ | ||
{{#default_form:Facility}} | {{#default_form:Facility}} | ||
'''Description:''' [[Has description::{{{Has description|}}}]] | '''Description: ''' [[Has description::{{{Has description|}}}]] | ||
'''Services:''' {{#arraymap:{{{Has services|}}}|,|x|[[Has service::x]]}} | '''Services: ''' {{#arraymap:{{{Has services|}}}|,|x|[[Has service::x]]}} | ||
{{#if: {{{Has provider|}}} | '''Provider:''' [[Has provider::{{{Has provider|}}}]] </br>| }} | {{#if: {{{Has provider|}}} | '''Provider: ''' [[Has provider::{{{Has provider|}}}]] </br>| }} | ||
{{#if: {{{Has funding|}}} | '''Funding:''' {{#arraymap:{{{Has funding|}}}|,|x|[[Has funding::x]]}} </br>| }} | {{#if: {{{Has funding|}}} | '''Funding: ''' {{#arraymap:{{{Has funding|}}}|,|x|[[Has funding::x]]}} </br>| }} | ||
'''Address:''' [[Has address::{{{Has address|}}}]] | '''Address:''' [[Has address::{{{Has address|}}}]] | ||
{{#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|}}}]] | {{#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|}}}]] | |{{#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|}}}]] | |||
|}} | |||
{{#if: {{{Email|}}} | '''email:''' [[Has email::{{{Email|}}}]] | |||
|}} | |||
{{#if: {{{URL|}}} | '''URL:''' [[Has URL::{{{URL|}}}]]|}} | |||
|{{#if: {{{Has shelter|}}} | | |{{#if: {{{Has shelter|}}} | | ||
'''Shelter:''' [[Has shelter::{{{Has shelter|}}}]] | '''Shelter: ''' [[Has shelter::{{{Has shelter|}}}]] | ||
'''Type:''' {{#arraymap:{{{Has shelter type|}}}|,|x|[[Has shelter type::x]]}} | '''Type: ''' {{#arraymap:{{{Has shelter type|}}}|,|x|[[Has shelter type::x]]}} | ||
'''For:''' {{#arraymap:{{{Has shelter for|}}}|,|x|[[Has shelter for::x]]}} | '''For: ''' {{#arraymap:{{{Has shelter for|}}}|,|x|[[Has shelter for::x]]}} | ||
| }} | | }} | ||
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.