Template:Center block/testcases

From Wikisource
Jump to navigation Jump to search

Empty

[edit]
{{Center block}}
{{Center block}}

{{Center block}}

{{{1}}}

{{Center block/sandbox}}

{{{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.

{{Center block/sandbox}}

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

{{Center block/sandbox}}

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 commodo ligula eget dolor.

Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

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 commodo ligula eget dolor.

Aenean massa.

{{Center block/sandbox}}

From Sandbox template

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

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 commodo ligula eget dolor.

Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

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.

{{Center block/sandbox}}

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.

page Aenean massa.

{{Center block/s/sandbox}}

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.

page 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}}

cc&j-fig19--donkey's ear shooting block.png

Fig. 19.—Donkey's-ear Shooting Block.

cc&j-fig20--donkey's ear block for shooting wide surfaces.png

Fig. 20.—Donkey's-ear Block for Shooting Wide Surfaces.

cc&j-fig21--mitre template.png

Fig. 21.—Mitre Template.

cc&j-fig22--spirit level.png

Fig. 22.—Spirit Level.

cc&j-fig23--plumb rule.png

Fig. 23.—Plumb Rule.

cc&j-fig24--plumb square.png

Fig. 24.—Plumb Square.

{{Center block/sandbox}}

cc&j-fig19--donkey's ear shooting block.png

Fig. 19.—Donkey's-ear Shooting Block.

cc&j-fig20--donkey's ear block for shooting wide surfaces.png

Fig. 20.—Donkey's-ear Block for Shooting Wide Surfaces.

cc&j-fig21--mitre template.png

Fig. 21.—Mitre Template.

cc&j-fig22--spirit level.png

Fig. 22.—Spirit Level.

cc&j-fig23--plumb rule.png

Fig. 23.—Plumb Rule.

cc&j-fig24--plumb square.png

Fig. 24.—Plumb Square.

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.
      Aenean commodo ligula eget dolor.

   Aenean massa.

{{Center block/sandbox}}

"CAPTION POSING AS TITLE"

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
      Aenean commodo ligula eget dolor.

   Aenean massa.

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 commodo ligula eget dolor.

Aenean massa.

{{Center block/sandbox}}

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.

{{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 commodo ligula eget dolor.

Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

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,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

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,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

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,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

{{Center block/sandbox}}

Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
Aenean massa.

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,—
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?'

{{Center block/s/sandbox}}

Berrying

'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?'