Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the easiest way to add a quote box to mediawiki?

I installed mediawiki on my server as my personal knowledge base. Sometimes I copy some stuff from Web and paste to my wiki - such as tips & tricks from somebody's blog. How do I make the copied content appear in a box with border?

For example, the box at the end of this blog post looks pretty nice:
http://blog.dreamhost.com/2008/03/21/good-reminiscing-friday/

I could use the pre tag, but paragraphs in a pre tag won't wrap automatically.. Any ideas?

like image 327
SamS Avatar asked Sep 25 '08 01:09

SamS


People also ask

How do you make a quote box?

Block quotations start on their own line. The entire block quotation is indented 0.5 inches, the same as the indentation for a new paragraph, and is double spaced. Block quotations are not surrounded by any quotation marks. The punctuation at the end of the block quotation goes before the citation.

What are quote boxes for?

For very short quotes, {{Rquote}} (with decorative quotation marks) or {{Quote box}} (framed) can be used to set the quote off to either the right or left as in a magazine sidebar. This can be effective on essay pages and WikiProject homepages.


2 Answers

I made a template in my wiki called Template:quote, which contains the following content:

<div style="background-color: #ddf5eb; border-style: dotted;"> {{{1}}} </div> 

Then I can use the template in a page, e.g.,

{{quote|a little test}}

Works pretty well - Thanks!

like image 178
SamS Avatar answered Oct 04 '22 05:10

SamS


<blockquote style="background-color: lightgrey; border: solid thin grey;"> Det er jeg som kjenner hemmeligheten din. Ikke et pip, gutten min. </blockquote> 

The blockquotes are better than divs because they "explain" that the text is actually a blockqoute, and not "just-some-text". Also a blockquote will most likely be properly indented, and actually look like a blockqoute.

like image 24
Oddmund Avatar answered Oct 04 '22 05:10

Oddmund