Difference between revisions of "Template:Quote box"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly><div class="quotebox {{{class|}}}" style=" {{#switch: {{lc:{{{align|}}}}} | center = margin: auto; | left = float: left; clear: left; margin...")
 
m
 
Line 107: Line 107:
 
*sstyle: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding source parameters.
 
*sstyle: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding source parameters.
  
===Example===
 
 
<nowiki> {{Quote box
 
|quote  = Hitler tried.
 
|source = [[Darn]], ''[[Dignitas]]'', Insomnia49
 
}} </nowiki>
 
 
Makes:
 
 
{{Quote box
 
|quote  = Hitler tried.
 
|source = [[Darn]], ''[[Dignitas]]'', Insomnia49
 
}}
 
  
 
'''All credit to [http://en.wikipedia.org/wiki/Template:Quote_box Wikipedia].'''
 
'''All credit to [http://en.wikipedia.org/wiki/Template:Quote_box Wikipedia].'''
 
</noinclude>
 
</noinclude>

Latest revision as of 20:46, 22 April 2015


Template[edit]

{{Quote box
 |class =
 |title = 
 |quote = 
 |source = 
 |align = 
 |width = 
 |border = 
 |fontsize = 
 |bgcolor = 
 |style = 
 |title_bg = 
 |title_fnt = 
 |tstyle = 
 |qalign = 
 |qstyle = 
 |quoted = 
 |salign = 
 |sstyle = 
}} 

Parameters[edit]

Basic parameters[edit]

  • title = Optional title to appear at the top of the quote box.
  • quote = The quote or text to be displayed in the box.
  • source = Optional source of the quote (author, publication, etc.).

Main box styling[edit]

  • align: Alignment of the quote box on the page—left / right / center / none. Defaults to right alignment. Using align=none will remove word wrapping.
  • width: The width of the quote box. Defaults to the width of the quote included, unless |align=center where the width will default to 100%.
  • border: The width of the quote box border. Defaults to 1px. Remember to include 'px' or 'em' to specify the correct width.
  • fontsize: The fontsize of the quote box text. Defaults to 88%.
  • bgcolor: The RGB background color of the box. Defaults to #F9F9F9 (light gray).
  • style: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding parameters.

Title styling[edit]

  • title_bg: The RGB background color of the title. Defaults to #F9F9F9 (light gray).
  • title_fnt: The title font color. Defaults to black.
  • tstyle: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding title parameters.

Quote styling[edit]

  • qalign: Alignment of the quote element—left / right / center. Defaults to left.
  • qstyle: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding quote parameters.
  • quoted: If this parameter evaluates to true (is not 0, false, or empty) the quote box will enclose the quote in fat-quotes. Use judiciously, and read the Manual of Style.

Source styling[edit]

  • salign: Alignment of the source element—left / right / center. Defaults to the value of qalign.
  • sstyle: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding source parameters.


All credit to Wikipedia.