Template:Repair service: Difference between revisions

Use #arraymap to store device_types and service_types as separate values (via update-page on MediaWiki MCP Server)
Update infobox and warning box styles for dark mode compatibility (via update-page on MediaWiki MCP Server)
Line 36: Line 36:
</noinclude><includeonly>__NOCACHE__
</noinclude><includeonly>__NOCACHE__
{{#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" style="width: 300px; border: 1px solid rgba(128, 128, 128, 0.5); padding: 0.5em; margin: 0 0 1em 1em; float: right; background: rgba(128, 128, 128, 0.1);"
! colspan="2" style="background: #ccc; text-align: center; font-size: 1.2em; padding: 0.5em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background: rgba(128, 128, 128, 0.25); text-align: center; font-size: 1.2em; padding: 0.5em;" | {{{name|{{PAGENAME}}}}}
|-
|-
{{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}|
{{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}|
MediaWiki Appliance - Powered by TurnKey Linux