[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-wiki-changes] SyntaxWML
From: |
wiki |
Subject: |
[Wesnoth-wiki-changes] SyntaxWML |
Date: |
Sun, 5 Sep 2004 00:56 +0200 |
URI http://wesnoth.slack.it/?SyntaxWML
- - - - -
Index: SyntaxWML
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/SyntaxWML,v
retrieving revision 1.12
diff -u -r1.12 SyntaxWML
--- SyntaxWML 25 Jul 2004 12:15:19 -0000 1.12
+++ SyntaxWML 4 Sep 2004 22:56:56 -0000
@@ -6,13 +6,18 @@
Each top level tag describes something about the game.
Different tags work differently.
For information about how a certain tag works, see ReferenceWML
-* ||[+//tag-name//] //data// [///tag-name//]|| means that //data//]
+* ||[+//tag-name//] //data// [///tag-name//]|| means that //data//
will be considered as part of the data for the most recent [//tagname//]
* ||//key//=//value//|| is an attribute.
-When this line is processed, the value of //key// for the tag that the
attribute is in is set to //value//.
+When this line is processed,
+the value of //key// for the tag that the attribute is in is set to //value//.
(All text from '=' until the end of the line is considered to be part of
//value//.)
-Note that //key// is not a WML variable; the value it is set to has a use
which is determined by C++ code, not WML code.
+Note that //key// is not a WML variable;
+the value it is set to has a use which is determined by C++ code, not WML code.
In order to change the value of a WML variable, you need to use
||[set_variable]||(InternalActionsWML).
+* ||//translatable-key//= _ "//text//"|| is another attribute.
+//text// is English text that will be displayed in-game at some point.
+Gettext (see GetText) is used to determine what to display if English is not
the current language.
* ||//key1//,//key(s)2//=//value1//,//value(s)2//|| is the same as
||//key1//=//value1// //newline// //key(s)2//=//value(s)2//||.
if there are extra keys, they will be set to an empty value.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-wiki-changes] SyntaxWML,
wiki <=