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
Line 1: Line 1:
{| class="infobox" style="float: right; width: 270px; font-size: 90%; text-align: left; border: 2px solid #555; border-collapse: collapse; background-color: #222; color: #ddd;" cellpadding="3"
<div class="infobox">
|-
  <table style="background: #333; color: #fff; padding: 1px;">
! colspan="2" style="background-color: #111; color: #ffffff; font-size: 120%; text-align: center;" | {{{name|{{PAGENAME}}}}}
    <tr>
|-
      <td colspan="2" style="text-align: center; font-size: 1.1em; background-color: #222; padding-bottom: 1px;">
| colspan="2" style="text-align: center;" | [[File:{{{icon}}}|{{{image_size|200px}}}]]
'''{{{title|{{PAGENAME}}}}}'''
|-
      </td>
! style="background-color: #333; color: #fff; padding: 5px;" | Type:
    </tr>
| style="background-color: #222; color: #ddd; padding: 5px;" | {{{type|}}}
    {{#if:{{{icon|}}}|
|-
      <tr>
! style="background-color: #333; color: #fff; padding: 5px;" | Category:
        <td colspan="2" style="text-align: center; padding-top: 1px; padding-bottom: 1px;">
| style="background-color: #222; color: #ddd; padding: 5px;" | {{{category|}}}
[[File:{{PAGENAME:{{{icon}}}}}|200x215px]]
|-
        </td>
! style="background-color: #333; color: #fff; padding: 5px;" | Forum Topic:
      </tr>
| style="background-color: #222; color: #ddd; padding: 5px;" | {{{forum_topic|}}}
    }}
|-
    {{#if:{{{type|}}}|<tr>
! style="background-color: #333; color: #fff; padding: 5px;" | Purchase:
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Type:</th>
| style="background-color: #222; color: #ddd; padding: 5px;" | {{{purchase|}}}
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;">{{{type}}}</td>
|}
    </tr>}}
    {{#if:{{{category|}}}|<tr>
        <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: #333;">{{{category}}}</td>
    </tr>}}
    {{#if:{{{forum|}}}|<tr>
        <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: #333;"><span class="plainlinks">{{{forum}}}</span></td>
    </tr>}}
    {{#if:{{{purchase|}}}|<tr>
        <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: #333;"><span class="plainlinks">{{{purchase}}}</span></td></td>
    </tr>}}
  </table>
</div>


<noinclude>
<noinclude>
Line 27: Line 41:
<pre>
<pre>
{{Template:Script_Infobox
{{Template:Script_Infobox
| name = GFishing, or for AIO, Fishing
| icon= GFishing.png
| icon = GFishing.png
| type = Free, Premium or Instanced
| type = Free, Premium or Instanced
| category = Moneymaker, or Skilling
| category = GAIO, PVM / Bossing, Wildy PVM, Skilling, Minigames, Misc Scripts
| forum_topic = 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]
| 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 or the following for scripts with two purchase pages for monthly/lifetime: [https://dreambot.org/forums/index.php?/store/product/740-gfishing/ Monthly] - [https://dreambot.org/forums/index.php?/store/product/739-gfishing-lifetime/ Lifetime]
| purchase = [https://dreambot.org/forums/index.php?/store/product/811-gaioaccountbuilder/ Monthly - Lifetime] for Scirpts with Monthly/Lifetime pages or the following for scripts with two purchase pages for monthly/lifetime: [https://dreambot.org/forums/index.php?/store/product/740-gfishing/ Monthly] - [https://dreambot.org/forums/index.php?/store/product/739-gfishing-lifetime/ Lifetime]
}}
}}

Revision as of 12:10, 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:

{{Template:Script_Infobox
| icon= GFishing.png
| type = Free, Premium or Instanced
| category = GAIO, PVM / Bossing, Wildy PVM, Skilling, Minigames, Misc Scripts
| 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 or the following for scripts with two purchase pages for monthly/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.