Template:Businesses: Difference between revisions

From WikiDemocracy
Jump to navigationJump to search
Created page with "<noinclude> This is the "Businesses" template. It should be called in the following format: <pre> {{Businesses |business_name= |address= |description= |photos= |contact= |link..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
|address=
|address=
|description=
|description=
|photos=
 
|contact=
|contact=
|link=
|link=
|reviews=
 
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Businesses|business_name=String|address=String|description=Text|photos=List (,) of File|contact=Text|link=URL|reviews=URL}}
{{#cargo_declare:_table=Businesses|business_name=String|address=String|description=Text|photos=List (,) of File|contact=Text|link=URL|reviews=URL}}
</noinclude><includeonly>{{#cargo_store:_table=Businesses|business_name={{{business_name|}}}|address={{{address|}}}|description={{{description|}}}|photos={{{photos|}}}|contact={{{contact|}}}|link={{{link|}}}|reviews={{{reviews|}}} }}{| class="wikitable"
</noinclude><includeonly>{{#seo:
! Name of Business
|title={{{business_name|}}}
| {{{business_name|}}}
|description={{{description|}}}
|-
|type=article
! Town or City w/ Address
}}{{#cargo_store:_table=Businesses|business_name={{{business_name|}}}|address={{{address|}}}|description={{{description|}}}|photos={{{photos|}}}|contact={{{contact|}}}|link={{{link|}}}|reviews={{{reviews|}}} }}
| {{{address|}}}
 
|-
<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;">
! Description of Business
 
| {{{description|}}}
  <!-- Header Section -->
|-
  <h2 style="margin: 0 0 10px 0; color: #222; font-size: 1.8em; border-bottom: none;">{{{business_name|}}}</h2>
! Photos
 
| {{#arraymap:{{{photos|}}}|,|x|[[x]]}}
  <!-- Description & Address -->
  <p style="line-height: 1.6; color: #444; margin-bottom: 15px;">{{{description|}}}</p>
 
  <p style="font-size: 0.95em; color: #555; margin-bottom: 8px;"><strong>📍 Address:</strong> {{{address|}}}</p>
 
  <!-- Contact Info (Renders only if provided) -->
  {{#if:{{{contact|}}} |
    <p style="font-size: 0.95em; color: #555; margin-bottom: 15px;"><strong>📞 Contact:</strong> {{{contact}}}</p>
  }}
 
 
  <!-- Clickable Action Buttons (Render only if links are provided) -->
<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; text-decoration: none;">🌐 Visit Website</span>]</span>
  }}
  {{#if:{{{reviews|}}} |  
    <span style="background: #f39c12; padding: 10px 16px; border-radius: 6px; font-weight: bold;">[{{{reviews}}} <span style="color: white; text-decoration: none;">⭐ Read Reviews</span>]</span>
  }}  
</div>
</div>


|-
! Contact Information
| {{{contact|}}}
|-
! Link to Website
| {{{link|}}}
|-
! Link to Reviews
| {{{reviews|}}}
|}


[[Category:Businesses]]
[[Category:Businesses]]
</includeonly>
</includeonly>