Jump to content

Talk:Wikipedia DTD

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by 219.212.14.10 (talk) at 01:03, 2 November 2003. It may differ significantly from the current version.

There was I discussion on general aspects of what should be marked up in wikipedia (names, places, dates/times...). since Wikipedia DTD is about an XML representation of the current syntax I moved it to Talk:Simple ideology of Wikitax --Nichtich 01:36 Feb 7, 2003 (UTC)


<nowiki><![CDATA[do [not] parse <this>]]></nowiki>

I've never been quite clear on how CDATA sections work. If my data includes a raw "]]>", how do I encode it? --Brion VIBBER 06:44 Jan 23, 2003 (UTC)
  • <![CDATA[just]]>]]&gt;<![CDATA[split]]>

<link system="wiki" href="image:Wiki.png"/>

Image links are functionally different from regular wiki links, as they embed images. It would be best to use a distinct tag. --Brion VIBBER 07:03 Jan 23, 2003 (UTC)

You're right. I suggest:

Link to the page of the image: [[:image:Wiki.png]] <link system="wiki" href="image:Wiki.png"/>

Embed image/media/file/...

[[image:Wiki.png]] <media href="image:Wiki.png"/>

I prefer media because we only embed media objects and embed could mean something link "embed the content of another page". See also discussion on special pages below.


<link system="wiki" href="Wikipedia FAQ"/> ... <url href="http://www.wikipedia.org"/> ... <mail to="webmaster@wikipedia.org"/>

These seem overcomplicated. Wouldn't it be simpler (in an XML way) to use the same tag for all links, and just have a wiki-specific URI? eg:

  • local wiki link: Main Page
    • <link href="wiki:Main_Page">Main Page</link>
  • interwiki link: MeatBall:CommunityExpectation
    • <link href="wiki://MeatBall/CommunityExpectation">MeatBall:CommunityExpectation</link>
  • interlanguage link: [[eo:DTD de Vikipedio]]
    • <link href="wiki://EsperantoWikipedia/DTD_de_Vikipedio" rel="language" lang="eo" />
  • remote non-wiki link: Slashdot
    • <link href="http://slashdot.org/">Slashdot</link>
  • ISBN: ISBN 0-201-89683-4
    • <link href="isbn:0201896834">ISBN 0-201-89683-4</link>

Upon (possible) reconversion to wiki syntax, the parser could use the most efficient form of representation available in that particular wiki syntax for that type of link.


  • No redundancy please
  • An XML syntax should code information in tags and attributes. parsing strings is ugly and less efficient.
  • The difference between interwiki links and local wiki links depends on the application. Try to edit test:baz since now it's a valid name but maybe there will be a "test"-wiki in the future.
  • interlanguage links are a special topic. We could use a special tag:
    <interlanguage href="eo:DTD_de_Vikipedio"/>
  • How about link system="url" for external links instead of url and email?

--Nichtich 22:34 Feb 2, 2003 (UTC)

It could be useful to code

User:Foo => <link system="wiki" space="user" href="Foo"/>
Talk:Bar => <link system="wiki" space="talk" href="Bar"/>

and in other languages

Benutzer:Foo => <link system="wiki" space="user" href="Foo"/>
Diskussion:Bar => <link system="wiki" space="talk" href="Bar"/>

But how to handle a page like:

Talk:User:Foo

Also possible (for instance in the german Wikipedia):

Diskussion:Talk:User:Foo

--Nichtich 21:59 Feb 2, 2003 (UTC)


notes on paragraphs

Manual Paragraphs with the p tag are pretty ugly to handle. Try:

<p>Hi! This is a paragraph

with an empty line in it.</p>

You get:

<p>Hi! This is a paragraph
<p>
with an empty line in it.</p>

but the valid syntax is

<p>Hi! This is a paragraph</p>
<p>with an empty line in it.</p>

Why can't we just remove all invalid HTML-Tags? :-(



IMHO the interlanguage-link would be better like

<interlanguage lang="eo" href="DTD_de_Vikipedio"/>

That way you give more information without the need of parsing the content of href. Lothar Kimmeringer 02:37, 15 Sep 2003 (UTC)


How about a definition of the term DTD right up front as in this external link:
http://www.hyperdictionary.com/dictionary/Document+Type+Definition