More actions
No edit summary |
No edit summary |
||
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:{{{ | {{#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:{{{ | [[File:{{PAGENAME:{{{icon}}}}}|200x215px]] | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{type|}}}|<tr> | {{#if:{{{type|}}}|<tr> | ||
<th style="text-align: right; vertical-align: top; width: | <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: # | <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: | <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: # | <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: | <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: # | <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: | <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: # | <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>}} | </tr>}} | ||
</table> | </table> |
Revision as of 13:49, 2 April 2025
Script Infobox |
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.
{{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] }}
Notes
- Ensure that the image file exists before adding it to the template.