Contact: Difference between revisions
From hmis
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
* '''Service fax''' – Fax number for the service. | * '''Service fax''' – Fax number for the service. | ||
* '''Service email''' – Contact email for the service. | * '''Service email''' – Contact email for the service. | ||
* ''' | * '''Note''' – Contact email for the service. | ||
=== Usage === | === Usage === | ||
| Line 16: | Line 16: | ||
<pre> | <pre> | ||
{{Contact | {{Contact | ||
| | | Name = Food Pantry | ||
| | | Description = Provides weekly food boxes for families in need | ||
| | | Phone = (503) 555-1111 | ||
| | | Fax = (503) 555-2222 | ||
| | | Email = pantry@example.org | ||
}} | }} | ||
{{Contact | {{Contact | ||
| | | Name = Health Clinic | ||
| | | Description = Free primary care and vaccinations | ||
| | | Phone = (503) 555-3333 | ||
| | | Email = clinic@example.org | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 35: | Line 34: | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#subobject: | <includeonly>{{#subobject: | ||
| Has service name={{{ | | Has service name={{{Name|}}} | ||
| Has service description={{{ | | Has service description={{{Description|}}} | ||
| Has service phone={{{ | | Has service phone={{{Phone|}}} | ||
| Has service fax={{{ | | Has service fax={{{Fax|}}} | ||
| Has service email={{{ | | Has service email={{{Email|}}} }} | ||
''' | '''Contact:''' {{{Name|}}} {{#if: {{{Description|}}} | - {{{Description|}}} | }} {{#if: {{{Phone|}}} | Phone: {{{Phone|}}} | }} {{#if: {{{Fax|}}} | Fax: {{{Fax|}}} | }} {{#if: {{{Email|}}} | Email: {{{Email|}}} | }}[[Category:Contact]]</includeonly> | ||
Latest revision as of 19:29, October 21, 2025
This template is used to create and display a **Service** subobject within a Facility page in Semantic MediaWiki. 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.
- Note – Contact email for the service.
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.
{{Contact
| Name = Food Pantry
| Description = Provides weekly food boxes for families in need
| Phone = (503) 555-1111
| Fax = (503) 555-2222
| Email = pantry@example.org
}}
{{Contact
| Name = Health Clinic
| Description = Free primary care and vaccinations
| Phone = (503) 555-3333
| Email = clinic@example.org
}}
This produces two contact subobjects attached to the facility, with properties that can be queried across all facilities.