Template:Blockquote/testcases
| This is the template test cases page for the sandbox of Template:Blockquote. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
With character
[edit source]{{Blockquote
| Eliminate all other factors, and the one which remains must be the truth.
| character = [[Sherlock Holmes]]
| author = [[Sir Arthur Conan Doyle]]
| title = ''[[The Sign of the Four]]''}}
{{Blockquote}}
Eliminate all other factors, and the one which remains must be the truth.
Eliminate all other factors, and the one which remains must be the truth.
Just quote text
[edit source]Blockquote template:
Lorem ipsum dolor sit amet, consectetur adipiscing 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.
Sandbox:
Lorem ipsum dolor sit amet, consectetur adipiscing 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.
Plain <blockquote>
with style="margin:1em 0 1em 0; padding:0 2em;"Lorem ipsum dolor sit amet, consectetur adipiscing 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.
All parameters, positional
[edit source]{{Blockquote|It was the best of times, it was the worst of times.|Charles Dickens|''A Tale of Two Cities''}}
{{Blockquote}}
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
All parameters, named
[edit source]{{Blockquote|text=It was the best of times, it was the worst of times.|sign=Charles Dickens|source=''A Tale of Two Cities''|date=1859}}
{{Blockquote}}
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
Without sign, positional
[edit source]{{Blockquote|A quote by the subject of the article might not need to say who said it||2010}}
{{Blockquote}}
A quote by the subject of the article might not need to say who said it
— 2010
A quote by the subject of the article might not need to say who said it
— 2010
Without sign, named parameters
[edit source]{{Blockquote|text=A quote by the subject of the article might not need to say who said it|source=2010}}
{{Blockquote}}
A quote by the subject of the article might not need to say who said it
— 2010
A quote by the subject of the article might not need to say who said it
— 2010
Without source, positional
[edit source]{{Blockquote|Add little to little and you have a big pile|Ovid}}
{{Blockquote}}
Add little to little and you have a big pile
— Ovid
Add little to little and you have a big pile
— Ovid
Without source, named parameters
[edit source]{{Blockquote|text=Add little to little and you have a big pile|sign=Ovid}}
{{Blockquote}}
Add little to little and you have a big pile
— Ovid
Add little to little and you have a big pile
— Ovid
Without text, positional
[edit source]Without text, named parameters
[edit source]{{Blockquote|sign=Harpo Marx|source=Duck Soup}}
{{Blockquote}}
Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)
— Harpo Marx, Duck Soup
Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)
— Harpo Marx, Duck Soup
With line breaks
[edit source]{{Blockquote|It was the best of times,
it was the worst of times.|Charles Dickens|''A Tale of Two Cities''}}
{{Blockquote}}
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
With text=
[edit source]{{Blockquote|text=It was the best of times,
it was the worst of times.|2=Charles Dickens|3=''A Tale of Two Cities''}}
{{Blockquote}}
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
With italics around text (contrary to MOS:ITALICS)
[edit source]{{Blockquote|''It was the best of times, it was the worst of times.''
|Charles Dickens
|''A Tale of Two Cities''
}}
{{Blockquote}}
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
It was the best of times, it was the worst of times.
— Charles Dickens, A Tale of Two Cities
More line breaks
[edit source]{{Blockquote|text=Your service as a teacher has been most satisfactory, but it is in the field of music that your contribution to the country has been outstanding. Since 1952 you have been largely responsible for the Biennial Music Festivals in Georgetown. You are joint Honorary Secretary of the Music Festival Committee and the success of the Festivals is in a large measure due to your organization and supervision.
You have also made a name for yourself in arranging musical programmes in the Schools Broadcasts which have taught many children the joy of music and of singing together.
By Command of the Queen conveyed to me through Her Majesty's Principal Secretary of State for the Colonies, I present to you the Insignia of a Member of the Most Excellent Order of the British Empire.|author=His Excellency the Governor, [[Patrick Muir Renison|Sir Patrick Renison]], [[Order of St Michael and St George|K.C.M.G.]] on May 8, 1959}}
{{Blockquote}}
Your service as a teacher has been most satisfactory, but it is in the field of music that your contribution to the country has been outstanding. Since 1952 you have been largely responsible for the Biennial Music Festivals in Georgetown. You are joint Honorary Secretary of the Music Festival Committee and the success of the Festivals is in a large measure due to your organization and supervision.
You have also made a name for yourself in arranging musical programmes in the Schools Broadcasts which have taught many children the joy of music and of singing together.
By Command of the Queen conveyed to me through Her Majesty's Principal Secretary of State for the Colonies, I present to you the Insignia of a Member of the Most Excellent Order of the British Empire.
— His Excellency the Governor, Sir Patrick Renison, K.C.M.G. on May 8, 1959
Your service as a teacher has been most satisfactory, but it is in the field of music that your contribution to the country has been outstanding. Since 1952 you have been largely responsible for the Biennial Music Festivals in Georgetown. You are joint Honorary Secretary of the Music Festival Committee and the success of the Festivals is in a large measure due to your organization and supervision.
You have also made a name for yourself in arranging musical programmes in the Schools Broadcasts which have taught many children the joy of music and of singing together.
By Command of the Queen conveyed to me through Her Majesty's Principal Secretary of State for the Colonies, I present to you the Insignia of a Member of the Most Excellent Order of the British Empire.
— His Excellency the Governor, Sir Patrick Renison, K.C.M.G. on May 8, 1959
Value for |source= that is only a reference
[edit source]{{Blockquote
|text=Lisa: Why build a monorail in a small town with a centralized population around a town center? <br/>
Lanley: I could answer that question for you, but you and I would be the only ones here who would understand the answer. (leans in) And that includes your teacher!
|sign=
|title=The Simpsons, Marge vs. the Monorail
|source=<ref>{{cite web|url=https://www.bustle.com/p/the-simpsons-monorail-song-is-the-tv-musical-number-im-so-jealous-you-get-to-watch-for-the-first-time-15768521|title=I'm So Jealous You Get To See 'The Simpsons' Monorail Song For The First Time|website=Bustle|date=January 23, 2019 |access-date=June 3, 2019}}</ref>
}}
{{Blockquote}}
Lisa: Why build a monorail in a small town with a centralized population around a town center?
Lanley: I could answer that question for you, but you and I would be the only ones here who would understand the answer. (leans in) And that includes your teacher!
— The Simpsons, Marge vs. the Monorail, [1]
Lisa: Why build a monorail in a small town with a centralized population around a town center?
Lanley: I could answer that question for you, but you and I would be the only ones here who would understand the answer. (leans in) And that includes your teacher!
— The Simpsons, Marge vs. the Monorail, [2]
References |
|---|
|
Equals signs
[edit source]Unnamed parameter error
[edit source]{{Blockquote|You cannot have an unnamed parameter with an equals signs (=) in the actual argument.}}
{{Blockquote}}
Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)
Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)
Named parameter works
[edit source]{{Blockquote|text=You can have a named parameter with an equals sign (=) in the actual argument.}}
{{Blockquote}}
You can have a named parameter with an equals sign (=) in the actual argument.
You can have a named parameter with an equals sign (=) in the actual argument.
Empty parameters
[edit source]Notrim
[edit source]{{Blockquote|Eliminate all other factors, and the one which remains must be the truth.|notrim=1}}
{{Blockquote}}
Eliminate all other factors, and the one which remains must be the truth.
Eliminate all other factors, and the one which remains must be the truth.
{{Blockquote|"Eliminate all other factors, and the one which remains must be the truth."|notrim=1}}
{{Blockquote}}
"Eliminate all other factors, and the one which remains must be the truth."
"Eliminate all other factors, and the one which remains must be the truth."
{{Blockquote|''Eliminate all other factors'' is a book, another book is ''The one which remains must be the truth.''|notrim=1}}
{{Blockquote}}
Eliminate all other factors is a book, another book is The one which remains must be the truth.
Eliminate all other factors is a book, another book is The one which remains must be the truth.
{{Blockquote|'''Eliminate all other factors''' should be said boldly, as should '''The one which remains must be the truth.'''|notrim=1}}
{{Blockquote}}
Eliminate all other factors should be said boldly, as should The one which remains must be the truth.
Eliminate all other factors should be said boldly, as should The one which remains must be the truth.
Without notrim
[edit source]{{Blockquote|Eliminate all other factors, and the one which remains must be the truth.}}
{{Blockquote}}
Eliminate all other factors, and the one which remains must be the truth.
Eliminate all other factors, and the one which remains must be the truth.
{{Blockquote|"Eliminate all other factors, and the one which remains must be the truth."}}
{{Blockquote}}
"Eliminate all other factors, and the one which remains must be the truth."
"Eliminate all other factors, and the one which remains must be the truth."
{{Blockquote|''Eliminate all other factors'' is a book, another book is ''The one which remains must be the truth.''}}
{{Blockquote}}
Eliminate all other factors is a book, another book is The one which remains must be the truth.
Eliminate all other factors is a book, another book is The one which remains must be the truth.
{{Blockquote|'''Eliminate all other factors''' should be said boldly, as should '''The one which remains must be the truth.'''}}
{{Blockquote}}
Eliminate all other factors should be said boldly, as should The one which remains must be the truth.
Eliminate all other factors should be said boldly, as should The one which remains must be the truth.
Multiline
[edit source]With multiline
[edit source]{{Blockquote}}
Ceci n'est pas une pipe.
This is Not a Pipe.
Ceci n'est pas une pipe.
This is Not a Pipe.
With multiline, no source
[edit source]{{Blockquote}}
Ceci n'est pas une pipe.
This is Not a Pipe.
Ceci n'est pas une pipe.
This is Not a Pipe.
Without multiline
[edit source]{{Blockquote}}
Ceci n'est pas une pipe. This is Not a Pipe.
Ceci n'est pas une pipe. This is Not a Pipe.
Inside indented talk page section
[edit source]This is a talk page line.
- This is a single-indented line.
- This is a double-indented line.
- This is a blockquote inside a double-indented section.
- This is another line inside the blockquote template.
- This is the end of the double-indented section.
- This is a triple-indented reply.
- This is the end of the double-indented section.