Fix: Use positional parameters (leaflet format doesn't support named args) (via update-page on MediaWiki MCP Server)
Update template: use repair service name for header, add state abbreviation, show device types (via update-page on MediaWiki MCP Server)
Line 10: Line 10:
* '''5''' - Mail-in service
* '''5''' - Mail-in service
* '''6''' - City
* '''6''' - City
* '''7''' - State


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><strong>[[{{{1}}}|{{{3|{{{1}}}}}}]]</strong>{{#if:{{{6|}}}|<br>{{{6|}}}}}{{#if:{{{4|}}}|<br><small>{{{4|}}}</small>}}{{#ifeq:{{{5|}}}|Yes|<br>✓ Mail-in available}}</includeonly>
</noinclude><includeonly>[[{{{1}}}|{{{3|{{{1}}}}}}]]
{{{6|}}}{{#if:{{{7|}}}|, {{#switch:{{{7}}}
|Alabama=AL
|Alaska=AK
|Arizona=AZ
|Arkansas=AR
|California=CA
|Colorado=CO
|Connecticut=CT
|Delaware=DE
|Florida=FL
|Georgia=GA
|Hawaii=HI
|Idaho=ID
|Illinois=IL
|Indiana=IN
|Iowa=IA
|Kansas=KS
|Kentucky=KY
|Louisiana=LA
|Maine=ME
|Maryland=MD
|Massachusetts=MA
|Michigan=MI
|Minnesota=MN
|Mississippi=MS
|Missouri=MO
|Montana=MT
|Nebraska=NE
|Nevada=NV
|New Hampshire=NH
|New Jersey=NJ
|New Mexico=NM
|New York=NY
|North Carolina=NC
|North Dakota=ND
|Ohio=OH
|Oklahoma=OK
|Oregon=OR
|Pennsylvania=PA
|Rhode Island=RI
|South Carolina=SC
|South Dakota=SD
|Tennessee=TN
|Texas=TX
|Utah=UT
|Vermont=VT
|Virginia=VA
|Washington=WA
|West Virginia=WV
|Wisconsin=WI
|Wyoming=WY
|#default={{{7}}}
}}}}{{#if:{{{4|}}}|}
{{{4}}}}}{{#ifeq:{{{5|}}}|Yes|}
✓ Mail-in}}</includeonly>

Revision as of 14:32, 17 January 2026

This template formats the popup content for repair services on the map. Used by the #ask query with format=leaflet.

Parameters

Passed positionally from the semantic query:

  • 1 - Page name (from mainlabel)
  • 2 - Coordinates
  • 3 - Repair service name
  • 4 - Device types
  • 5 - Mail-in service
  • 6 - City
  • 7 - State
MediaWiki Appliance - Powered by TurnKey Linux