Template:Markupv/testcases
Appearance
| This is the template test cases page for the sandbox of Template:Markupv. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Basic functionality
{{Markupv|m={{#parsoidfragment:11}} |r='''Bold text'''}}
{{Markupv}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
{{Markupv/sandbox}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
More complex, with title and "cite book"
{{Markupv|t=Cite book example
|m=<syntaxhighlight lang="mediawiki>{{Cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}
|r=White, T. H. (1977). The Book of Merlyn. }}</syntaxhighlight>
{{Markupv}}
| Markup | |
|---|---|
| Renders as | White, T. H. (1977). The Book of Merlyn. |
{{Markupv/sandbox}}
| Markup | |
|---|---|
| Renders as | White, T. H. (1977). The Book of Merlyn. |
Title style (align left)
{{Markupv|m={{#parsoidfragment:27}} |r='''Bold text''' |title=Bold text example |tstyle=text-align: left;}}
{{Markupv}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
{{Markupv/sandbox}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
With margin and style parameters
{{Markupv|m={{#parsoidfragment:34}} |margin=4 |r='''Bold text''' |style=border: 5px solid red}}
{{Markupv}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
{{Markupv/sandbox}}
| Markup | '''Bold text''' |
|---|---|
| Renders as | Bold text |
With syntax highlighting via tag parameter
{{Markupv|m={{#parsoidfragment:41}} |r=<span title="French-language romanization"><i lang="fr-Latn">Ceci n'est pas un modèle</i></span> |tag=syntaxhighlight}}
{{Markupv}}
| Markup | {{transliteration|fr|Ceci n'est pas un modèle}}
|
|---|---|
| Renders as | Ceci n'est pas un modèle |
{{Markupv/sandbox}}
| Markup | {{transliteration|fr|Ceci n'est pas un modèle}}
|
|---|---|
| Renders as | Ceci n'est pas un modèle |
List (default)
{{Markupv|m={{#parsoidfragment:50}} |r={{#parsoidfragment:51}}
*<span title="French-language romanization"><i lang="fr-Latn">Ceci n'est pas un modèle</i></span>
*<span title="German-language romanization"><i lang="de-Latn">Neunundneunzig Luftballons</i></span>}}
{{Markupv}}
| Markup |
*{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}} |
|---|---|
| Renders as |
|
{{Markupv/sandbox}}
| Markup |
*{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}} |
|---|---|
| Renders as |
|
List (tagged with pre)
{{Markupv|m={{#parsoidfragment:60}} |r={{#parsoidfragment:61}}
*<span title="French-language romanization"><i lang="fr-Latn">Ceci n'est pas un modèle</i></span>
*<span title="German-language romanization"><i lang="de-Latn">Neunundneunzig Luftballons</i></span> |tag=pre}}
{{Markupv}}
| Markup | *{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}} |
|---|---|
| Renders as |
|
{{Markupv/sandbox}}
| Markup | *{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}} |
|---|---|
| Renders as |
|
List (tagged with syntaxhighlight)
{{Markupv|m={{#parsoidfragment:72}} |r={{#parsoidfragment:73}}
*<span title="French-language romanization"><i lang="fr-Latn">Ceci n'est pas un modèle</i></span>
*<span title="German-language romanization"><i lang="de-Latn">Neunundneunzig Luftballons</i></span> |tag=syntaxhighlight}}
{{Markupv}}
| Markup | *{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}}
|
|---|---|
| Renders as |
|
{{Markupv/sandbox}}
| Markup | *{{transliteration|fr|Ceci n'est pas un modèle}}
*{{transliteration|de|Neunundneunzig Luftballons}}
|
|---|---|
| Renders as |
|