Template:Business Solar: Difference between revisions
From WikiDemocracy
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the " | This is the "Business Solar" template. | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{ | {{Business Solar | ||
|business_name= | |business_name= | ||
|category=Solar | |category=Solar | ||
| Line 11: | Line 13: | ||
|address= | |address= | ||
|description= | |description= | ||
|seo_description= | |||
|phone= | |phone= | ||
|email= | |email= | ||
| Line 16: | Line 19: | ||
|listing_year= | |listing_year= | ||
}} | }} | ||
</pre> | |||
Edit the page to see the template text. | |||
{{#cargo_declare: | |||
_table=Business_Solar | |||
|business_name=String | |||
|category=String | |||
|city=String | |||
|state=String | |||
|zip=String | |||
|address=String | |||
|description=Text | |||
|phone=String | |||
|email=String | |||
|link=URL | |||
|listing_year=Integer | |||
}} | }} | ||
</ | </noinclude><includeonly> | ||
{{# | |||
{{#seo: | |||
| | |title={{{business_name|}}} — Solar Business in {{{city|}}}, {{{state|}}} | ||
|description={{#if:{{{seo_description|}}}|{{{seo_description}}}|{{{description|}}}}} | |||
|keywords={{{business_name|}}}, {{{category|}}}, solar business, {{{city|}}}, {{{state|}}}, {{{zip|}}} | |||
|type=website | |||
}} | |||
{{#cargo_store: | |||
_table=Business_Solar | |||
|business_name={{{business_name|}}} | |||
|category={{{category|}}} | |||
|city={{{city|}}} | |||
|state={{{state|}}} | |||
|zip={{{zip|}}} | |||
|address={{{address|}}} | |||
|description={{{description|}}} | |description={{{description|}}} | ||
| | |phone={{{phone|}}} | ||
|email={{{email|}}} | |||
|link={{{link|}}} | |||
|listing_year={{{listing_year|}}} | |||
}} | |||
<div style="border:1px solid #e0e0e0; border-radius:8px; padding:24px; max-width:650px; box-shadow:0 4px 12px rgba(0,0,0,0.05); font-family:sans-serif; margin-bottom:20px; background-color:#ffffff;"> | |||
<h2 style="margin:0 0 10px 0; color:#222; font-size:1.8em; border-bottom:none;"> | |||
{{{business_name|}}} | |||
</h2> | |||
{{#if:{{{category|}}}| | |||
<p style="color:#177c8c; font-weight:bold; margin:0 0 15px 0;"> | |||
{{{category}}} | |||
</p> | |||
}} | |||
< | <p style="line-height:1.6; color:#444; margin-bottom:15px;"> | ||
{{{description|}}} | |||
</p> | |||
{{#if:{{{address|}}}| | |||
<p style="font-size:0.95em; color:#555; margin-bottom:8px;"> | |||
<strong>📍 Address:</strong> {{{address}}} | |||
</p> | |||
}} | |||
{{#if:{{{city|}}}| | |||
<p style="font-size:0.95em; color:#555; margin-bottom:8px;"> | |||
<strong>Location:</strong> {{{city}}}{{#if:{{{state|}}}|, {{{state}}}}} {{#if:{{{zip|}}}|{{{zip}}}}} | |||
</p> | |||
}} | |||
{{#if:{{{phone|}}}| | |||
<p class="plainlinks" style="font-size:0.95em; color:#555; margin-bottom:8px;"> | |||
<strong>📞 Phone:</strong> [tel:{{{phone}}} {{{phone}}}] | |||
</p> | |||
}} | |||
{{#if:{{{email|}}}| | |||
<div class="plainlinks" style="margin-top:20px; display:flex; gap:12px; flex-wrap:wrap;"> | |||
<strong>✉️ Email:</strong> [mailto:{{{email}}} {{{email}}}] | |||
</div> | |||
}} | |||
<div style="margin-top:20px; display:flex; gap:12px; flex-wrap:wrap;"> | |||
{{#if:{{{link|}}}| | |||
<span style="background:#17a2b8; padding:10px 16px; border-radius:6px; font-weight:bold;"> | |||
[{{{link}}} <span style="color:white;">🌐 Visit Website</span>] | |||
</span> | |||
}} | |||
{{#if:{{{address|}}}| | |||
<span style="background:#377d3c; padding:10px 16px; border-radius:6px; font-weight:bold;"> | |||
[https://www.google.com/maps/search/?api=1&query={{urlencode:{{{address}}}, {{{city|}}}, {{{state|}}} {{{zip|}}}}} <span style="color:white;">🗺️ Map and Directions</span>] | |||
</span> | |||
}} | |||
</div> | </div> | ||
</div> | </div> | ||
[[Category:Solar]] | [[Category:Solar businesses]] | ||
[[Category: | {{#if:{{{city|}}}|[[Category:Solar businesses in {{{city}}}{{#if:{{{state|}}}|, {{{state}}}}}]]}} | ||
{{#if:{{{state|}}}|[[Category:Solar businesses in {{{state}}}]]}} | |||
{{#if:{{{zip|}}}|[[Category:Solar businesses in ZIP code {{{zip}}}]]}} | |||
{{#if:{{{listing_year|}}}|[[Category:Solar business listings from {{{listing_year}}}]]}} | |||
</includeonly> | </includeonly> | ||