Template:Poem/doc
This template serves as an alternative for Extension:Poem before that extension is enabled on this wiki.
Pass the content of poem to {{{1}}} and it will act like <poem>{{{1}}}</poem>. Adding classes, styles and a "compact" attribute to the poem block is not supported by this template.
| Input | Output | Explanation |
|---|---|---|
Hello
{{Poem|ABCDEFG
HIJKLMN
OPQ RST
UVW XYZ
}}
there
|
Hello
ABCDEFG there |
|
Hello
{{Poem|
ABCDEFG
HIJKLMN
OPQ RST
UVW XYZ
}}
there
|
Hello
there |
Newlines before the content are reserved. Those after are not. |
Hello
{{Poem|1=
ABCDEFG
HIJKLMN
OPQ RST
UVW XYZ
}}
there
|
Hello
ABCDEFG there |
The named argument format |1= strips the leading and trailing whitespaces within the content.
|
{{Poem
|GBA=Rhythm Tengoku
DS=Rhythm Tengoku Gold
Wii=Minna no Rhythm Tengoku
3DS=Rhythm Tengoku: The Best+
Switch=Rhythm Tengoku: Miracle Stars
}}
|
Oops! The parser thought the template was given an argument named {{{GBA}}} and found nothing for {{{1}}}...
| |
{{Poem
|DS{{=}}''[[Rhythm Heaven]]''
Wii{{=}}''[[Rhythm Heaven Fever]]''
3DS{{=}}''[[Rhythm Heaven Megamix]]''
Switch{{=}}''[[Rhythm Heaven Groove]]''
}}
|
Replacing all By the way, wiki markups can be included in the content. | |
{{Poem|1=
GBA={{Nihongo|Rhythm Tengoku}}
:DS={{Nihongo|Rhythm Tengoku Gold}}
::Wii={{Nihongo|Minna no Rhythm Tengoku}}
:::3DS={{Nihongo|Rhythm Tengoku: The Best+}}
::::Switch={{Nihongo|Rhythm Tengoku: Miracle Stars}}
}}
|
GBA=Rhythm Tengoku |
The named argument format completely rids you of worries about equal signs. As a mimic of Extension:Poem, each colon at the start of a line is transformed to a 1em-wide inline margin. |