Module:Poetry/doc
Appearance
This is a documentation subpage for Module:Poetry. It contains usage information, categories and other content that is not part of the original module page. |
Summary
[edit]Lua support routines for poetry-related templates.
Entry Points
[edit]divify
: encapsulate each separate line in passed text block in <div>-</div> sequences.rmuid
: remove any and all occurrences of a list of values (typically unit-name-codes e.g. "em", "px" etc.) from passed string and return whatever remains. Useful for isolating multiplier factors prior to use in later calculations.
Utilisation
[edit]Currently used by these templates:
- {{constant leading}} (alias: {{divify}}: Mark text block to be rendered with equal line height separating both normal lines and paragraphs.
- {{stanza}}: Format stanzas of poetry with common margin and hanging indent characteristics. Also supports presentation of an optional leading drop-capital letter.