Wikipedia DTD/Examples

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Here are some examples of XML coded Wikipedia articles. See also Wikipedia.DTD and media:Wikiarticle2html.xsl.

Short example[edit]

<?xml version="1.0" encoding="UTF-8"?>
<article>
  <meta>
    <title interwiki="en" article="Example"/>
    <interwiki language="de" article="Beispiel"/>
  </meta>
  <text>
    Hello <link article="World"/>!
    <pbr/>
    How <i>are <b>you</b></i>?
    Just <u>tell <link article="Example" talk="talk">me</link></u>!
  </text>
</article>

Same in Wikitax (asuming it´s the article en.wikipedia.org/wiki/Example):

[[de:Beispiel]]
Hello [[World]]!

How ''are '''you'''''?
Just <u>tell [[talk:Example|me]]</u>!

Files[edit]