Jump to content

Template talk:Bq

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This template can simply supersede Template:Quote

 – Bq has merged into Template:Quote.

I created this template as a means of making <blockquote>...</blockquote> usage (for actual block quotations or for other indented text block purposes) easier while also adding sometimes-essential XHTML/HTML5 features like the possibility of including lang=, CSS style directives, and information in the markup, without having to actually do it in HTML. Wiki editors like wikicode not HTML. This is part of my long work to ensure that all semantic markup features of modern HTML are available here (see Category:Semantic markup templates).

In the course of working up the template, I started adding compatibility features for the other, older block quotation templates, and realized that {{Bq}} can actually totally replace {{Quote}}, and as long as you're willing to lose a feature here and there like cutesy borders and annoying giant quotation glyphs, it can be used as a drop-in or in one case near-drop-in replacement for every blockquoting template on the system. — SMcCandlish Talk⇒ ʕ(Õلō Contribs. 15:44, 2 February 2012 (UTC)

Belated update: As of HTML5, it is required that <blockquote> be used only for quotations, so "other indented text block purposes" above is no longer valid. For that use, see Template:Block indent, which uses <div>.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  05:16, 30 July 2015 (UTC)

Newlines

To preserve newlines and spaces, use <poem>:

Once upon a midnight dreary, while I pondered, weak and weary,
Over many a quaint and curious volume of forgotten lore —
While I nodded, nearly napping, suddenly there came a tapping,
As of some one gently rapping, rapping at my chamber door.
"'Tis some visiter," I muttered, "tapping at my chamber door —
            Only this and nothing more."

Should be able to add this as an option using #tag:poem.

And no, you can't use #tag:nowiki, because once someone stuffs <ref> in it, it will expose the strip markers. #tag:poem appears happy with <ref>.

---— Gadget850 (Ed) talk 00:13, 7 February 2012 (UTC)

Formatting bug

 – Bq has merged into Template:Quote.

There is a small display bug on the page: The green documentation box ends too early, before the "Happily" part with the HTML-comment workaround (for a more readable solution for the bug explained in the text) starts. The same bug does not occur on Template:Quote. --Florian Blaschke (talk) 03:12, 26 January 2013 (UTC)

Add left indent?

 – Bq has merged into Template:Quote.

I just tried to fix a problem with a blockquote not indenting properly relative to the thing above it when the thing above is already indented with respect to the left page margin. The quote and bq templates do not allow it. Would anyone be willing to implement it and document it here?

Here is the description of the problem: Template_talk:Quote#Not_visible_when_wrapped_around_a_left-aligned_image

Here is an example of a quote that does not indent because there is an image to its left: Sorcerer film, old edit (quote begins with "Our trucks were")

Here is a proposed workaround / template fix: Template_talk:Quote/Archive_1#Adding_indenting_parameter.3F

Any takers? – Jonesey95 (talk) 17:35, 14 August 2013 (UTC)

I've just encountered this problem too. I'd change the code myself but am unsure what exactly to change, I don't want to break the template ... --Florian Blaschke (talk) 00:12, 6 January 2014 (UTC)
If wrapping the template inside {{flowlist}} resolves the problem, then we can add a switch with the flowlist class. --  Gadget850 talk 01:56, 6 January 2014 (UTC)