Template:Script: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(Testing...)
(BLEEEARGH OLLIE SMASH!)
Line 46: Line 46:
| This is an example script for KP.
| This is an example script for KP.
|}
|}

</noinclude><includeonly>
</noinclude><includeonly>
{| border="0" style="font-family: Courier New; padding: 0.25em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; line-height: 1.1em;"
<table border="0" style="font-family: Courier New; margin: 1em 0; padding: 0.25em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; line-height: 1.1em;">
<tr><td>'''Title:'''</td><td>{{{title|'''''#UNDEFINED#'''''}}}</td></tr>
|-
<tr><td>'''Author:'''</td><td>{{{author|Unknown}}}</td></tr>
| '''Title:'''
<tr><td>'''Compatibility:'''</td><td>{{#ifeq: {{{compat}}} | SF | StormFront | {{#ifeq: {{{compat}}} | WFE | Wizard FE | {{#ifeq: {{{compat}}} | SF/WFE | StormFront and Wizard FE | '''''#UNDEFINED#''''' }} }} }}</td></tr>
| {{{title|'''''UNDEFINED'''''}}}
{{#if: {{{notes|}}} | <tr><td>'''Notes:'''</td><td>{{{notes}}}></td></tr> | }}
|-
</table>
| '''Author:'''

| {{{author|Unknown}}}
|-
| '''Compatibility:'''
| {{#ifeq: {{{compat}}} | SF | StormFront | {{#ifeq: {{{compat}}} | WFE | Wizard FE | {{#ifeq: {{{compat}}} | SF/WFE | StormFront and Wizard FE | Undefined }} }} }}
{{#if: {{{notes|}}} | {{pipe}}- | }}
{{#if: {{{notes|}}} | | '''Notes:''' | }}
{{#if: {{{notes|}}} | | {{{notes}}} | }}
|}
[[Category:Scripts]]
[[Category:Scripts]]
</includeonly>
</includeonly>

Revision as of 14:56, 15 January 2007

This template is meant to be included at the top of all script articles to provide clear information about the script. The template has tree arguments:

title required A descriptive title for the script.
author optional The author of the script. Defaults is "Unknown".
compat required The compatibility of the script. Valid options are "SF" for StormFront, "WFE" for Wizard FE, or "SF/WFE" cross-compatibility.
notes optional Any miscellaneous notes about the script or its operation. If no notes are specified, the field will not appear on the page.

An example of the template's use:

{{script
 | title = A Test Script 
 | author = Anshou
 | compat = SF
 | notes = This is an example script for KP.
}}

This example would display as:

Title: A Test Script
Author: Anshou
Compatibility: StormFront
Notes: This is an example script for KP.