![]() | This is the template test cases page for the sandbox of Template:Center block. 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{{Center block}} |
---|
{{Center block}} {{Center block}} {{{1}}} {{{1}}} |
No-parameter line-wrapping
edit{{Center block}} |
---|
{{Center block|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.}} {{Center block}} 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{{Center block}} |
---|
{{Center block|sufficient attribution under the Creative Commons license}} {{Center block}} sufficient attribution under the Creative Commons license sufficient attribution under the Creative Commons license |
Height and width
edit{{Center block}} |
---|
{{Center block|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} {{Center block}} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Title handling
edit{{Center block}} |
---|
<div style="margin-left:50%;width:50%;">{{Center block|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> {{Center block}} 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{{Center block}} |
---|
{{Center block|width=300px|height=200px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.|talign=right}} {{Center block}} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Justification handling
edit{{Center block}} |
---|
{{Center block|width=300px|{{lorem ipsum}} Aenean massa.|talign=justify}} {{Center block}} 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{{Center block/s}} |
---|
{{Center block/s|talign=right|width=300px}}{{lorem ipsum}} {{page break}} Aenean massa. {{div end}} {{Center block/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{{Center block}} |
---|
{{Center block|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 }} }} {{Center block}} |
Title
edit{{Center block}} |
---|
{{Center block|title="CAPTION POSING AS TITLE"| <poem>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</poem>}} {{Center block}} "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{{Center block}} |
---|
{{Center block|width=300px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} {{Center block}} 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.
{{Center block}} |
---|
{{Center block|max-width=10em|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/> Aenean commodo ligula eget dolor. Aenean massa.}} {{Center block}} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean massa. |
Style
edit{{Center block}} |
---|
{{Center block|style=font-style:italic|<poem> Lorem ipsum dolor sit amet, {{gap}}consectetuer adipiscing elit. Aenean commodo ligula eget dolor; {{gap}}Aenean massa. </poem>}} {{Center block}} Lorem ipsum dolor sit amet, Lorem ipsum dolor sit amet, |
Align
edit{{Center block}} |
---|
{{Center block|align=right|<poem> Lorem ipsum dolor sit amet, {{gap}}consectetuer adipiscing elit. Aenean commodo ligula eget dolor; {{gap}}Aenean massa. </poem>}} {{Center block}} Lorem ipsum dolor sit amet, Lorem ipsum dolor sit amet, |
Poetry
edit{{Center block}} |
---|
{{Center block|<poem> Lorem ipsum dolor sit amet, :consectetuer adipiscing elit. Aenean commodo ligula eget dolor; :Aenean massa. </poem>}} {{Center block}} Lorem ipsum dolor sit amet, Lorem ipsum dolor sit amet, |
Split-page
edit{{Center block/s}} |
---|
{{Center block/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}} {{Center block/s}} Berrying
'May be true what I had heard,— Berrying
'May be true what I had heard,— |