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
 
(9 intermediate revisions by the same user not shown)
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>
<noinclude>
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Category:</th>
== Template Documentation ==
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;">{{{category}}}</td>
This template is used to display information in an infobox format.  
    </tr>}}
 
    {{#if:{{{forum|}}}|<tr>
=== Usage ===
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Forum:</th>
To use this template, include the following code on a page:
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{forum}}}</span></td>
 
    </tr>}}
<pre>
    {{#if:{{{purchase|}}}|<tr>
{{Template:Script_Infobox
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Purchase:</th>
| name = GFishing, or for AIO, Fishing
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{purchase}}}</span></td></td>
| icon = GFishing.png
    </tr>}}
| type = Free, Premium or Instanced
{{#if:{{{video1|}}}|<tr>
| category = Moneymaker, or Skilling
        <th style="text-align: right; vertical-align: top; width: 100; padding-right: 8px; color: #ddd; font-size: 0.9em; background-color: #222;">Video:</th>
| 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]
        <td style="vertical-align: top; padding-left: 8px; color: #ddd; font-size: 0.9em; background-color: #333;"><span class="plainlinks">{{{video1}}}</span></td></td>
| 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]
    </tr>}}
}}
{{#if:{{{video2|}}}|<tr>
</pre>
        <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>
=== Notes ===
    </tr>}}
- Ensure that the image file exists before adding it to the template.
{{#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>
</noinclude>
        <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>}}
  </table>
</div>

Latest revision as of 10:27, 19 May 2025

Script Infobox