ReferenceWMLSyntax

From The Battle for Wesnoth Wiki
Revision as of 05:02, 29 January 2006 by Scott (talk | contribs) (Reorganized page, added category)

Wiki Syntax

Formatting

This page is an example of how these wikis should be formatted:

Description of the page

  • [tag] description of [tag]
    • key description of key.

"key" can refer either to the key key or the value of key

  • key2 description of key2
    • 'value' what happens when the attribute key2=value is set

Example:

[tag]
key=0
[/tag]
key2=value

Version Control

For WML features not present in the 1.0 branch, please precede the reference text with the template {{DevFeature}}. Doing this will use the standardized "development version only WML" flag.

Please do not delete WML reference text that is valid for version 1.0 if a new feature obsoletes, deprecates, or replaces it. Just put the new reference text beneath it and mark it with {{DevFeature}}.

The {{DevFeature}} code turns into this: Template:DevFeature (dynamically updated from the template page Template:DevFeature)

Categorization

WML reference pages should be placed into the category "WML reference." This allows someone to easily bring up all the WML-related pages at once.

To do this, add the text [[Category: WML Reference]] at the bottom of the page under the "See Also" section.

See Also