UserAgent: Mozilla/5.0 (X11) Gecko/20050101 Galeon/2.0
IP: 62.46.145.104
URI: http://wesnoth.slack.it/?DescriptionWML
 - - - - -
Index: DescriptionWML
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/DescriptionWML,v
retrieving revision 1.4
diff -u -r1.4 DescriptionWML
--- DescriptionWML      16 Oct 2004 21:35:49 -0000      1.4
+++ DescriptionWML      10 May 2005 12:46:47 -0000
@@ -3,12 +3,25 @@
 
 A description consists of:
 
-an '&' sign, followed by the filename of an icon, then a comma, then text.
+an '&' sign, followed by the filename of an icon, then an equal sign (||=||), 
then text.
 
-The description will appear as the icon, followed by the text. If you want a 
comma in the description, you must prefix it with a backslash (||\,||)
+The description will appear as the icon, followed by the text.
 
 If a key uses multiple descriptions, then they must be separated by 
semicolons(||;||).
 The default selection is preceded by a star(||*||).
+
+For example:
+
+<tt>difficulty_descriptions="&elvish-fighter.png=Fighter,(easiest);*elvish-hero.png=Hero;&elvish-champion.png=Champion,(hardest)"</tt>
+
+Preferably, images are included with macros from utils.cfg, and text should 
always be translatable, so the above would
+better be written as:
+
+<tt>
+difficulty_descriptions={MENU_IMG_TXT2 elvish-fighter.png _"Fighter" 
_"(easiest)"} +
+        ";*" + {MENU_IMG_TXT elvish-hero.png _"Hero"} + ";" +
+        {MENU_IMG_TXT2 elvish-champion.png _"Champion" _"(hardest)"}
+</tt>
 
 ||See Also||
 




_______________________________________________
Wesnoth-wiki-changes mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes

Reply via email to