More languages
More actions
(Created page with "<div class="quotebox pullquote {{#switch: {{lc:{{{align|}}}}} | center = centered | left = floatleft | none = | floatright }} {{{class|}...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
}} {{{qclass|}}}" style=" | }} {{{qclass|}}}" style=" | ||
{{{qstyle|}}}"><!-- | {{{qstyle|}}}"><!-- | ||
-->{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly | -->{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}}}}}}}<!-- | ||
--></div> | --></div> | ||
{{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|<cite class="{{#switch: {{lc:{{{salign|{{{qalign|{{{halign|left}}} }}} }}} }} | {{#if:{{{author|{{{source|}}}}}}{{{2|}}}{{{3|}}}|<cite class="{{#switch: {{lc:{{{salign|{{{qalign|{{{halign|left}}} }}} }}} }} | ||
Line 30: | Line 30: | ||
}}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--— -->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->, }}}}{{{source|{{{3|}}}}}}</cite>}} | }}" style="{{{sstyle|}}}"><!--Manually inserted dashes will need to be removed from uses of the template first, I guess, then enable this:--><!--— -->{{{author|{{{2|}}}}}}{{#if:{{{author|}}}{{{2|}}}|{{#if:{{{source|}}}{{{3|}}}|<!--Display comma-space only if both cite parameters are present.-->, }}}}{{{source|{{{3|}}}}}}</cite>}} | ||
</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }} | </div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using quote box with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Quote box]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | align | author | bgcolor | border | class | content | fontsize | halign | qalign | qclass | qstyle | quote | quoted | quotetext | salign | source | sstyle | style | tclass | text | title | title_bg | title_fnt | tstyle | width }} | ||
<noinclude>'''Usage:''' | |||
<nowiki> | |||
{{Quote box | |||
|title = | |||
|quote = | |||
|author = | |||
|source = | |||
|align = | |||
|width = | |||
|border = | |||
|fontsize = | |||
|bgcolor = | |||
|style = | |||
|title_bg = | |||
|title_fnt = | |||
|tstyle = | |||
|qalign = | |||
|qstyle = | |||
|quoted = | |||
|salign = | |||
|sstyle = | |||
}} | |||
</nowiki> | |||
'''Example:''' | |||
<nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
}} | |||
</nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
}} | |||
'''Adding width:''' | |||
<nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
| width = 20% | |||
}} | |||
</nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
| width = 20% | |||
}}Quote boxes also wrap around text: | |||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |||
'''Aligning:''' | |||
<nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
| width = 20% | |||
| align = left | |||
}} | |||
</nowiki> | |||
{{Quote box | |||
| author = Karl Marx | |||
| quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | |||
| source = ''Critique of Hegel's philosophy of right'', Introduction | |||
| width = 20% | |||
| align = left | |||
}} | |||
Now the template is aligned left. It can be centered as well. | |||
</noinclude> |
Latest revision as of 08:37, 14 June 2021
Usage:
{{Quote box |title = |quote = |author = |source = |align = |width = |border = |fontsize = |bgcolor = |style = |title_bg = |title_fnt = |tstyle = |qalign = |qstyle = |quoted = |salign = |sstyle = }}
Example:
{{Quote box | author = Karl Marx | quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | source = ''Critique of Hegel's philosophy of right'', Introduction }}
Karl Marx, Critique of Hegel's philosophy of right, Introduction
Adding width:
{{Quote box | author = Karl Marx | quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | source = ''Critique of Hegel's philosophy of right'', Introduction | width = 20% }}
Karl Marx, Critique of Hegel's philosophy of right, Introduction
Quote boxes also wrap around text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Aligning:
{{Quote box | author = Karl Marx | quote = The weapon of criticism cannot, of course, replace criticism of the weapon, material force must be overthrown by material force; but theory also becomes a material force as soon as it has gripped the masses. Theory is capable of gripping the masses as soon as it demonstrates ad hominem, and it demonstrates ad hominem as soon as it becomes radical. To be radical is to grasp the root of the matter. | source = ''Critique of Hegel's philosophy of right'', Introduction | width = 20% | align = left }}
Karl Marx, Critique of Hegel's philosophy of right, Introduction
Now the template is aligned left. It can be centered as well.