Extension:Poem/hi

Poem एक्सटेंशन कविता या ऐसी चीज़ों को के ज़रिए आसानी से प्रारूपित करने देता है। जब एक्सटेंशन सक्षम हो जाता है, आप टेक्स्ट के किसी भी ब्लॉक को  टैगों के अंदर रख सकते हैं, जिसका कुछ ऐसा असर होगा:


 * सभी नए पंक्तियों को टैग्स में बदलकर रखा जाता है
 * टेक्स्ट को ब्लॉक को टैग के (और "" क्लास के एक div के भी) अंदर रखा जाता है
 * पंक्ति के शुरुआत के कोलनों को एक 1em इनडेंटेशन में बदल दिया जाता है
 * पंक्ति के शुरुआत के रिक्त स्थान को रखा जाता है और ये टैग को इन्वोक नहीं करते

The extension preserves wikilinks, bolding, etc. if they are present in the poem.

उदाहरण


शैली
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:

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" विकल्प
Applying the tag with the compact option to a text of more than two lines, every line becomes a separate paragraph. (That is to say, it allows for more compact markup, not for a more compact output.)

Subsequent use of the tag with the compact option, with up to two newlines in between, gives just a single newline between texts, not a new paragraph.

Thus, applied to texts of more than two lines each, every line becomes a separate paragraph, except that the last line of each text and the first line of the next text are combined into one paragraph.



समस्याएँ और समाधान

 * Variables and ParserFunctions do work inside the  container, but NOT within the  tag itself; this prevents templates with code such as.
 * One workaround is to use  instead.
 * Another way is to use the  magic word:.
 * NB: this would however seem not to work with the "compact" option.