Difference between revisions of "Template:Quote/Documentation"

From GodWiki
Jump to navigation Jump to search
m (Fixed incorrect docs)
(Updating documentation to reflect new parameter.)
 
Line 1: Line 1:
* Unnamed parameter — the quote.
+
== Parameters ==
 +
{| class="wikitable
 +
! Parameter
 +
! Description
 +
|-
 +
| Unnamed <code><nowiki>{{{0}}}</nowiki></code> - <code><nowiki>{{{9}}}</nowiki></code>
 +
| The lines that make up the quote
 +
|-
 +
| <code>author</code>
 +
| The author of the quote and if desired a comma followed by the source (eg. a book or a website) '''[optional]'''.
 +
|-
 +
| <code>align</code>
 +
| The alignment of the quote, defaults to <code>center</code>. Valid values: <code>left</code>, <code>center</code>, <code>right</code>
 +
|}
  
* {{para|author}} &mdash; (optional) the author and if desired a comma followed by the source (eg. a book or a website)
+
== Examples ==
 +
'''Code''':
  
Example of Usage:
+
<pre>{{quote|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}</pre>
  
<nowiki>{{quote|author=[[User:Spode|Spode]], the book of Godville | Hello World! }}</nowiki>
+
'''Result''':
  
'''results in:'''
+
{{quote|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}
  
{{quote|author=[[User:Spode|Spode]], the book of Godville | Hello World! }}
+
'''Code''':
  
<noinclude> [[Category:Templates/Documents|{{PAGENAME}}]]</noinclude>
+
<pre>{{quote|align=left|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}</pre>
 +
 
 +
'''Result''':
 +
 
 +
{{quote|align=left|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}
 +
 
 +
<noinclude>[[Category:Templates/Documents|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:00, 18 November 2019

Parameters

Parameter Description
Unnamed {{{0}}} - {{{9}}} The lines that make up the quote
author The author of the quote and if desired a comma followed by the source (eg. a book or a website) [optional].
align The alignment of the quote, defaults to center. Valid values: left, center, right

Examples

Code:

{{quote|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}

Result:

«
Hello World!
»
Spode, the book of Godville

Code:

{{quote|align=left|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}

Result:

«
Hello World!
»
Spode, the book of Godville