सामग्रीमा जानुहोस्

ढाँचा:Poemquote/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

A template for quoting poems, song lyrics, and other things that have frequent line breaks and other things that would generally be ignored in standard wiki formatting. Based on {{Quote}}; see there for further usage details.

Markup Renders as
<syntaxhighlight lang="HTML">
{{Poemquote
|text=<!-- or: 1= -->Wikipedia
One encyclopedia
For all to edit
|char=unnamed voice in author's head
|sign= {{U|Davidwr}}
|source=<!-- or 4= -->[[User:Davidwr/WikiHaiku20160820]]
|title=<!-- or: 3= -->"A Wikipedia Haiku"
|style=<!-- standard CSS style goes here -->
}}</syntaxhighlight>

Wikipedia
One encyclopedia
For all to edit

unnamed voice in author's head, in Davidwr, "A Wikipedia Haiku", User:Davidwr/WikiHaiku20160820

Compare with {{Quote}}:

Markup Renders as
<syntaxhighlight lang="HTML">
{{Quote
|text=<!-- or: 1= -->Wikipedia
One encyclopedia
For all to edit
|char=unnamed voice in author's head
|sign= {{U|Davidwr}}
|source=<!-- or 4= -->[[User:Davidwr/WikiHaiku20160820]]
|title=<!-- or: 3= -->"A Wikipedia Haiku"
|style=<!-- standard CSS style goes here -->
}}</syntaxhighlight>

Wikipedia

One encyclopedia

For all to edit

unnamed voice in author's head, in Davidwr, "A Wikipedia Haiku", User:Davidwr/WikiHaiku20160820

Note that while the version above using {{Quote}} may appear to work in some browsers, it does not do so consistently in all of them. Use <poem>...</poem> – or a template like {{Poemquote}} that implements it – around material that requires that whitespace formatting be preserved as in the original, such as poems and interlinear glosses. Due to limitations of how MediaWiki parses wikimarkup and HTML, attempts to do this by just inserting blank lines and extra spaces will not work. This is true of all block elements. (Technical note: Although {{Poemquote}} uses the Tag:#poem markup rather than using <poem>, it is functionally the same.)

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Poemquote in articles based on its TemplateData.

TemplateData for Poemquote

Syntax error in JSON.