Template:Block center/testcases
![]() | This is the template test cases page for the sandbox of Template:Block center. 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: |
Empty
[edit]No-parameter line-wrapping
[edit]{{Block center|By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.}}
{{Block center}}
By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
By clicking the “Save page” button, you are agreeing to the Terms of Use, the Privacy Policy, and you irrevocably agree to release your contribution under the CC-BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
No-parameter non-wrapping
[edit]{{Block center|sufficient attribution under the Creative Commons license}}
{{Block center}}
sufficient attribution under the Creative Commons license
sufficient attribution under the Creative Commons license
Height and width
[edit]{{Block center|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Title handling
[edit]<div style="margin-left:50%;width:50%;">{{Block center|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.|title=From Sandbox template}}</div>
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Right alignment handling
[edit]{{Block center|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.|talign=right}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Justification handling
[edit]{{Block center|width=300px|{{lorem ipsum}} Aenean massa.|talign=justify}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Aenean massa.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Aenean massa.
Cross-page handling
[edit]{{Block center/s|talign=right|width=300px}}{{lorem ipsum}} {{page break}} Aenean massa. {{div end}}
{{Block center/s}}
Aenean massa.
Aenean massa.
Images
[edit]{{Block center|width=600px|height=800px| {{figure | image = cc&j-fig19--donkey's ear shooting block.png | position = absolute | figureleft=50px | width = 250px | bottomcaption = {{c|{{smaller|'''Fig. 19.—Donkey's-ear Shooting Block.'''}}}} }} {{figure | image = cc&j-fig20--donkey's ear block for shooting wide surfaces.png | position = absolute | figureleft = 300px | figuretop = 20px | width = 300px | bottomcaption = {{c|{{smaller|'''Fig. 20.—Donkey's-ear Block for Shooting Wide Surfaces.'''}}}} }} {{figure | image = cc&j-fig21--mitre template.png | position = absolute | figureleft = 125px | figuretop = 495px | width = 180px | bottomcaption = {{c|{{smaller|'''Fig. 21.—Mitre Template.'''}}}} }} {{figure | image = cc&j-fig22--spirit level.png | position = absolute | figureleft = 150px | figuretop = 360px | width = 400px | bottomcaption = {{c|{{smaller|'''Fig. 22.—Spirit Level.'''}}}} }} {{figure | image = cc&j-fig23--plumb rule.png | position = absolute | figuretop = 150px | width = 125px | bottomcaption = {{c|{{smaller|'''Fig. 23.—Plumb Rule.'''}}}} }} {{figure | image = cc&j-fig24--plumb square.png | position = absolute | figureleft = 320px | figuretop = 470px | width = 280px | caption = {{c|{{smaller|'''Fig. 24.—Plumb Square.'''}}}} | top = 250px | left = 60px }} }}
{{Block center}}
Title
[edit]{{Block center|title="CAPTION POSING AS TITLE"| <poem>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</poem>}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Width
[edit]{{Block center|width=300px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Max-width
[edit]Note: You will probably need to "zoom" in and out to see the effect demonstrated.
{{Block center|max-width=10em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}}
{{Block center}}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Style
[edit]{{Block center|style=font-style:italic|<poem> Lorem ipsum dolor sit amet, {{gap}}consectetuer adipiscing elit. Aenean commodo ligula eget dolor; {{gap}}Aenean massa. </poem>}}
{{Block center}}
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Align
[edit]{{Block center|align=right|<poem> Lorem ipsum dolor sit amet, {{gap}}consectetuer adipiscing elit. Aenean commodo ligula eget dolor; {{gap}}Aenean massa. </poem>}}
{{Block center}}
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Poetry
[edit]{{Block center|<poem> Lorem ipsum dolor sit amet, :consectetuer adipiscing elit. Aenean commodo ligula eget dolor; :Aenean massa. </poem>}}
{{Block center}}
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.
Split-page
[edit]{{Block center/s|title={{uc|Berrying}}}} <poem>'May be true what I had heard,— Earth's a howling wilderness, Truculent with fraud and force,' Said I, strolling through the pastures, And along the river-side. Caught among the blackberry vines, Feeding on the Ethiops sweet, Pleasant fancies overtook me. I said, 'What influence me preferred, Elect, to dreams thus beautiful?' The vines replied, 'And didst thou deem No wisdom from our berries went?' </poem> {{div end}}
{{Block center/s}}
'May be true what I had heard,—
Earth's a howling wilderness,
Truculent with fraud and force,'
Said I, strolling through the pastures,
And along the river-side.
Caught among the blackberry vines,
Feeding on the Ethiops sweet,
Pleasant fancies overtook me.
I said, 'What influence me preferred,
Elect, to dreams thus beautiful?'
The vines replied, 'And didst thou deem
No wisdom from our berries went?'
'May be true what I had heard,—
Earth's a howling wilderness,
Truculent with fraud and force,'
Said I, strolling through the pastures,
And along the river-side.
Caught among the blackberry vines,
Feeding on the Ethiops sweet,
Pleasant fancies overtook me.
I said, 'What influence me preferred,
Elect, to dreams thus beautiful?'
The vines replied, 'And didst thou deem
No wisdom from our berries went?'