Actions

Template

Service: Difference between revisions

From hmis

No edit summary
No edit summary
Line 1: Line 1:
<noinclude>This template is used to create and display a **Service** subobject within a Facility page in Semantic MediaWiki.   
<noinclude>This template is used to create and display a '''Service''' subobject within a Resource page in Semantic MediaWiki.   
It sets semantic properties for each service so they can be queried independently (e.g., all facilities offering "Legal Aid").
It sets semantic properties for each '''service''' so they can be queried independently (e.g., all facilities offering "Legal Aid").
 
=== Parameters ===
* '''Service name''' – The name of the service (e.g., `Food Pantry`, `Health Clinic`).
* '''Service description''' – A short description of what the service provides.
* '''Service phone''' – Phone number for the service.
* '''Service fax''' – Fax number for the service.
* '''Service email''' – Contact email for the service.


=== Usage ===
=== Usage ===
Line 14: Line 7:


<pre>
<pre>
{{Service
{{Service:  Kerr_Bikes_Naito
  | Service name = Food Pantry
|Group = Community And Other Support Services
  | Service description = Provides weekly food boxes for families in need
|Category = Disability Support Services
  | Service phone = (503) 555-1111
|Resource = TAlbertina Kerr
  | Service fax = (503) 555-2222
  |Service = Kerr Bikes Naito
  | Service email = pantry@example.org
|Address = 1020 SW Naito Parkway
|City = Portland
|State = OR
  |Zip = 97201
  |Phone = (503)-808-9955
  |Time = Monday-Friday, 9 a.m.–5 p.m., Saturday and Sunday, 10 a.m.–5 p.m.
  |Note = Tom McCall Waterpark Park
}}
}}


{{Service
{{Service: Service Name
  | Service name = Health Clinic
|Group = The Grouping of services
  | Service description = Free primary care and vaccinations
|Category = The Category of service
  | Service phone = (503) 555-3333
|Resource = The Resource of the service
  | Service email = clinic@example.org
  |Service = The service name
}}
|Address = Address
  |Locator = Room or Box No
|City = City
|State = State
|Zip = Zip
|Phone = Phone
|Time = Times open
  |URL = URL
  |Email = email
|Note = note
</pre>
</pre>


This produces two service subobjects attached to the facility, with properties that can be queried across all facilities.
This produces two service subobjects attached to the facility, with properties that can be queried across all facilities.
</noinclude>
</noinclude>
<includeonly>{{#subobject:  
<includeonly>
| Has service name={{{Service name|}}}
{{#if: {{{Group|}}} | '''Group: ''' [[Has group::{{{Group|}}}]] </br>| }}
| Has service description={{{Service description|}}}
{{#if: {{{Category|}}} | '''Group: ''' [[Has category::{{{Category|}}}]] </br>| }}
| Has service phone={{{Service phone|}}}
{{#if: {{{Resource|}}} | '''Group: ''' [[Has resource::{{{Resource|}}}]] </br>| }}
| Has service fax={{{Service fax|}}}
{{#if: {{{Service|}}} | '''Group: ''' [[Has service::{{{Service|}}}]] </br>| }}
| Has service email={{{Service email|}}} }}
{{#if: {{{Address|}}} |</br>[[Has group::{{{Address|}}}]]| }}
'''Service:''' {{{Service name|}}} - {{{Service description|}}} : {{#if: {{{Service phone|}}} | Phone: {{{Service phone|}}} | }} {{#if: {{{Service fax|}}} | Fax: {{{Service fax|}}} | }} {{#if: {{{Service email|}}} | Email: {{{Service email|}}} | }}</includeonly>
{{#if: {{{Locator|}}} |</br>[[Has group::{{{Locator|}}}]]| }}
{{#if: {{{City|}}} |</br>[[Has city::{{{City|}}}]]| }}
{{#if: {{{State|}}} |, [[Has state::{{{State|}}}]]| }}
{{#if: {{{Zip|}}} |[[Has zip::{{{Zip|}}}]]}}
{{#if: {{{Phone|}}} |</br>[[Has phone::{{{Phone|}}}]]| }}
{{#if: {{{Time|}}} |</br>[[Has time::{{{Time|}}}]]| }}
{{#if: {{{Email|}}} |</br>[Has email::{{{Email|}}}]]| }}
{{#if: {{{Note|}}} |<br>[[Has note::{{{Note|}}}]]| }}</includeonly>

Revision as of 19:31, October 4, 2025

This template is used to create and display a Service subobject within a Resource page in Semantic MediaWiki. It sets semantic properties for each service so they can be queried independently (e.g., all facilities offering "Legal Aid").

Usage

To use this template, add it inside a facility page. Each call to the template creates a new **subobject** tied to the facility, representing one service.

{{Service:  Kerr_Bikes_Naito
 |Group = Community And Other Support Services
 |Category = Disability Support Services
 |Resource = TAlbertina Kerr
 |Service = Kerr Bikes Naito
 |Address = 1020 SW Naito Parkway
 |City = Portland
 |State = OR
 |Zip = 97201
 |Phone = (503)-808-9955
 |Time = Monday-Friday, 9 a.m.–5 p.m., Saturday and Sunday, 10 a.m.–5 p.m.
 |Note = Tom McCall Waterpark Park
}}

{{Service: Service Name
 |Group = The Grouping of services
 |Category = The Category of service
 |Resource = The Resource of the service
 |Service = The service name
 |Address = Address
 |Locator = Room or Box No
 |City = City
 |State = State
 |Zip = Zip
 |Phone = Phone
 |Time = Times open
 |URL = URL
 |Email = email
 |Note = note

This produces two service subobjects attached to the facility, with properties that can be queried across all facilities.