Actions

Template

Service: Difference between revisions

From hmis

No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#subobject:  
<noinclude>This template is used to create and display a '''Service''' subobject within a Resource page in Semantic MediaWiki. 
  | Has service name={{{Service name|}}}
It sets semantic properties for each '''service''' so they can be queried independently (e.g., all facilities offering "Legal Aid").
| Has service description={{{Service description|}}}
 
| Has service phone={{{Service phone|}}}
=== Usage ===
| Has service fax={{{Service fax|}}}
To use this template, add it inside a facility page. 
| Has service email={{{Service email|}}} }}'''Service:''' {{{Service name|}}} - {{{Service description|}}} : {{#if: {{{Service phone|}}} | Phone: {{{Service phone|}}} | }} {{#if: {{{Service fax|}}} | Fax: {{{Service fax|}}} | }} {{#if: {{{Service email|}}} | Email: {{{Service email|}}} | }}</includeonly>
Each call to the template creates a new **subobject** tied to the facility, representing one service. 
 
<pre>
{{Service:  Kerr_Bikes_Naito
|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
  |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>
 
This produces '''Service''' subobjects attached to the '''Resource''', with properties that can be queried across all facilities.
</noinclude>
<includeonly>__NOEDITSECTION__
{{#if: {{{Service|}}} | '''[[Has service::{{{Service|}}}]]'''| }}{{#if: {{{Address|}}} |</br>[[Has address::{{{Address|}}}]]| }}{{#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: {{{URL|}}} |</br>[[Has url::{{{URL|}}}]]| }}{{#if: {{{Email|}}} |</br>[[Has email::{{{Email|}}}]]| }}{{#if: {{{Note|}}} |<br>[[Has note::{{{Note|}}}]]| }}[[Category:Service]]</includeonly>

Latest revision as of 21:00, October 20, 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
 |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
 |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 Service subobjects attached to the Resource, with properties that can be queried across all facilities.