Template:Vehicle Info: Difference between revisions

From vehicle Rental wiki demo

CREATE VEHICLE TEMPLATE
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="border: 2px solid #2c3e50; border-radius: 10px; padding: 15px; margin: 15px 0; background-color: #f9f9f9;">
<div style="border: 2px solid #1e3c5c; border-radius: 10px; padding: 15px; margin: 15px 0; background-color: #f9f9f9;">
<div style="text-align: center; margin-bottom: 15px;">
  <h2 style="color: #1e3c5c; border-bottom: 2px solid #1e3c5c; padding-bottom: 8px; margin-top: 0;">🚗 {{{name|Vehicle Name}}}</h2>
[[File:{{{image|}}}|center|300px|{{{name|}}}]]
 
</div>
  <table style="width: 100%; border-collapse: collapse;">
<h3 style="color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 8px;">{{{name|Enter vehicle name}}}</h3>
    <tr>
<table style="width: 100%; border-collapse: collapse;">
      <td style="padding: 10px; width: 30%; vertical-align: top;">
  <tr style="background-color: #ecf0f1;">
        <div style="text-align: center;">
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">Type:</th>
          {{#if:{{{image|}}}|[[File:{{{image}}}|center|200px|{{{name|}}}]]|<div style="background: #ddd; padding: 40px 20px; border-radius: 5px;">No Image</div>}}
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{type|}}}</td>
        </div>
  </tr>
      </td>
  <tr>
      <td style="padding: 10px; vertical-align: top;">
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">Daily Rate:</th>
        <table style="width: 100%;">
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{rate|}}} BDT</td>
          <tr><th style="text-align: left; width: 40%;">Type:</th><td>{{{type|}}}</td></tr>
  </tr>
          <tr><th style="text-align: left;">Daily Rate:</th><td>{{{rate|}}} BDT</td></tr>
  <tr style="background-color: #ecf0f1;">
          <tr><th style="text-align: left;">Transmission:</th><td>{{{transmission|}}}</td></tr>
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">Transmission:</th>
          <tr><th style="text-align: left;">AC:</th><td>{{{ac|}}}</td></tr>
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{transmission|}}}</td>
          <tr><th style="text-align: left;">Seats:</th><td>{{{seats|}}}</td></tr>
  </tr>
          <tr><th style="text-align: left;">Fuel Type:</th><td>{{{fuel|}}}</td></tr>
  <tr>
        </table>
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">AC:</th>
      </td>
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{ac|}}}</td>
    </tr>
  </tr>
  </table>
  <tr style="background-color: #ecf0f1;">
 
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">Seats:</th>
  <div style="margin-top: 10px; font-size: 0.9em; color: #666;">
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{seats|}}}</td>
    [[Category:Fleet Vehicles]]
  </tr>
  </div>
  <tr>
    <th style="width: 200px; padding: 10px; border: 1px solid #bdc3c7;">Fuel Type:</th>
    <td style="padding: 10px; border: 1px solid #bdc3c7;">{{{fuel|Petrol}}}</td>
  </tr>
</table>
[[Category:Fleet Vehicles]]
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== How to use this template ==
<div style="background: #f0f0f0; padding: 15px; border-left: 5px solid #1e3c5c;">
Use this template to display vehicle information.
  <h3>How to use this template</h3>
 
  <p>Copy and paste the code below:</p>
=== Usage ===
  <pre>
<pre>
{{Vehicle Info
{{Vehicle Info
|name=
|name=Toyota Prius
|type=
|type=Hybrid Hatchback
|rate=
|rate=2500
|transmission=
|transmission=Automatic
|ac=
|ac=Yes
|seats=
|seats=5
|fuel=
|fuel=Hybrid
|image=
|image=Toyota_Prius.jpg
}}
}}
</pre>
  </pre>
 
  <p><strong>Fields:</strong> name, type, rate, transmission, ac, seats, fuel, image</p>
</div>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 19:17, 14 March 2026


How to use this template

Copy and paste the code below:

{{Vehicle Info
|name=Toyota Prius
|type=Hybrid Hatchback
|rate=2500
|transmission=Automatic
|ac=Yes
|seats=5
|fuel=Hybrid
|image=Toyota_Prius.jpg
}}
  

Fields: name, type, rate, transmission, ac, seats, fuel, image