Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Script Infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; font-size: 1.1em; background-color: #222; padding-bottom: 1px;">
       <td colspan="2" style="text-align: center; font-size: 1.1em; background-color: #222; padding-bottom: 1px;">
{{{title|{{PAGENAME}}}}}
'''{{{title|{{PAGENAME}}}}}'''
       </td>
       </td>
     </tr>
     </tr>
     {{#if:{{{image|}}}|
     {{#if:{{{icon|}}}|
       <tr>
       <tr>
         <td colspan="2" style="text-align: center; padding-top: 1px; padding-bottom: 1px;">
         <td colspan="2" style="text-align: center; padding-top: 1px; padding-bottom: 1px;">
[[File:{{PAGENAME:{{{image}}}}}|200x215px]]
[[File:{{PAGENAME:{{{icon}}}}}|200x215px]]
         </td>
         </td>
       </tr>
       </tr>
     }}
     }}
     {{#if:{{{type|}}}|<tr>
     {{#if:{{{type|}}}|<tr>
         <th style="text-align: right; vertical-align: top; width: 100px; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Type:</th>
         <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Type:</th>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #555;">{{{type}}}</td>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;">{{{type}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{category|}}}|<tr>
     {{#if:{{{category|}}}|<tr>
         <th style="text-align: right; vertical-align: top; width: 100px; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Category:</th>
         <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Category:</th>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #555;">{{{category}}}</td>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;">{{{category}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{forum|}}}|<tr>
     {{#if:{{{forum|}}}|<tr>
         <th style="text-align: right; vertical-align: top; width: 100px; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Forum Topic:</th>
         <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Forum:</th>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #555;">{{{forum}}}</td>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{forum}}}</span></td>
     </tr>}}
     </tr>}}
     {{#if:{{{purchase|}}}|<tr>
     {{#if:{{{purchase|}}}|<tr>
         <th style="text-align: right; vertical-align: top; width: 100px; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Purchase:</th>
         <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Purchase:</th>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #555;">{{{purchase}}}</td>
         <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{purchase}}}</span></td></td>
    </tr>}}
{{#if:{{{video1|}}}|<tr>
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Video:</th>
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{video1}}}</span></td></td>
    </tr>}}
{{#if:{{{video2|}}}|<tr>
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Video:</th>
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{video2}}}</span></td></td>
    </tr>}}
{{#if:{{{video3|}}}|<tr>
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Video:</th>
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{video3}}}</span></td></td>
     </tr>}}
     </tr>}}
   </table>
   </table>
</div>
</div>
<noinclude>
== Template Documentation ==
This template is used to display information in an infobox format.
=== Usage ===
To use this template, include the following code on a page:
Note that on this page, only Script Inbox will show a box to the right. This is because this infobox has IF statements for everything below, and if there is no value defined, the section will not load.
<pre>
{{Template:Script_Infobox
| icon= GFishing.png
| type = Free, Premium or Instanced
| category = GAIO, PVM, Wildy, Skilling, Minigames, Miscellaneous
| forum = The DB Forum Topic URL, example: [https://dreambot.org/forums/index.php?/topic/29148-g-fishing-add-on-auto-restock-integrated-muling-easy-setup-quickstart-supported/ GFishing]
| purchase = [https://dreambot.org/forums/index.php?/store/product/811-gaioaccountbuilder/ Monthly - Lifetime] for Scirpts with Monthly & Lifetime pages combined, or the following for scripts with two purchase pages for monthly and lifetime: [https://dreambot.org/forums/index.php?/store/product/740-gfishing/ Monthly] - [https://dreambot.org/forums/index.php?/store/product/739-gfishing-lifetime/ Lifetime]
}}
</pre>
=== Notes ===
- Ensure that the image file exists before adding it to the template.
</noinclude>