MediaWiki Markup Language

From GM-RKB
Jump to navigation Jump to search

A MediaWiki Markup Language is a wiki markup language supported by a MediaWiki server distribution.



References

2020a

  • (Wikipedia, 2020) ⇒ https://en.wikipedia.org/wiki/MediaWiki#Markup Retrieved:2020-1-26.
    • One of the earliest differences between MediaWiki (and its predecessor, UseModWiki) and other wiki engines was the use of “free links" instead of CamelCase. When MediaWiki was created, it was typical for wikis to require text like "WorldWideWeb" to create a link to a page about the World Wide Web; links in MediaWiki, on the other hand, are created by surrounding words with double square brackets, and any spaces between them are left intact, e.g. . This change was logical for the purpose of creating an encyclopedia, where accuracy in titles is important.

      MediaWiki uses an extensible lightweight wiki markup designed to be easier to use and learn than HTML. Tools exist for converting content such as tables between MediaWiki markup and HTML. Efforts have been made to create a MediaWiki markup spec, but a consensus seems to have been reached that Wikicode requires context-sensitive grammar rules. The following side-by-side comparison illustrates the differences between wiki markup and HTML:

       :: {| class="wikitable" style="width:90%"

|- !MediaWiki syntax !Equivalent HTML !Rendered output |- |style="vertical-align:top;font-family:monospace; font-size:10pt; width:30%"| ==== A dialogue ====

"Take some more tea," the March Hare said to Alice, very earnestly.

"I've had nothing yet," Alice replied in an offended tone: "so I can't take more."

"You mean you can't take less'," said the Hatter: "it's '''very''' easy to take more than nothing." |style="vertical-align:top;font-family:monospace; font-size:10pt; width:30%"| <h4><span class="mw-headline" id="A_dialogue">A dialogue</span></h4>

<p>"Take some more <a href="/wiki/Tea" title="Tea">tea</a>," the March Hare said to Alice, very earnestly.</p>

<p>"I've had nothing yet," Alice replied in an offended tone: "so I can't take more."</p>

<p>"You mean you can't take <i>less</i>," said the Hatter: "it's <b>very</B> easy to take <i>more</i> than nothing."</p> |style="vertical-align:top; width:30%"| A dialogue

“Take some more tea," the March Hare said to Alice, very earnestly.

“I've had nothing yet," Alice replied in an offended tone: "so I can't take more."

“You mean you can't take less," said the Hatter: "it's very easy to take more than nothing." |- |}

(Quotation above from Alice's Adventures in Wonderland by Lewis Carroll)

2020b

2020c

2020d