LanguageWML: Difference between revisions
From The Battle for Wesnoth Wiki
No edit summary |
Updated page to reflect the tag's current use; missing some keys; will add shortly |
||
| Line 2: | Line 2: | ||
== the toplevel [language] tag == | == the toplevel [language] tag == | ||
The contents of the [language] tag associate strings with certain keywords used by the engine and some WML, such as attack types and ranges. | |||
The following keys and tags are recognized in [language] tags: | The following keys and tags are recognized in [language] tags: | ||
* ''' | * '''EASY''': string to associate with the EASY difficulty keyword. | ||
* ''' | * '''NORMAL''': string to associate with the NORMAL difficulty keyword. | ||
* ''' | * '''HARD''': string to associate with the HARD difficulty keyword. | ||
* ''' | * '''NIGHTMARE''': string to associate with the NIGHTMARE difficulty keyword. | ||
* '''liminal_description''': {{DevFeature1.9}} string for the liminal alignment's description. | |||
* '''lawful_description''': string for the lawful alignment's description. | |||
* '''neutral_description''': string for the neutral alignment's description. | |||
* '''chaotic_description''': string for the chaotic alignment's description. | |||
* '''range_melee''': string to associate with the melee range keyword. | |||
* '''range_ranged''': string to associate with the ranged range keyword. | |||
* '''blade''': string to associate with the blade type keyword. | |||
* '''pierce''': string to associate with the pierce type keyword. | |||
* '''impact''': string to associate with the impact type keyword. | |||
* '''fire''': string to associate with the fire type keyword. | |||
* '''cold''': string to associate with the cold type keyword. | |||
* '''arcane''': string to associate with the arcane type keyword. | |||
* '''range_$RANGE''': {{DevFeature1.9}} string to associate with whatever range $RANGE is in actual use. Refer to the [[LanguageWML#Examples|examples section]] for actual uses and examples. | |||
* '''type_$TYPE''': {{DevFeature1.9}} string to associate with whatever $TYPE is in actual use. Refer to the the [[LanguageWML#Examples|examples section]] for actual uses and examples. | |||
== Examples == | |||
=== Examples and actual uses of range_$RANGE === | |||
Example of an actual use in mainline: | |||
[language] | |||
range_melee= _ "melee" | |||
[/language] | |||
Example of an association of a string with the keyword for a '''very long''' range in UMC: | |||
[+language] | |||
range_very_long= _ "very long" | |||
[/language] | |||
=== Examples and actual uses of type_$TYPE === | |||
Example of an actual use in mainline: | |||
[language] | |||
type_arcane=_ "arcane" | |||
[/language] | |||
Example of an association of a string with the keyword for an '''electric''' type in UMC: | |||
[+language] | |||
type_electric= _ "electric" | |||
[/language] | |||
== See Also == | == See Also == | ||
Revision as of 23:57, 30 December 2010
the toplevel [language] tag
The contents of the [language] tag associate strings with certain keywords used by the engine and some WML, such as attack types and ranges.
The following keys and tags are recognized in [language] tags:
- EASY: string to associate with the EASY difficulty keyword.
- NORMAL: string to associate with the NORMAL difficulty keyword.
- HARD: string to associate with the HARD difficulty keyword.
- NIGHTMARE: string to associate with the NIGHTMARE difficulty keyword.
- liminal_description: Template:DevFeature1.9 string for the liminal alignment's description.
- lawful_description: string for the lawful alignment's description.
- neutral_description: string for the neutral alignment's description.
- chaotic_description: string for the chaotic alignment's description.
- range_melee: string to associate with the melee range keyword.
- range_ranged: string to associate with the ranged range keyword.
- blade: string to associate with the blade type keyword.
- pierce: string to associate with the pierce type keyword.
- impact: string to associate with the impact type keyword.
- fire: string to associate with the fire type keyword.
- cold: string to associate with the cold type keyword.
- arcane: string to associate with the arcane type keyword.
- range_$RANGE: Template:DevFeature1.9 string to associate with whatever range $RANGE is in actual use. Refer to the examples section for actual uses and examples.
- type_$TYPE: Template:DevFeature1.9 string to associate with whatever $TYPE is in actual use. Refer to the the examples section for actual uses and examples.
Examples
Examples and actual uses of range_$RANGE
Example of an actual use in mainline:
[language]
range_melee= _ "melee"
[/language]
Example of an association of a string with the keyword for a very long range in UMC:
[+language]
range_very_long= _ "very long"
[/language]
Examples and actual uses of type_$TYPE
Example of an actual use in mainline:
[language]
type_arcane=_ "arcane"
[/language]
Example of an association of a string with the keyword for an electric type in UMC:
[+language]
type_electric= _ "electric"
[/language]
See Also
This page was last edited on 30 December 2010, at 23:57.