Difference between revisions of "Template:Quote/doc"
(tidy) |
(Note: This template does work correctly if there are URLs in the phrase; Workarounds?) |
||
Line 6: | Line 6: | ||
Note: Block quotes do not normally contain quotation marks. See [[Block quote#Formatting block quotations|Formatting block quotations]]. | Note: Block quotes do not normally contain quotation marks. See [[Block quote#Formatting block quotations|Formatting block quotations]]. | ||
+ | |||
+ | '''Note: This template does work correctly if the phrase contains characters found in some URLs.''' | ||
=== Usage === | === Usage === | ||
Line 31: | Line 33: | ||
| {{msg:{{BASEPAGENAME}}|{{lorem ipsum}}|Some Guy Who Thought He Spoke Latin|''Pseudo-Italic Nonsense''}} | | {{msg:{{BASEPAGENAME}}|{{lorem ipsum}}|Some Guy Who Thought He Spoke Latin|''Pseudo-Italic Nonsense''}} | ||
|} | |} | ||
+ | |||
+ | === Issues === | ||
+ | |||
+ | Phrases containing some URLs are not displayed at all: | ||
+ | |||
+ | <code><nowiki> | ||
+ | {{Quote|Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}}</nowiki></code> produces: | ||
+ | |||
+ | {{Quote|Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}} | ||
+ | |||
+ | <code><nowiki> | ||
+ | {{Quote|1=Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}}</nowiki></code> produces: | ||
+ | |||
+ | {{Quote|1=Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}} | ||
=== See also === | === See also === |
Revision as of 06:06, 5 August 2009
{{#ifeq:doc |doc
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:Quote | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Template:Tl adds a block quote to an article page.
This is easier to type and more wiki-like than the equivalent HTML <blockquote>
tags, has additional pre-formatted attribution and source parameters, and contains a workaround for Bugzilla:6200, which means you don't need to type <p>
tags manually.
Note: Block quotes do not normally contain quotation marks. See Formatting block quotations.
Note: This template does work correctly if the phrase contains characters found in some URLs.
Contents
Usage
{{Quote|Phrase}}
produces:
Phrase{{#if: |—{{#if:}}|,
}}
{{Quote|Phrase|Somebody}}
produces:
Phrase{{#if:Somebody |—Somebody{{#if:}}|,
}}
{{Quote|Phrase|Somebody|''Source''}}
produces:
Phrase{{#if:Somebody |—Somebody{{#if:Source}}|, Source
}}
Example
Code | Result | |||||
{{Quote|{{lorem ipsum}}|Some Guy Who Thought He Spoke Latin|''Pseudo-Italic Nonsense''}}
|
1|#default=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | 2=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
3=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
4=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
—Some Guy Who Thought He Spoke Latin{{#if:Pseudo-Italic Nonsense
|
, Pseudo-Italic Nonsense }} }} |
Issues
Phrases containing some URLs are not displayed at all:
{{Quote|Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}}
produces:
Somebody{{#if:Source |—Source{{#if:}}|,
}}
{{Quote|1=Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}}
produces:
Somebody{{#if:Source |—Source{{#if:}}|,
}}
See also
Similar templates comparison:
- Template:Epigraph – quote without border, page-wide, normal-sized attribution
- Template:Quote – quote without border, page-wide, smaller-sized attribution
- Template:Quotation – quote with border, page-wide
- Template:Quote box – quote with border, in a reduced floating box
- Template:Cquote – pull-quote between graphic quotation marks, page-wide
- Template:Rquote – pull-quote between graphic quotation marks, in a reduced floating area
- Category:Quotation templates – more templates