Add warning message when coordinates are missing (via update-page on MediaWiki MCP Server)
Add responsive styles for mobile display (via update-page on MediaWiki MCP Server)
 
(3 intermediate revisions by the same user not shown)
Line 35: Line 35:
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>__NOCACHE__
</noinclude><includeonly>__NOCACHE__
<templatestyles src="Template:Repair service/styles.css" />
{{#default_form:Repair service}}
{{#default_form:Repair service}}
{{#if:{{{coordinates|}}}||<div style="background: #fee; border: 1px solid #c00; padding: 0.75em; margin-bottom: 1em; border-radius: 4px;">
{{#if:{{{coordinates|}}}||<div style="background: rgba(204, 0, 0, 0.15); border: 2px solid #c44; padding: 0.75em; margin-bottom: 1em; border-radius: 4px;">
'''⚠️ Missing coordinates''' — This repair service will not appear on the [[Repair Services Map]]. Please add coordinates (latitude, longitude) to display it on the map. You can get coordinates from [https://www.latlong.net/ LatLong.net] or by right-clicking on Google Maps.
'''⚠️ Missing coordinates''' — This repair service will not appear on the [[Repair Services Map]]. Please add coordinates (latitude, longitude) to display it on the map. You can get coordinates from [https://www.latlong.net/ LatLong.net] or by right-clicking on Google Maps.
</div>}}
</div>}}
{| class="infobox" style="width: 300px; border: 1px solid #aaa; padding: 0.5em; margin: 0 0 1em 1em; float: right; background: #f9f9f9;"
{| class="infobox repair-service-infobox"
! colspan="2" style="background: #ccc; text-align: center; font-size: 1.2em; padding: 0.5em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" class="repair-service-header" | {{{name|{{PAGENAME}}}}}
|-
|-
{{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}|
{{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}|
! style="text-align: right; padding-right: 0.5em;" {{!}} Location
! Location
{{!}} {{{address|}}}<br>{{{city|}}}, {{{state|}}}<br>{{{country|}}}
{{!}} {{#if:{{{address|}}}|{{{address|}}}<br>}}{{{city|}}}{{#if:{{{state|}}}|, {{{state|}}}}}<br>{{{country|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{phone|}}}|
{{#if:{{{phone|}}}|
! style="text-align: right; padding-right: 0.5em;" {{!}} Phone
! Phone
{{!}} {{{phone|}}}
{{!}} {{{phone|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{email|}}}|
{{#if:{{{email|}}}|
! style="text-align: right; padding-right: 0.5em;" {{!}} Email
! Email
{{!}} {{{email|}}}
{{!}} {{{email|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{website|}}}|
{{#if:{{{website|}}}|
! style="text-align: right; padding-right: 0.5em;" {{!}} Website
! Website
{{!}} [{{{website|}}} Link]
{{!}} [{{{website|}}} Link]
{{!}}-
{{!}}-
}}
}}
{{#if:{{{mail_in|}}}|
{{#if:{{{mail_in|}}}|
! style="text-align: right; padding-right: 0.5em;" {{!}} Mail-in service
! Mail-in service
{{!}} {{{mail_in|}}}
{{!}} {{{mail_in|}}}
{{!}}-
{{!}}-
Line 71: Line 72:
{{#if:{{{device_types|}}}|
{{#if:{{{device_types|}}}|
== Devices Repaired ==
== Devices Repaired ==
{{#arraymap:{{{device_types|}}}|,|x|[[Category:x (repair)]][[x]]|, }}
{{#arraymap:{{{device_types|}}}|,|x|[[x]]|, }}
}}
}}


{{#if:{{{service_types|}}}|
{{#if:{{{service_types|}}}|
== Services Offered ==
== Services Offered ==
{{#arraymap:{{{service_types|}}}|,|x|[[Category:x (service)]][[x]]|, }}
{{#arraymap:{{{service_types|}}}|,|x|[[x]]|, }}
}}
}}


Line 90: Line 91:


{{#set:
{{#set:
  Has name={{{name|{{PAGENAME}}}}}
  Repair service name={{{name|{{PAGENAME}}}}}
  |Has address={{{address|}}}
  |Address={{{address|}}}
  |Has city={{{city|}}}
  |City={{{city|}}}
  |Has state={{{state|}}}
  |State={{{state|}}}
  |Has country={{{country|}}}
  |Country={{{country|}}}
  |Has coordinates={{{coordinates|}}}
  |Coordinates={{{coordinates|}}}
  |Has phone={{{phone|}}}
  |Phone={{{phone|}}}
  |Has email={{{email|}}}
  |Email={{{email|}}}
  |Has website={{{website|}}}
  |Website={{{website|}}}
  |Has device types={{{device_types|}}}
  |Mail-in service={{{mail_in|}}}
|Has service types={{{service_types|}}}
|Has 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>

Latest revision as of 05:01, 3 February 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 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.
MediaWiki Appliance - Powered by TurnKey Linux