Template:Blockquote/doc: Difference between revisions

use same parameter name as the cite templates; code cleanup; rm. silly double-emphasis
m (→‎Line breaks: heading level fix)
(use same parameter name as the cite templates; code cleanup; rm. silly double-emphasis)
Line 13:
'''Unnamed (positional) parameters'''
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code>
This markup will fail if any parameter contains an equals sign (<code>=</code>).
 
'''Numbered (positional) parameters'''
Line 19:
 
'''Named parameters'''
<code><nowiki>{{quote|text=phrase|signauthor=person|source=source}}</nowiki></code>
 
== Style ==
Line 50:
 
{{markupv
|markup=<nowiki>{{Quote|text=Cry "Havoc" and let slip the dogs of war.|signauthor=[[William Shakespeare]]|source=''[[Julius Caesar (play)|Julius Caesar]]'', act III, scene I}}</nowiki>
|renders=
{{Quote|text=Cry "Havoc" and let slip the dogs of war.|signauthor=[[William Shakespeare]]|source=''[[Julius Caesar (play)|Julius Caesar]]'', act III, scene I}}
}}
 
Line 58:
If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page.
 
If any parameter's actual value contains an [[equals sign]] (<code>=</code>), you '''''must''''' use named parameters or a blank-name parameter, as: <nowiki>{{{|text}}}</nowiki>. (The text before the equals sign gets interpreted as a named parameter otherwise.)
 
If any parameter's actual value contains characters used for wiki markup syntax (such as [[vertical bar|pipe]], [[brackets]], single quotation marks, etc.), you may need to escape it. See [[Template:!]] and friends.
Line 94:
"aliases": [
"2",
"cite",
"author"
],
"example": "[[William Shakespeare]]",
Anonymous user