VOOZH about

URL: https://en.wikisource.org/wiki/Template:Tpp

โ‡ฑ Template:Tpp - Wikisource, the free online library


Jump to content
From Wikisource
๐Ÿ‘ Image
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 :)
  1. โ†‘ 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}}
Showing Everything
"There is often
A quotation from another poem
Centered apart
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)

Someone
Other times, in plays
Most lines are indented
Except for the name of those speaking

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
ยทยทยท
I think that's it

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Title1 title

The title to put on top

Contentoptional
Text2 text

The text of the main poem

Contentoptional
Ende end

Same as ppoem's end

Suggested values
close follow stanza
Default
close
Example
stanza
Stringoptional
Startst start

Same as ppoem's start.

Suggested values
open stanza follow
Default
open
Example
stanza
Stringoptional