Talk:HelpWML

From The Battle for Wesnoth Wiki
Revision as of 22:20, 15 January 2011 by Paŭlo (talk | contribs) (why I changed the "XML" bits in the article.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Help system topic markup - XML

This was written here:

The markup that is allowed in the text key within a topic tag is in XML, a markup language similar to WML. Note that this is the only time that markup language is used as a value.

In fact, the used language may have been looking like XML to someone who never really used XML, but it certainly is not XML. XML has its attributes (keys and values) inside the start tag, not between the start and end tag. (Also, XML is hierarchical, while this is only one-level, as it looks.)

The example

text="[1]"

would have looked in XML (as the inner language) like one of these:

text="Cite error: Invalid <ref> tag;

refs with no name must have content"

text="Cite error: Invalid <ref> tag;

invalid names, e.g. too many"

text="Cite error: Invalid <ref> tag;

invalid names, e.g. too many"

Thus I changed the description of this language, also throwing away this "you have to convert from WML to XML", as our current wiki seems not to have any problems with angled brackets. I hope it is better understandable now.

-- Paŭlo 22:20, 15 January 2011 (UTC)

  1. dst=income_and_upkeep text='Link to Income and Upkeep topic'
This page was last edited on 15 January 2011, at 22:20.