Facility: Difference between revisions
From hmis
No edit summary |
No edit summary |
||
| (5 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. | ||
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. | It sets semantic properties for use in queries and provides a structured layout of facility details. | ||
| Line 56: | 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.