Template:Quote/doc: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
No edit summary
Derik (talk | contribs)
No edit summary
Line 1: Line 1:
<nowiki>{{quote}}</nowiki> is exactly what it says on the tin.
'''<tt><nowiki>{{quote}}</nowiki></tt>''' is exactly what it says on the tin.


<pre>{{quote
<pre>{{quote
Line 8: Line 8:
{{quote|<nowiki>{{quote}}</nowiki> is exactly what it says on the tin.|Narrator|Template:Quote documentation}}
{{quote|<nowiki>{{quote}}</nowiki> is exactly what it says on the tin.|Narrator|Template:Quote documentation}}


The only wrinkle is the optional "style" setting, which can be used to change the quoting style to guillemots (chevrons) a type of quotation mark used in non-english languages.  This is useful when the quote you're quoting contains... er... quotes.
'''<tt><nowiki>{{quote}}</nowiki></tt>''' also accepts a few self-explanatory optional parameters like "noquote", which can be used to hide the big quote marks.  This is useful when the quote you're quoting contains... er... quotes, or multiple speakers.
{{quote|"Farewell Optimus prime," [Starscream] whispered to himself.  "Time for Endspark."|[[Starscream (Movie)|Starscream]]|[[Ghosts of Yesterday]] p280|style=2}}
{{quote|"Farewell Optimus prime," [Starscream] whispered to himself.  "Time for Endspark."|[[Starscream (Movie)|Starscream]]|[[Ghosts of Yesterday]] p280|noquote=true}}
 
{{quote|"How dare you!"<br/>"Oh please!"|'''Megatron''' is outraged to be struck in the face but '''Optimus Prime''' doesn't have time for his vanity|"[[Protection]]"|noquote=true}}
 
{| class="wikitable"
{| class="wikitable"
|-
|-
!style !!type
!colspan="2"|optional  parameters
|-
|-
|1 ||Default
!name !!value
|-
|-
|2 |||guillemots
|noquote ||true
|-
|center ||true
|-
|width || 500px
|}
|}
<pre>{{quote
<pre>{{quote
|Like this!
|"It is vitally important..." he paused to gather his thoughts, "that you remember to floss."
|style=2
|Optimus Prime
|"Balls of Nonobtanium Steel"
|noquote=true
|center=true
|width=300px
}}</pre>
}}</pre>
{{quote|Like this!|style=2}}
 
{{quote
|"It is vitally important..." he paused to gather his thoughts, "that you remember to floss."
|Optimus Prime|"Balls of Nonobtanium Steel"
|noquote=true|center=true|width=300px
}}


<noinclude>[[Category: Externalized documentation]]</noinclude>
<noinclude>[[Category: Externalized documentation]]</noinclude>

Revision as of 01:37, 3 July 2009

{{quote}} is exactly what it says on the tin.

{{quote
|The bit being quoted
|the one what said it
|where they said it
}}
{{quote}} is exactly what it says on the tin.Narrator, Template:Quote documentation

{{quote}} also accepts a few self-explanatory optional parameters like "noquote", which can be used to hide the big quote marks. This is useful when the quote you're quoting contains... er... quotes, or multiple speakers.

"Farewell Optimus prime," [Starscream] whispered to himself. "Time for Endspark."Starscream, Ghosts of Yesterday p280
"How dare you!"
"Oh please!"
Megatron is outraged to be struck in the face but Optimus Prime doesn't have time for his vanity, "Protection"
optional parameters
name value
noquote true
center true
width 500px
{{quote
|"It is vitally important..." he paused to gather his thoughts, "that you remember to floss."
|Optimus Prime
|"Balls of Nonobtanium Steel"
|noquote=true
|center=true
|width=300px
}}
"It is vitally important..." he paused to gather his thoughts, "that you remember to floss."

Optimus Prime, "Balls of Nonobtanium Steel"