Difference between revisions of "Quotation"

m (Corrected spacing)
('div' elements do not appear on pop-ups (when the mouse is hovering over a link), so place content inside a 'span' and set 'display:none;')
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><blockquote style="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em;border-left: 1px solid silver;"><div style="position: absolute; margin-top: -0.2em; margin-left: -0.8em; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;"><div style="position: absolute; margin-left: -0.2em;">“</div></div><div style="line-height: 1.53846em;">
+
<includeonly>{{#if:{{{popup|}}}|<span style="display:none;">{{{1}}}</span>}}<!-- 'div' elements do not appear on pop-ups (when the mouse is hovering over a link), so place content inside a 'span' and set 'display:none;'
{{{text|{{{1|<onlyinclude>{{error|Error: No quote text provided.}}</onlyinclude>}}}}}}
+
--><blockquote style="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em;border-left: 1px solid silver;"><!--
</div><p class="noexcerpt" style="padding-left: 1.6em; font-size: 0.9em; font-style:italic;">— {{ #switch: {{ lc: {{{source|}}} }}
+
--><div style="position: absolute; margin-top: -0.2em; margin-left: -0.8em; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div><!--
 +
--><div class="mb-2" style="line-height: 1.53846em;">{{{1|{{error|No quote text provided. Add a text parameter.}}}}}</div><!--
 +
--><div style="padding-left: 1.6em; font-size: 0.9em; font-style:italic;">{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}}}<!-- handle source -->
 
| game    = In-game description
 
| game    = In-game description
| website  = Official website
+
| website  = [{{{3|https://corepunk.com}}} Official website]
| #default = {{{source|Quotation source}}}
+
| #default = {{#ifeq:{{{3|}}}|{{{3}}}<!-- if 3rd parameter exists
}}</p></blockquote></includeonly><noinclude>
+
-->|[{{{3}}} {{{2}}}]<!-- use 3rd parameter as link and 2nd parameter as label
== Description ==
+
-->|{{{2}}}<!-- else use 2nd parameter as link
This template displays text passages as quotations from an official source.
+
-->}}
== Parameters ==
+
}}}}</div></blockquote></includeonly><noinclude>{{Quotation/Documentation}}</noinclude>
{{bullet}} '''text''': The quoted text.
 
 
 
{{bullet}} '''source''': The quotation source. Can be a custom value or a predefined value:
 
:{{bullet}} '''game''': In-game description.
 
:{{bullet}} '''website''': Official website.
 
== Usage ==
 
<pre>{{quotation|text=This is a quotation|source=Source}}
 
{{quotation|text=This is a quotation|source=game}}
 
{{quotation|text=This is a quotation|source=website}}</pre></noinclude>
 

Latest revision as of 22:46, 7 June 2024

Description[edit]

Displays text passages as quotations from an official source.

Usage[edit]

{{quotation|<This is a quotation>|<game>}}
{{quotation|<This is a quotation>|<website>}}
{{quotation|<This is a quotation>|<website>|<https://corepunk.com>}}
{{quotation|<This is a quotation>|<custom label>|<https://corepunk.wiki>}}
{{quotation|<This is a quotation>|<https://corepunk.wiki>}}

Parameters[edit]

Arrow.png1: Quoted text.
Required.
Arrow.png2: Quotation label.
Optional.
Notes: Choose from game, website, a custom label, or a custom link.
Arrow.png3: Quotation source.
Optional.
Notes: A link to the quotation source. Use if parameter 2 isn't already a link.
Arrow.pngpopup: Whether to include the quotation in the popup that appears when the mouse hovers over a wikilink.
Optional.
Notes: Setting this parameter to any value adds the quote text to the popup.

Errors[edit]

No quote text provided. Add a text parameter.

See Also[edit]

Arrow.pngBlockquote