Template:Repair service: Difference between revisions
Rename properties to drop "Has" prefix (via update-page on MediaWiki MCP Server) |
Use #arraymap to store device_types and service_types as separate values (via update-page on MediaWiki MCP Server) |
||
| Line 71: | Line 71: | ||
{{#if:{{{device_types|}}}| | {{#if:{{{device_types|}}}| | ||
== Devices Repaired == | == Devices Repaired == | ||
{{#arraymap:{{{device_types|}}}|,|x| | {{#arraymap:{{{device_types|}}}|,|x|[[x]]|, }} | ||
}} | }} | ||
{{#if:{{{service_types|}}}| | {{#if:{{{service_types|}}}| | ||
== Services Offered == | == Services Offered == | ||
{{#arraymap:{{{service_types|}}}|,|x| | {{#arraymap:{{{service_types|}}}|,|x|[[x]]|, }} | ||
}} | }} | ||
| Line 99: | Line 99: | ||
|Email={{{email|}}} | |Email={{{email|}}} | ||
|Website={{{website|}}} | |Website={{{website|}}} | ||
|Mail-in service={{{mail_in|}}} | |Mail-in service={{{mail_in|}}} | ||
}} | }} | ||
{{#arraymap:{{{device_types|}}}|,|x|{{#set:Device types=x}}|}} | |||
{{#arraymap:{{{service_types|}}}|,|x|{{#set:Service types=x}}|}} | |||
[[Category:Repair services]]{{#if:{{{coordinates|}}}||[[Category:Repair services needing coordinates]]}} | [[Category:Repair services]]{{#if:{{{coordinates|}}}||[[Category:Repair services needing coordinates]]}} | ||
</includeonly> | </includeonly> | ||
Revision as of 18:05, 13 January 2026
This template is used to create repair service listings. Use Form:Repair service to create or edit entries.
Parameters
| Parameter | Description |
|---|---|
| name | Business or individual name |
| address | Street address |
| city | City |
| state | State/province/region |
| country | Country |
| coordinates | Latitude, longitude for map display |
| phone | Phone number |
| Email address | |
| website | Website URL |
| device_types | Types of devices repaired (multi-value) |
| service_types | Types of services offered (multi-value) |
| mail_in | Whether mail-in service is available (Yes/No) |
| notes | Additional notes, specialties, hours, etc. |