Template:Mbox/testcases: Difference between revisions
Add left-aligned mbox tests |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 10:52, 16 March 2023
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
This is the template test cases page for the sandbox of Template:Mbox. 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 with these links: <templatestyles src="Hlist/styles.css"></templatestyles> |
demospace not set
{{mbox|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
demospace=talk
Main
{{mbox|demospace=talk|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=talk|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
demospace=wikipedia
Main
{{mbox|demospace=wikipedia|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=wikipedia|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
demospace=file
Main
{{mbox|demospace=file|text=some text}}
<templatestyles src="Module:Message box/imbox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=file|text=some text}}
Lua error in mw.lua at line 177: invalid frame ID.
demospace=category
Main
{{mbox|demospace=category|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=category|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
demospace=template
Main
{{mbox|demospace=template|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=template|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
demospace=wikipedia talk
Main
{{mbox|demospace=wikipedia talk|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=wikipedia talk|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
demospace=portal
Main
{{mbox|demospace=portal|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=portal|text=some text}}
<templatestyles src="Module:Message box/imbox.css"></templatestyles>
some text |
demospace=foo
Main
{{mbox|demospace=foo|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|demospace=foo|text=some text}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |
left-aligned mbox
{{mbox|small=left|text=some text}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
Sandbox
{{mbox/sandbox|small=left|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat mi quis pretium semper. Proin luctus orci ac neque venenatis, quis commodo dolor posuere. Curabitur dignissim sapien quis cursus egestas.}}
<templatestyles src="Module:Message box/tmbox.css"></templatestyles>
some text |
Sandbox (variable width)
{{mbox/sandbox|style=width: auto; margin-right: 0px;|textstyle=width: auto;|small=left|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat mi quis pretium semper. Proin luctus orci ac neque venenatis, quis commodo dolor posuere. Curabitur dignissim sapien quis cursus egestas.}}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
some text |