Template documentation[view] [edit] [history] [purge]
| ๐ Image | This template uses Lua: |
| ๐ CSS | This template uses TemplateStyles: |
| ๐ CSS | This template uses TemplateStyles: |
Titled Proper Poem.
Template for poems (by Alien333, tell me if it messes up or needs to be updated).
This is {{ppoem}} except it makes a title, but I also put here in general things I would like for poems. Means I also use this on not-title pages sometimes.
Use
[edit]- 1/title the title of the poem.
- 2/text the text of the poem.
- st/start and e/end are passed, respectively, to the first and the last poem delimited by >><<.
- All the rest is also passed to ppoem.
The full parameter names always take precedence over the abbreviation if both are available.
If text and 2 are not given, 1 will be assumed to contain the text (title will always be the title).
This aims to factorize formatting, with the title having class .wst-tpp-title and the first words[1] .wst-tpp-first-words.
(This template will not make empty titles or poems.)
Other things:
- >><< (on its own line) delimits centering, meaning makes the centering of different parts of the poem independent. Note: for single stanzas, rather use ppoem's {cblock}.
- ; (at beginning of line, as many as you want) does a reverse indent (opposite of :)
- โ selected by the pretty consistently applied criteria of at least two letters a word at a time. The first words class is only applied when there is no HTML/mw formatting on that line. That is a) to not have to bother with stuff like links, and b) because sometimes (especially with two-word names) it doesn't select the right words, and like this you can just manually add the corresponding template to that line, and it won't add anything on top
Examples
[edit]Example
{{tpp|Showing Everything|
{smaller}
{{fqm}}There is often
A quotation from another poem
Centered apart
>>{{sc|Someone}}
>><<
Other Times,
:The Start
Has Very
:Short Lines
>><<
But then it gets much longer
(Only do this if in the original,
It is centered differently)
;{{sc|Someone}}
Other times, in plays
Most lines are indented
Except for the name of those speaking
;{{sc|Someone else}}
And it would be a bore
To indent all the other lines
So it's simpler to reverse indent
Those that are annoying
{{***|3|4em|char=ยท}}
I think that's it}}
A quotation from another poem
Centered apart
Someone
The Start
Has Very
Short Lines
(Only do this if in the original,
It is centered differently)
Other times, in plays
Most lines are indented
Except for the name of those speaking
And it would be a bore
To indent all the other lines
So it's simpler to reverse indent
Those that are annoying
ยทยทยท
I think that's it
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | 1 title | The title to put on top | Content | optional |
| Text | 2 text | The text of the main poem | Content | optional |
| End | e end | Same as ppoem's end
| String | optional |
| Start | st start | Same as ppoem's start.
| String | optional |
