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) |
Add responsive styles for mobile display (via update-page on MediaWiki MCP Server) |
||
| (One intermediate revision 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: | {{#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 | {| class="infobox repair-service-infobox" | ||
! colspan="2" | ! colspan="2" class="repair-service-header" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
{{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}| | {{#if:{{{address|}}}{{{city|}}}{{{state|}}}{{{country|}}}| | ||
! | ! Location | ||
{{ | {{!}} {{#if:{{{address|}}}|{{{address|}}}<br>}}{{{city|}}}{{#if:{{{state|}}}|, {{{state|}}}}}<br>{{{country|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{phone|}}}| | {{#if:{{{phone|}}}| | ||
! | ! Phone | ||
{{!}} {{{phone|}}} | {{!}} {{{phone|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{email|}}}| | {{#if:{{{email|}}}| | ||
! | ! Email | ||
{{!}} {{{email|}}} | {{!}} {{{email|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{website|}}}| | {{#if:{{{website|}}}| | ||
! | ! Website | ||
{{!}} [{{{website|}}} Link] | {{!}} [{{{website|}}} Link] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{mail_in|}}}| | {{#if:{{{mail_in|}}}| | ||
! | ! Mail-in service | ||
{{!}} {{{mail_in|}}} | {{!}} {{{mail_in|}}} | ||
{{!}}- | {{!}}- | ||