Wikia

Memory Alpha

Help:Poem

Discuss0
37,240pages on
this wiki
Revision as of 02:50, April 29, 2008 by Renegade54 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Help icon  Contents → Poem

The poem extension allows for easy inclusion of poems and similar material in MediaWiki pages, by simply putting them between <poem></poem> tags, instead of adding <br> to the end or : to the beginning of every line, which is common practice now. The extension preserves wikilinks, bolding, etc. if they are present in the poem, as well as indenting lines which start with spaces.

ExampleEdit

Input text Output
<poem>
In {{w|Xanadu}} did Kubla Khan
A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

So twice five miles of fertile ground
With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
Enfolding sunny spots of greenery.
</poem>

In Xanadu did Kubla Khan
A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

So twice five miles of fertile ground
With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
Enfolding sunny spots of greenery.

StyleEdit

The poem text is wrapped in a div, which has no style by default, but inherits any style or class option passed to the poem.

For example, while indented text can be used for simple examples to prevent filling and draw a nice blue box, it can be hard to read in some cases, since long lines aren't broken. A similar, but somewhat better effect can be obtained with
<poem style="border: 1px dashed #2f6fab;background-color: #222222; padding:1em">

When applied to the above example, the result is as follows:

In Xanadu did Kubla Khan
A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

So twice five miles of fertile ground
With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
Enfolding sunny spots of greenery.

"compact" optionEdit

Normally, the parser renders each poem in a paragraph. Occasionally this is not desired; using the compact option suppresses newlines in the poem, to allow adjacent compact poems to blend together.

Around Wikia's network

Random Wiki
http://en.memory-alpha.org/wiki/Help:Poem?oldid=820597
en.memory-alpha.org
crawl=CC-MAIN-2014-23
73916
application/http; msgtype=response
sha1:GOM6IKPRGMYAIX3PYBZACLNZWSJEEYI6
<urn:uuid:7b732e44-7312-4a70-9d55-ab7b5be01a95>
2014-07-30T21:18:44Z
23.235.46.194
sha1:F272H3EAFTHLO6RWPNPEKL5KG2IZXE5U
<urn:uuid:2ea38651-4d63-4d7f-8657-45c01a9d504e>
http://en.memory-alpha.org/wiki/Help:Poem?oldid=820597
response
<urn:uuid:8df05f2b-c76d-4d3a-98b7-84d8dedf61c8>
robots: classic
hostname: ip-10-146-231-18.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf