Template:Markupv/testcases
![]() | 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: |
__EXPECTUNUSEDTEMPLATE__
Basic functionality
{{Markupv|m='''Bold text''' |r='''Bold text'''}}
{{Markupv}}
Markup | '''Bold text''' |
---|---|
Renders as | Bold text |
{{Markupv/sandbox}}
Markup | '''Bold text''' |
---|---|
Renders as | Bold text |
More complex, with title
{{Markupv|t=Cite book example |m=<syntaxhighlight lang="mediawiki>{{Cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}</syntaxhighlight> |r={{Cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}} }}
{{Markupv}}
Markup | <syntaxhighlight lang="mediawiki><cite id="CITEREFWhite1977" class="citation book cs1">White, T. H. (1977). ''The Book of Merlyn''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+Book+of+Merlyn&rft.date=1977&rft.aulast=White&rft.aufirst=T.+H.&rfr_id=info%3Asid%2Fenwiki.freddythechick.net%3ATemplate%3AMarkupv%2Ftestcases" class="Z3988"></span></syntaxhighlight> |
---|---|
Renders as | White, T. H. (1977). The Book of Merlyn. |
{{Markupv/sandbox}}
Markup | <syntaxhighlight lang="mediawiki><cite id="CITEREFWhite1977" class="citation book cs1">White, T. H. (1977). ''The Book of Merlyn''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+Book+of+Merlyn&rft.date=1977&rft.aulast=White&rft.aufirst=T.+H.&rfr_id=info%3Asid%2Fenwiki.freddythechick.net%3ATemplate%3AMarkupv%2Ftestcases" class="Z3988"></span></syntaxhighlight> |
---|---|
Renders as | White, T. H. (1977). The Book of Merlyn. |
With margin and style parameters
{{Markupv|m='''Bold text''' |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 |