Template:Qud quote: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(replaced it to use Qud dialogue. now with cyan borders!)
m (add 'centered' parameter)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{qud dialogue|text={{{1}}}|bordercolor=C}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
<includeonly>{| class="qud-quote-box" style="background: none; background: -o-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px); background: -moz-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px); background: -webkit-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px); background: repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px); -o-background-size: 100% 4px; -moz-background-size: 100% 4px;-webkit-background-size: 100% 4px; background-size: 100% 4px;margin:0.5em 1em 0.5em {{#if:{{{noindent|}}}|0em|1em}}; line-height:1.5em; font-family:Source Code Pro, Lucida Console, Consolas; font-size:medium; color:#b1c9c3; border:4px solid {{{bordercolor|#b1c9c3}}}; {{#if:{{{fullwidth|}}}|width:100%;}} {{#if:{{{centered|}}}|text-align:center;}}"
| style="padding:  0.8em 2.5em 0.8em 2.5em;" |{{#tag:poem|{{Qud text| {{{1}}}{{#if:{{{2|}}}|<p style="text-align: right;"> — {{{2}}}{{#if:{{{3|}}}
  |, <i>{{{3}}}</i>}}{{#if:{{{4|}}}
  |, {{{4}}} }}</p>}}}}}}
|}</includeonly><noinclude>{{doc}}[[Category:Qud Templates]]
</noinclude>

Latest revision as of 01:04, 20 December 2020

Usage

{{qud quote|This is a quote.}} prints:

This is a quote.

{{qud quote|This is a quote.|Author}} prints:

This is a quote.

— Author

{{qud quote|This is a quote.|Author|subject}} prints:

This is a quote.

— Author, subject

{{qud quote|This is a quote.|[[Main Page|Some guy]]|subject}} prints:

This is a quote.

Some guy, subject

{{qud quote|This is an unidented quote.|noindent=true}} prints:

This is an unindented quote.

{{qud quote|This shows off three additional parameters: fullwidth, centered, and bordercolor|fullwidth=true|bordercolor=green|centered=true}}

This shows off three additional parameters: fullwidth, centered, and bordercolor