Template:Qud quote: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(add noindent parameter to allow an option for the quote block to be unindented)
Line 1: Line 1:
<includeonly>{| 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 1em; line-height:1.5em; font-family:Source Code Pro, Lucida Console, Consolas; font-size:medium; color:#b1c9c3; border:4px solid #b1c9c3;"
<includeonly>{| 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 #b1c9c3;"
| 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|}}}
| 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|}}}
   |, <i>{{{3}}}</i>}}{{#if:{{{4|}}}

Revision as of 16:48, 18 November 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