Jump to content

Template:Block center/testcases

From Wikisource

Empty

[edit]
{{Block center}}
{{Block center}}

{{Block center}}

{{{1}}}

{{Block center/sandbox}}

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

{{Block center/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]
{{Block center}}
{{Block center|sufficient attribution under the Creative Commons license}}

{{Block center}}

sufficient attribution under the Creative Commons license

{{Block center/sandbox}}

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

Aenean massa.

{{Block center/sandbox}}

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

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

Aenean massa.

{{Block center/sandbox}}

From Sandbox template

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

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

Aenean massa.

{{Block center/sandbox}}

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

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.

{{Block center/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]
{{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.

page Aenean massa.

{{Block center/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]
{{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}}

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.

{{Block center/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]
{{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.
      Aenean commodo ligula eget dolor.

   Aenean massa.

{{Block center/sandbox}}

"CAPTION POSING AS TITLE"

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

   Aenean massa.

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

Aenean massa.

{{Block center/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.

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

Aenean massa.

{{Block center/sandbox}}

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

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

{{Block center/sandbox}}

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

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

{{Block center/sandbox}}

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

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

{{Block center/sandbox}}

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

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

{{Block center/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?'