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 with these links: |
Empty
edit{{Block center}} |
---|
{{Block center}} {{Block center}} {{{1}}} {{{1}}} |
No-parameter line-wrapping
edit{{Block center}} |
---|
{{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}} |
---|
{{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}} |
---|
{{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 massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Title handling
edit{{Block center}} |
---|
<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}} From Sandbox template
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. From Sandbox template
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Right alignment handling
edit{{Block center}} |
---|
{{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 massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Justification handling
edit{{Block center}} |
---|
{{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}} |
---|
{{Block center/s|talign=right|width=300px}}{{lorem ipsum}} {{page break}} Aenean massa. {{div end}} {{Block center/s}} 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. |
Images
edit{{Block center}} |
---|
{{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}} |
---|
{{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}} "CAPTION POSING AS TITLE"
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. "CAPTION POSING AS TITLE"
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. |
Width
edit{{Block center}} |
---|
{{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 massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Max-width
editNote: You will probably need to "zoom" in and out to see the effect demonstrated.
{{Block center}} |
---|
{{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 massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Style
edit{{Block center}} |
---|
{{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, Lorem ipsum dolor sit amet, |
Align
edit{{Block center}} |
---|
{{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, Lorem ipsum dolor sit amet, |
Poetry
edit{{Block center}} |
---|
{{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, Lorem ipsum dolor sit amet, |
Split-page
edit{{Block center/s}} |
---|
{{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}} Berrying
'May be true what I had heard,— Berrying
'May be true what I had heard,— |