Jump to content

Template:Ppoem/testcases

From Wikisource
Blank params
{{Ppoem}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}


Blank params
{{Ppoem|}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}


Various features
{{Ppoem|
1 <<< {{di|O}}nce upon a midnight dreary, while I pondered, weak and weary,
Over many a quaint and curious volume of forgotten lore,
{{fqm|"}}While I nodded, nearly napping, suddenly there came a tapping,
 As of some one gently rapping, rapping at my chamber door.
"'Tis some visiter," I muttered, "tapping at my chamber door— >>> 5
::::::{raven_green} Only this, and nothing more."
>> {{sc|The Raven}}

{raven_green}
2 <<< This stanza has the class <code>raven_green</code> applied
To the whole stanza.

>>
This stanza is block-right-aligned
Like this

<>
And this stanza is block-centred
Like this

>> {{sc|The Raven}}

<> ''The End''
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
1 Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten lore,"While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber door.5"'Tis some visiter," I muttered, "tapping at my chamber door—      Only this, and nothing more."The Raven
2 This stanza has the class raven_green appliedTo the whole stanza.
This stanza is block-right-alignedLike this
And this stanza is block-centredLike this
The Raven
The End
1 Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten lore,"While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber door.5"'Tis some visiter," I muttered, "tapping at my chamber door—      Only this, and nothing more."The Raven
2 This stanza has the class raven_green appliedTo the whole stanza.
This stanza is block-right-alignedLike this
And this stanza is block-centredLike this
The Raven
The End
Indent
{{block center|width=25em|style=border:1px solid red;|
{{Ppoem|
Once upon a midnight dreary, while I pondered, weak and weary,
Over many a quaint and curious volume of forgotten lore,
While I nodded, nearly napping, suddenly there came a tapping,
As of some one gently rapping, rapping at my chamber door.
"'Tis some visiter," I muttered, "tapping at my chamber door—
::::::Only this, and nothing more."
}}
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten lore,While I nodded, nearly napping, suddenly there came a tapping,As of some one gently rapping, rapping at my chamber door."'Tis some visiter," I muttered, "tapping at my chamber door—      Only this, and nothing more."
Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten lore,While I nodded, nearly napping, suddenly there came a tapping,As of some one gently rapping, rapping at my chamber door."'Tis some visiter," I muttered, "tapping at my chamber door—      Only this, and nothing more."
Page breaks
{{Ppoem|end=follow|
This is the first
page and the stanza
}}
{{Ppoem|start=follow|end=stanza|
continues into this page.

But then, the second
page ends at the end of
a stanza.}}
{{Ppoem|start=stanza|end=same-line|
And the next page
is a new stanza.
Then there is a really long
}}
{{Ppoem|start=same-line|end=close|
''line that continues onto the next page.''

And finally normal
Lines to the end.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is the firstpage and the stanza continues into this page.
But then, the secondpage ends at the end ofa stanza.
And the next pageis a new stanza.Then there is a really long line that continues onto the next page.

And finally normalLines to the end.
This is the firstpage and the stanza continues into this page.
But then, the secondpage ends at the end ofa stanza.
And the next pageis a new stanza.Then there is a really long line that continues onto the next page.

And finally normalLines to the end.
Drop initials
{{Ppoem|
{{dropinitial|B|image=Examination and confession-b24926760-025.jpg|imgsize=80px}}EHOLD these acts and scan them well
behold their pervers way:
These left the lord, these did his truth
which shold have ben their stay.

{{dropinitial|B}}EHOLD these acts and scan them well
behold their pervers way:
These left the lord, these did his truth
which shold have ben their stay.

{{dropinitial|B|fl="}}EHOLD these acts and scan them well
behold their pervers way:
These left the lord, these did his truth
which shold have ben their stay.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
"BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
"BEHOLD these acts and scan them wellbehold their pervers way:These left the lord, these did his truthwhich shold have ben their stay.
Braces
{{Ppoem|
No Place so Sacred from such Fops is barr'd,
Nor is ''Paul's Church'' more safe than ''Paul's Church-yard'':
Nay, run to ''Altars''; ''there'' they'll talk you dead;
For ''Fools'' rush in where ''Angels'' fear to tread.
Distrustful ''Sense'' with modest Caution speaks; >>> {{brace2|3|r}}
It still ''looks home'', and ''short Excursions'' makes;
But ''ratling'' Nonsense in full ''Vollies'' breaks;
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
No Place so Sacred from such Fops is barr'd,Nor is Paul's Church more safe than Paul's Church-yard:Nay, run to Altars; there they'll talk you dead;For Fools rush in where Angels fear to tread.Distrustful Sense with modest Caution speaks;It still looks home, and short Excursions makes;But ratling Nonsense in full Vollies breaks;
No Place so Sacred from such Fops is barr'd,Nor is Paul's Church more safe than Paul's Church-yard:Nay, run to Altars; there they'll talk you dead;For Fools rush in where Angels fear to tread.Distrustful Sense with modest Caution speaks;It still looks home, and short Excursions makes;But ratling Nonsense in full Vollies breaks;
Floating punctuation
{{Ppoem|
{{fqm}}No Place so Sacred from such Fops is barr'd,
Nor is ''Paul's Church'' more safe than ''Paul's Church-yard'':
Nay, run to ''Altars''; ''there'' they'll talk you dead;
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
"No Place so Sacred from such Fops is barr'd,Nor is Paul's Church more safe than Paul's Church-yard:Nay, run to Altars; there they'll talk you dead;
"No Place so Sacred from such Fops is barr'd,Nor is Paul's Church more safe than Paul's Church-yard:Nay, run to Altars; there they'll talk you dead;
Line-beginning >>>
{{Ppoem|
This is a normal line, and
>>> this
word was right-floated.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a normal line, andthis word was right-floated.
This is a normal line, andthis word was right-floated.


Internal rules
{{Ppoem|
This is a the end of a verse
{{rule|4em}}
And this is the next one.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a the end of a verse
And this is the next one.
This is a the end of a verse
And this is the next one.


Internal rules
{{Ppoem|
This is a the end of a verse

{{rule|4em}}

And this is the next one.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a the end of a verse


And this is the next one.
This is a the end of a verse


And this is the next one.


Internal rules
{{Ppoem|
This is a the end of a verse

<> {{bar|4}}

And this is the next one.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a the end of a verse
————
And this is the next one.
This is a the end of a verse
————
And this is the next one.


Internal rules (proposed syntax -single rule)
{{Ppoem|
This is a the end of a verse
<-:4>
And this is the next one.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a the end of a verse<-:4>And this is the next one.
This is a the end of a verse<-:4>And this is the next one.


Internal rules (proposed syntax double rule)
{{Ppoem|
This is a the end of a verse
<--:4>
And this is the next one.
}}
Side by side comparison
{{Ppoem}}{{Ppoem/sandbox}}
This is a the end of a verse<--:4>And this is the next one.
This is a the end of a verse<--:4>And this is the next one.