Difference between revisions of "Template:Quote"
From LAH Wiki
m (Conditionalizing the {{{who}}} param so it can be used in talk pages) |
|||
Line 1: | Line 1: | ||
{| style="border:1px solid transparent; background:transparent; width:{{{width}}}" align="{{#if:{{{align|}}}|{{{align}}}|center}}" | {| style="border:1px solid transparent; background:transparent; width:{{{width}}}" align="{{#if:{{{align|}}}|{{{align}}}|center}}" | ||
− | | | + | | |
− | + | <table> style="border:1px dotted dimgray; width:100%" cellpadding=0 | |
− | | "<includeonly>{{{quote}}}</includeonly><noinclude>Sample quote text.</noinclude>" | + | | "<includeonly>{{{quote}}}</includeonly><noinclude>Sample quote text.</noinclude>"<!-- |
− | + | ||
− | | align=right | + | --><includeonly>{{#if {{{who|}}}|<table align=right><tr><td>— {{{who}}}</td></tr></table>}}</includeonly> |
+ | </noinclude><table align=right><tr><td>— {{{who}}}</td></tr></table></noinclude> | ||
|} | |} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
− | A simple template for inserting quotes. It has the following parameters. | + | A simple template for inserting quotes into user pages and talk pages. It has the following parameters. |
− | *'''width''' - the width of the template. | + | *'''width''' - the width of the template. Optional. |
− | *'''align''' - the alignment of the template. if left blank, it will default to center. | + | *'''align''' - the alignment of the template. if left blank, it will default to center. If undefined, will default to center. |
*'''quote''' - the text of the quote. The template will add the quotation marks (""). | *'''quote''' - the text of the quote. The template will add the quotation marks (""). | ||
− | *'''who''' - the person to whom the quote is to be attributed. The template will add the dash ( | + | *'''who''' - the person to whom the quote is to be attributed. The template will add the dash (—). Optional. |
+ | |||
+ | The code to include in the page is: | ||
<pre> | <pre> |