Template:Script: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(BLEEEARGH OLLIE SMASH!)
(Whee!)
Line 13: Line 13:
| compat
| compat
| required
| required
| The compatibility of the script. Valid options are "SF" for StormFront, "WFE" for Wizard FE, or "SF/WFE" cross-compatibility.
| The client compatibility of the script. Valid options are "SF" for StormFront, "WFE" for Wizard FE, or "SF/WFE" cross-compatibility.
|-
| compatwarn
| optional
| A reason why the script is not compatible with one client or the other.
|-
|-
| notes
| notes
Line 41: Line 45:
|-
|-
| '''Compatibility:'''
| '''Compatibility:'''
| StormFront
| StormFront Only
|-
|-
| '''Notes:'''
| '''Notes:'''
Line 50: Line 54:
<tr><td>'''Title:'''</td><td>{{{title|'''''#UNDEFINED#'''''}}}</td></tr>
<tr><td>'''Title:'''</td><td>{{{title|'''''#UNDEFINED#'''''}}}</td></tr>
<tr><td>'''Author:'''</td><td>{{{author|Unknown}}}</td></tr>
<tr><td>'''Author:'''</td><td>{{{author|Unknown}}}</td></tr>
<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>
<tr><td>'''Compatibility:'''</td><td>{{#ifeq: {{{compat}}} | SF | StormFront Only | {{#ifeq: {{{compat}}} | WFE | Wizard FE Only | {{#ifeq: {{{compat}}} | SF/WFE | StormFront and Wizard FE | '''''#UNDEFINED#''''' }} }} }}{{#if: {{compatwarn}} | (''{{{compatwarn}}}'') | }}</td></tr>
{{#if: {{{notes|}}} | <tr><td>'''Notes:'''</td><td>{{{notes}}}></td></tr> | }}
{{#if: {{{notes|}}} | <tr><td>'''Notes:'''</td><td>{{{notes}}}></td></tr> | }}
</table>
</table>

Revision as of 15:05, 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 client compatibility of the script. Valid options are "SF" for StormFront, "WFE" for Wizard FE, or "SF/WFE" cross-compatibility.
compatwarn optional A reason why the script is not compatible with one client or the other.
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 Only
Notes: This is an example script for KP.