Template:Businesses: Difference between revisions

From WikiDemocracy
Jump to navigationJump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
|address=
|address=
|description=
|description=
|photos=
 
|contact=
|contact=
|link=
|link=
|reviews=
 
}}
}}
</pre>
</pre>
Line 36: Line 36:
   }}
   }}


   <!-- Photos Array (Renders only if provided) -->
 
   {{#if:{{{photos|}}} |
   <!-- Clickable Action Buttons (Render only if links are provided) -->
     <div style="margin-top: 15px; margin-bottom: 15px;">
<div style="margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap;">  
      {{#arraymap:{{{photos|}}}|,|x|[[x|200px|class=photo-thumb]]}}
   {{#if:{{{link|}}} |  
    </div>
     <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>


  <!-- Clickable Action Buttons (Render only if links are provided) -->
  <div style="margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap;">
    {{#if:{{{link|}}} |
      <a href="{{{link}}}" target="_blank" rel="noopener noreferrer" style="background: #17a2b8; color: white; padding: 10px 16px; text-decoration: none; border-radius: 6px; font-weight: bold;">🌐 Visit Website</a>
    }}
    {{#if:{{{reviews|}}} |
      <a href="{{{reviews}}}" target="_blank" rel="noopener noreferrer" style="background: #f39c12; color: white; padding: 10px 16px; text-decoration: none; border-radius: 6px; font-weight: bold;">⭐ Read Reviews</a>
    }}
  </div>
</div>


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