Template:Script: Difference between revisions
Jump to navigation
Jump to search
(New page: <noinclude> 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: {| {{prettytable}} |- |...) |
VANKRASN39 (talk | contribs) m (missed one) |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 13: | Line 13: | ||
| compat |
| compat |
||
| required |
| required |
||
| The compatibility of the script. Valid options are " |
| The client compatibility of the script. Valid options are "WR" for Wrayth, "WFE" for Wizard FE, or "WR/WFE" cross-compatibility. |
||
|- |
|- |
||
| compatwarn |
|||
| notes |
|||
| optional |
| optional |
||
| |
| A reason why the script is not compatible with one client or the other. |
||
| |
|- |
||
| category |
|||
| optional |
|||
| Places the script in a gswiki category, such as "Travel scripts". If not selected, uses "Scripts" by default. |
|||
⚫ | |||
An example of the template's use: |
An example of the template's use: |
||
Line 25: | Line 29: | ||
| title = A Test Script |
| title = A Test Script |
||
| author = Anshou |
| author = Anshou |
||
| compat = |
| compat = WR |
||
| notes = This is an example script for KP. |
|||
}} |
}} |
||
</pre> |
</pre> |
||
Line 41: | Line 44: | ||
|- |
|- |
||
| '''Compatibility:''' |
| '''Compatibility:''' |
||
| Wrayth Only |
|||
| StormFront |
|||
|- |
|||
| '''Notes:''' |
|||
| This is an example script for KP. |
|||
|} |
|} |
||
⚫ | |||
⚫ | |||
⚫ | |||
<tr><td>'''Author:'''</td><td>{{{author|Unknown}}}</td></tr> |
|||
<tr><td>'''Compatibility:'''</td><td>{{#ifeq: {{{compat}}} | SF | Wrayth Only | {{#ifeq: {{{compat}}} | WR | Wrayth Only |{{#ifeq: {{{compat}}} | WFE | Wizard FE Only | {{#ifeq: {{{compat}}} | SF/WFE | Wrayth and Wizard FE | {{#ifeq: {{{compat}}} | WR/WFE | Wrayth and Wizard FE | '''''#UNDEFINED#''''' }} }} }} }} }}{{#if: {{{compatwarn|}}} | (''{{{compatwarn}}}'') | }}</td></tr> |
|||
</table> |
|||
[[Category: {{{category|Scripts}}}]]</includeonly><noinclude> |
|||
[[Category:Miscellaneous special articles templates]]</noinclude> |
|||
⚫ | |||
⚫ | |||
|- |
|||
| '''Title:''' |
|||
⚫ | |||
|- |
|||
| '''Author:''' |
|||
| {{{author|Unknown}}} |
|||
|- |
|||
| '''Compatibility:''' |
|||
| {{#ifeq: {{{compat}}} | SF | StormFront | {{#ifeq: {{{compat}}} | WFE | Wizard FE | {{#ifeq: {{{compat}}} | SF/WFE | StormFront and Wizard FE | Undefined }} }} }} |
|||
{{#if: {{{notes|}}} | |- | }} |
|||
{{#if: {{{notes|}}} | | '''Notes:''' | }} |
|||
{{#if: {{{notes|}}} | | {{{notes}}} | }} |
|||
⚫ | |||
</includeonly> |
Latest revision as of 01:03, 9 November 2023
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 "WR" for Wrayth, "WFE" for Wizard FE, or "WR/WFE" cross-compatibility. |
compatwarn | optional | A reason why the script is not compatible with one client or the other. |
category | optional | Places the script in a gswiki category, such as "Travel scripts". If not selected, uses "Scripts" by default. |
An example of the template's use:
{{script | title = A Test Script | author = Anshou | compat = WR }}
This example would display as:
Title: | A Test Script |
Author: | Anshou |
Compatibility: | Wrayth Only |