Difference between revisions of "Quotation/Documentation"

m (No need for "this template" preamble)
(→‎Parameters: new parameter)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
 
Displays text passages as quotations from an official source.
 
Displays text passages as quotations from an official source.
 +
== Usage ==
 +
{{T|quotation|This is a quotation|game}}<br>
 +
{{T|quotation|This is a quotation|website}}<br>
 +
{{T|quotation|This is a quotation|website|<nowiki>https://corepunk.com</nowiki>}}<br>
 +
{{T|quotation|This is a quotation|custom label|<nowiki>https://corepunk.wiki</nowiki>}}<br>
 +
{{T|quotation|This is a quotation|<nowiki>https://corepunk.wiki</nowiki>}}
 
== Parameters ==
 
== Parameters ==
{{bullet}} '''text''': The quoted text.
+
{{parameter|1|Quoted text.}}
 +
{{parameter|2|Quotation label.||Choose from ''game'', ''website'', a custom label, or a custom link.}}
 +
{{parameter|3|Quotation source.||A link to the quotation source. Use if parameter 2 isn't already a link.}}
 +
{{parameter|popup|Whether to include the quotation in the popup that appears when the mouse hovers over a wikilink.||Setting this parameter to any value adds the quote text to the popup.}}
  
{{bullet}} '''source''': The quotation source. Can be a custom value or a predefined value:
+
==Errors==
:{{bullet}} '''game''': In-game description.
+
'''No quote text provided. Add a text parameter.'''
:{{bullet}} '''website''': Official website.
+
==See Also==
== Usage ==
+
:{{arrow}}[[Template:Blockquote]]
<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>
 

Latest revision as of 22:49, 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