Template:Quote: Difference between revisions

From ENDLESS Legend 2 Official Wiki
TENEMENT (talk | contribs)
Created page with " <includeonly><div class="el2-quotebox"> <h3>{{{title|title}}}</h3> <div> {{{content| * 36px|link= Unknown}}} </div> </div></includeonly><noinclude> infobox test ignore delete etc <templatestyles src="Template:Testbox/styles.css" /> == Parameters == {| class="wikitable" ! Parameter !! Notes !! Status |- | title | Content box title | '''required''' |- | content | Content to appear in the box | '''required''' |- | col | Number of columns for content..."
 
m make styles included by default (previously you had it in the "noinclude" section, so it wouldn't be included by any page using the template)
 
(25 intermediate revisions by one other user not shown)
Line 1: Line 1:


<includeonly><div class="el2-quotebox">
<includeonly><!--
<h3>{{{title|title}}}</h3>
--><templatestyles src="Template:Quote/styles.css" /><!--
--><div class="quote">
<div style="align-self: start; justify-self:center; font-size: 150%;">
"</div>
<div style="align-self: center; justify-self:center; font-style: oblique;">
{{{content}}}
</div>
<div style="align-self:end; justify-self:center; font-size: 150%;">
"</div>
<div>
<div>
{{{content|
* [[File:Unknown.png|36px|link=]] Unknown}}}
</div>
</div>
</div></includeonly><noinclude>
<div style="font-size: 100%; text-align: right;">
infobox test ignore delete etc
{{{qsource}}}
<templatestyles src="Template:Testbox/styles.css" />
</div>
<div></div>
</div><!--
--></includeonly><!--
--><noinclude>
Styled box to show (quoted) content. Intended for larger quotes.


== Parameters ==
== Parameters ==
Line 14: Line 25:
! Parameter !! Notes !! Status
! Parameter !! Notes !! Status
|-
|-
| title
| content
| Content box title
| Content to appear in the box (e.g. what the quote is saying)
| '''required'''
| '''required'''
|-  
|-  
| content
| qsource
| Content to appear in the box
| Who the quote is from. Leave blank and it won't show up.
| '''required'''
| '''required'''
|-
| col
| Number of columns for content to spread over. Default set to "2".
| '''optional'''
|}
|}


== Syntax ==
== Syntax ==
<code><nowiki>{{testbox|title|content|column}}</nowiki></code>
<code><nowiki>{{quote|content|qsource}}</nowiki></code>


== Usage ==
== Usage ==
<pre>
<pre>
{{el2-quotebox
{{quote
|title=Example
|content=Lorem ipsum dolor sit amet
|content=
|qsource=Bar}}
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
|col=1}}
</pre>
</pre>


; Outcome
; Outcome
{{el2-quotebox
{{quote
|title=Example
|content=Lorem ipsum dolor sit amet
|content=
|qsource=Bar}}
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
|col=1}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 04:23, 1 August 2026


Styled box to show (quoted) content. Intended for larger quotes.

Parameters

Parameter Notes Status
content Content to appear in the box (e.g. what the quote is saying) required
qsource Who the quote is from. Leave blank and it won't show up. required

Syntax

{{quote|content|qsource}}

Usage

{{quote
|content=Lorem ipsum dolor sit amet
|qsource=Bar}}
Outcome
"

Lorem ipsum dolor sit amet

"

Bar