Template:Repair service map popup: Difference between revisions

Fix template - remove all newlines from includeonly to fix Leaflet popup rendering (via update-page on MediaWiki MCP Server)
Show descriptive name as plain bold text (header already provides link) (via update-page on MediaWiki MCP Server)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template formats the popup content for repair services on the map. Used by the #ask query with format=leaflet.
This template formats the popup content for repair services on the map. Used by the #ask query with format=leaflet and named args=yes.
 
The Leaflet header automatically links to the page, so we show the descriptive name as plain text.


== Parameters ==
== Parameters ==
Passed positionally from the semantic query:
With named args, parameters are passed by property name:
* '''1''' - Page name (from mainlabel)
* '''1''' - Page name (from mainlabel)
* '''2''' - Coordinates
* '''Repair service name''' - Descriptive business name (displayed)
* '''3''' - Repair service name
* '''City''' - City
* '''4''' - Device types
* '''State''' - State/province
* '''5''' - Mail-in service
* '''Mail-in service''' - Yes/No
* '''6''' - City
* '''Device types''' - Types of devices repaired
* '''7''' - State


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>'''[[{{{1}}}|{{{3|{{{1}}}}}}]]'''{{#if:{{{6|}}}|<br/>{{{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}}}}}}}{{#ifeq:{{{5|}}}|Yes|<br/>✉ Mail-in}}{{#if:{{{4|}}}|<br/><small>{{{4}}}</small>}}</includeonly>
</noinclude><includeonly>'''{{{Repair service name|{{{1}}}}}}'''{{#if:{{{City|}}}|<br/>{{{City}}}}}{{#if:{{{State|}}}|, {{#switch:{{{State}}}|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={{{State}}}}}}}{{#ifeq:{{{Mail-in service|}}}|Yes|<br/>✉ Mail-in}}{{#if:{{{Device types|}}}|<br/><small>{{{Device types}}}</small>}}</includeonly>
MediaWiki Appliance - Powered by TurnKey Linux