Parsoid/Language conversion/Sample Article

From mediawiki.org

Here is some language converter markup:

  • -{R|raw text, not pig latin-ized}-
  • -{en:English;en-x-piglatin:Pig Latin}-
  • Filtered to: -{en|English}- -{en-x-piglatin|Pig Latin}- -{en;en-x-piglatin|English and Pig Latin}-
  • This unidirectional rule is hidden: -{H|WEBLOG=>en:blog;WEBLOG=>en-x-piglatin:EBJOURNALWAY}-
  • This bidirectional rule is hidden: -{H|en:elevator;en-x-piglatin:iftlay}-
  • This unidirectional rule is described: -{D|PRETZEL=>en:pretzel;PRETZEL=>en-x-piglatin:etzelpray}-
  • This bidirectional rule is described: -{D|en:car;en-x-piglatin:arcay}-
  • Tricky cases:
    • Nested LC markup: -{ outer -{ inner }- outer }-
    • LC markup inside a template: template -{ argument }-

There's also a LC feature to emit the localized name for a given language variant code:

en
-{N|en}-
en-x-piglatin
-{N|en-x-piglatin}-

For reference, this is how VE presents some related features:

  • This is German and RTL.
  • Empty comment: