Template:Tpp/doc
This is a documentation subpage for Template:Tpp. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses TemplateStyles: |
This template uses TemplateStyles: |
Titled Proper Poem.
Template for poems for personal use (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 will 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}.
- Relative indents: +[digit]> (at beginning of line) indents the line exactly the length of the line respectively [digit] lines above (for 1 line you can just do +>).
- ; (at beginning of line, as many as you want) does a reverse indent (opposite of :)
- _..._ (on its own line, instead of a stanza break): makes a break [number or _'s] lines high
- ↑ 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
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) Sometimes, after a while, And often irregularly, it does this. +2>And the next stanza picks Up where the last one left. Other times, +> It's not on A Stanza break, or even It picks Up on a line From a while ago +3>Like this one does ;{{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—no, it's not ___ Because sometimes you need Longer stanza breaks}}
No description.
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 |