Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Talk quote block

Permanently protected template
From Wikipedia, the free encyclopedia
(Redirected fromTemplate:Talkquote)

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.
— User:Example User 18:21, 4 June 2024 (UTC)

Template documentation[view] [edit] [history] [purge]
"Template:Talkquote" redirects here. For quoting inline, seeTemplate:Talk quote inline.
WarningThis template is used onapproximately 18,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
CSSThis template usesTemplateStyles:

Use{{Talk quote block}},{{tqb}}, or{{tq2}} to quote (another's comments, a policy statement, etc.) in a block, on talk pages and noticeboards. It can be safely used after colon-indenting as well (see the§ Indenting example below (§ Caveats). For a short inline quote, instead use{{Talk quote inline}}.

Usage

Unnamed (positional) parameters:

  • {{Talk quote block|text|by}}
    • The order of positional parameters cannot change -text must come beforeby.

Named parameters:

Parameters

  • |text= (or|1=): The text being quoted.
  • |by= (or|2=): The author of the text being quoted. AWikipedia username is expected, and the username will be provided as awikilink to the author's user page.
  • |source=: The source of the text being quoted. Use instead of|by= when source is not individual user name, or when copy-pasting an entire sig.
  • |ts=: Thetimestamp of the edit whose text is being quoted. Hint: You can usefive tildes to supply the current date and time:|ts=~~~~~.
  • |id=: The ID of the comment that will be used in a link to it if the|ts= parameter is also present. You can copy it by right-clicking the timestamp.
  • |oldid=: Therevision ID of the edit introducing the change that was made. Displayed as the timestamp linking to the diff of the edit. (requires|ts= or is not shown).
  • |diff=: The link to thediff comparing target.
  • |style=:HTML in-line style. (see thetestcases)
  • |nodash=y or|no-dash=y: Suppresses the em dash and space before|source=, for when pasting a sig that already starts with a dash.
  • |noping=y or|no-ping=y: Suppresses the link to the author to avoidnotifying them.

Examples

Note:|ts= must be present for|oldid= link to show.

Suggested boilerplate

{{Talk quote block|1=<nowiki/>|source=}}
{{Talk quote block|1=<nowiki/>|by=|ts=|id=}}
{{Talk quote block|1=<nowiki/>|by=|ts=|oldid=}}

Indenting

The template works with standard talk page indentation, as the following example illustrates. This wiki-markup:

Random paragraph of text.[[User:Example|Example]] ([[User talk:Example|talk]]) 09:20, 21 May 2011 (UTC):Opening statement by[[User:Example2|Some other user]].:{{talk quote block|Quoting an item from random paragraph.}}:Response to quoted text.[[User:Example2|Some other user]] ([[User talk:Example2|talk]])~~~~~

Displays the following:

Random paragraph of text.Example (talk) 09:20, 21 May 2011 (UTC)

Opening statement bySome other user.

Quoting an item from random paragraph.

Response to quoted text.Some other user (talk) 09:26, 21 May 2011 (UTC)

Indented multi-line quote

To create an indented multi-line quote (such as within a a reply on a talk page), youmust use <br/> tags to indicate the line breaks, but donot use manual line breaks. Refer to the following example:

Random paragraph of text.[[User:Example|Example]] ([[User talk:Example|talk]]) 09:20, 21 May 2011 (UTC):Opening statement by[[User:Example2|Some other user]].:{{talk quote block|Quoting an item from random paragraph.<br/>Including a second line.}}:Response to quoted text.[[User:Example2|Some other user]] ([[User talk:Example2|talk]])~~~~~

Displays the following:

Random paragraph of text.Example (talk) 09:20, 21 May 2011 (UTC)

Opening statement bySome other user.

Quoting an item from random paragraph.
Including a second line.

Response to quoted text.Some other user (talk) 09:26, 21 May 2011 (UTC)

Quoting lists

If the text you are quoting is a bulleted or numbered list, the first list item must start on a new line, or it won't be rendered properly. For example:

Wiki-markupOutput
Wrong way
{{talk quote block|* Item one* Item two}}
First item isn't bulleted correctly:

* Item one

  • Item two
Right way
{{talk quote block|* Item one* Item two}}
All items are bulleted correctly:
  • Item one
  • Item two

If you are using the|text= named parameter (as opposed to simply supplying your list as the first parameter) please add the following code:<nowiki /> after the= sign. The reason is that the MediaWiki parser automatically removes line breaks at the start of the text, causing the list to be displayed improperly otherwise. Example:

Wiki-markupOutput
Wrong way
{{talk quote block|text=# Item one# Item two}}
First item isn't numbered correctly:

# Item one

  1. Item two
Right way
{{talk quote block|text=&lt;nowiki /&gt;# Item one# Item two}}
All items are numbered correctly:
  1. Item one
  2. Item two

Caveats

Complex formatting compatibility

Check§ Quoting, andHelp:Table § Nested tables (for nesting demo).

Quoted URLs with query strings break the template

{{Talk quote block|This here diff: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977}}

When your template arguments contain an equals sign, you can't use implicit positional parameters because everything preceding the first equals sign gets parsed as the parameter name. The trick, in those situations, is to make the assignmentexplicit, so that your entire argument is unambiguously parsed as the value being assigned to that parameter.

{{Talk quote block|1=This here diff: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977}}

This here diff:https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977

Writing the transclusion as{{Talk quote block|1=...}} puts the entire URL on the right-hand side of an assignment to the first unnamed parameter, rather than it being parsed as a template parameter namedThis here diff:https://en.wikipedia.org/w/index.php?title that's being assigned the valueUser:IamNotU/sandbox&diff=904787385&oldid=904785977.

Due toMediaWiki's parsing limitations, embedding such templates into alist (using the leading*/#/;/: syntax) is very likely to lead to unexpected results (for it regards thenewline as the syntax delimiterHelp:List §§ Common mistakes, andParagraphs and other breaks).

Play nice with ordered and unordered lists

{{Lorem ipsum}}:{{Talk quote block|source=Talk quote block|text=<nowiki/># Item one# Item two}}


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.

  1. Item one
  2. Item two
    — Talk quote block
<dl><dd>{{Talk quote block|1=<nowiki/># Item one# Item two|source={{tlx|Talk quote block}}}}</dd></dl>
  1. Item one
  2. Item two
    — {{Talk quote block}}

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Talk quote block in articles based on its TemplateData.

TemplateData for Talk quote block

Formats quoted text (from another's comments, a policy statement, etc.) in a block, for use on talk pages and noticeboards.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
texttext1

The text being quoted.

Contentrequired
byby2

The author of the text being quoted.

Usersuggested
sourcesource

The source of the text being quoted. Use instead of "by" when the source is not an individual user name, or when copy-pasting an entire signature.

Lineoptional
No dash?nodashno-dash

Suppresses the em dash and space before source, for when pasting a signature that already starts with a dash.

Booleanoptional
Timestampts

The timestamp of the edit whose text is being quoted.

Suggested values
~~~~~
Unknownsuggested
IDid

The ID of the comment that will be used in a link to it if the ts parameter is also present. You can copy it by right-clicking the timestamp.

Stringoptional
Revision IDoldid

The revision ID of the edit introducing the change that was made. Displayed as the timestamp linking to the Diff of the edit. (requires ts parameter or is not shown)

Numberoptional
diffdiff

The link to the diff comparing target.

Numberoptional
stylestyle

HTML in-line style.

Unknownoptional
No ping?nopingno-ping

Suppresses the link to the author to avoid notifying them.

Booleanoptional

See also

Template  Use / description 
Block quotationsGeneral purpose
{{Blockquote}} Our standard block quotation template: unbordered page-wide quotation with optional smaller-sized attribution
{{Break lines}} Transforms line breaks into<br /> tags. It is very similar to the{{poem}} template, except that it does not invoke the<poem> MediaWiki extension.
{{Numbered verses}} Quote poems showing the verse numbers
{{Poem}}{{Blockquote}} variant for use with poems, song lyrics, and other things that would otherwise require the use of<poem> tags or frequent formatting elements (such as<br/>); requires substitution
{{Poem quote}}{{Blockquote}} variant for use with poems, song lyrics, and other things that would otherwise require the use of<poem> tags or frequent formatting elements (such as<br/>); does not require substitution
{{Poetically break lines}} (shortcut: {{pbl}}) Designed to format poetry simply and reliably; it differs from{{Poem quote}} in two significant ways: it does not add spacing around the poem that sets it apart as “block quote”, and it automatically provides hanging indentation when lines are so long that they wrap
{{Translated blockquote}} Displays original language above and translated text below
{{Text and translation}} Displays original language and translated text, one beside the other
{{Verse translation}} Displaysoriginal language verse (defaults to italics) and translated verse (roman) side-by-side
{{Verse transliteration-translation}} Like{{Verse translation}}, but with a transliteration separate from the original version
{{Quote inline}}
(shortcut: {{qi}})
Inline quotation
{{Cquote}} "centered quote" – Page-wide quote, between large quotation marks
{{Rquote}} "reduced quote" – Quote between large quotation marks in a reducedfloating area
{{Quote frame}} Page-wide bordered quote
{{Quote box}} Quote floated in a reduced bordered box
{{Tweet}} For quoting directly from tweets. Automatically generates{{Cite tweet}} citation, or a custom reference can be provided.
  
Talk page quotingNot for use in articles nor the project space at all
{{Talk quote inline}}
(shortcut: {{tq}},
{{tqq}}, {{tqi}}, or {{tqqi}})
Inline quotation for use on talk pages
{{Not talk quote inline}}
(shortcut: {{!tq}},
{{!tqq}}, {{!tqi}}, or {{!tqqi}})
Inline quotation for what someonedidn't say but could have, or perhaps should have, said.
{{Talk quote block}}
(shortcut: {{tqb}}, {{tq2}})
Block-style quotation for use on talk pages
{{Talk quote block minimalist}}
(shortcut: {{tqbm}})
Minimalist version of above
  
AlternativeFor indenting non-quotations
{{Block indent}} To indent an entire block of content (uses<div> and CSS margins)
{{Divbox}} To frame messages or the example output of an article or template
Template  Shortcut  Parameter?  Example  Output  Notes 
Thread level
{{Moved talk}}
Green tickY
{{Moved talk|Dresden}}Moved: was atTalk:Dresden
Used at the thread's current location
{{Moved talk to}}
Green tickY
{{Moved talk to|Berlin}}Moved to:Talk:Berlin
Used at the thread's former location
{{Thread retitled}}
Green tickY
{{Thread retitled|Old title}}
Thread retitled fromOld title.
PerWikipedia:Talk page guidelines#Section headings
Opening
{{Summoned by bot}}{{sbb}}{{sbb}}(Summoned by bot) Can be used in requests for comment
{{Buttinsky}}{{bi2}}{{Buttinsky}}(orange butt iconButtinsky) A variation of{{Talk page stalker}}
{{Edit conflict}}{{ec}}
(Green tickY)
{{ec}}(edit conflict) To indicate that you encountered anedit conflict
{{Interrupted}}{{intr}}
Green tickY
{{Interrupted|Username|05:31, 13 April 2025 (UTC)}}Username 05:31, 13 April 2025 (UTC) — continues after insertion below Used to identify the contributor of the upper fragment(s) of a comment that was broken up by a different contributor's insertion of text
{{Non-admin comment}}{{nacmt}}
(Green tickY)
{{nacmt}}(Non-administrator comment) Optional and only for own comments, seedoc
{{Pinged}}{{Pinged}}(pinged) Indicates anotification was received
{{Responding to ping}}{{rtp}}{{rtp}}(responding toping) Similar to{{pinged}}
{{Talk page stalker}}{{tps}}
(Green tickY)
{{tps}}(talk page stalker) Cf.Wikipedia:Talk page stalker
{{Talk page watcher}}{{tpw}}
(Green tickY)
{{tpw}}(talk page watcher)Ditto
Notifications
{{Hidden ping}}{{hp}}
Green tickY
{{hp|Username}} Invisible notification utilizing thezero-width space character
{{Ping group}}{{pinggroup}}
Green tickY
{{pinggroup|Pinging collaborators|John Doe|Jane Doe|...}}Pinging collaborators(John DoeJane Doe...) Up to 10 usernames
{{Pong}}
Green tickY
{{pong|Username}} Username: In reply to a ping
{{Reply to}}{{re}}/{{ping}}
Green tickY
{{re|Username}}/{{ping|Username}}@Username: Sends anotification; up to 50 names
{{To}}
Green tickY
{{To|Username}}To editorUsername: Sends a notification
During
{{subst:Arbitrary break}}{{subst:Arbitrarybreak}}{{subst:Arbitrarybreak}} ======(arbitrary break)====== Requiressubstitution
{{subst:Bump}}{{subst:Bump}}Bumping thread ~~~~ Requiressubst. A wrapper for{{do not archive until}}
{{FBDB}}{{FBDB}}[FBDB] Aninitialism forFriendlyBanter –Don'tBlock
{{KISS}}{{KISS}}KISS References theKISS principle politely
{{No ping}}{{np}}
Green tickY
{{np|Username}}Username Works like{{U}} but without triggering a notification
{{No ping2}}{{np2}}
Green tickY
{{np2|Username}}Username (talk ·contribs) Works like{{User}} but without triggering a notification
{{Notelist-talk}}{{tnote}}
(Green tickY)
{{tnote}}[not shown here] Creates a list of footnotes for a talk page discussion
{{Outdent}}{{od}}
(Green tickY)
{{od|:::::}}
For out-denting a reply when indention gets too deep
{{Outdent2}}{{od2}}
(Green tickY)
{{od2}}() Alternative out-denting
{{Reflist-talk}}{{tref}}
(Green tickY)
{{tref}}[not shown here] Creates a list of references for a talk page discussion
{{Relevant discussion}}{{reldis}}
Green tickY
{{reldis|Talk:Berlin}}
Relevant discussion atTalk:Berlin
Creates links to related discussions in a visually unique way
{{Sock vote}}{{sockvote}}
Green tickY
{{sock vote|Example}}(Nota bene Blockedsockpuppet ofExample, seeinvestigation) To mark a vote/comment cast by sockpuppet. More parameters exist and can be viewed at the template documentation.
{{Sources-talk}}{{st}}{{Sources-talk}}[not shown here] A convenience wrapper around{{Reflist-talk}}
{{Talkfact}}
(Green tickY)
"Oranges are blue!"{{talkfact}} "Oranges are blue!"[citation needed] Used to quickly ask an editor to back up their claims
{{Talk quote inline}}{{tq}}
Green tickY
{{tq|"Oranges are blue!"}}"Oranges are blue!" To highlight a short excerpt of quoted material
{{Talk quote inline italic}}{{tqi}}
Green tickY
{{tqi|"Oranges are blue!"}}"Oranges are blue!""
{{Not talk quote inline}}{{!tq}}
Green tickY
{{!tq|"Oranges are orange!"}}"Oranges are orange!" To highlight a short excerpt of quoted material someone didn't say but could have, or perhaps, should have
{{Not talk quote inline italic}}{{!tqi}}
Green tickY
{{!tqi|"Oranges are orange!"}}"Oranges are orange!""
{{Talk quote block}}{{tqb}}
Green tickY
{{tqb|"Oranges are blue!"}}

"Oranges are blue!"

To highlight a longer excerpt of quoted material
{{Talk quote block minimalist}}}{{tqbm}}
Green tickY
{{tqbm|Oranges are blue.}}

Oranges are blue.

A longer excerpt of quoted material, with less highlighting
End
{{Please sign inline}}{{please}}{{Please sign inline}}(Please remember tosign your posts on talk pages by typing four keyboardtildes like this:~~~~. Or, you can use the[ reply ] button, which automatically signs posts.)
{{subst:Please ping}}{{pping}}
(Green tickY)
{{Please ping}}(pleaseReply to icon mention me on reply) Includes your username if substituted, but can be transcluded. Use{{Please ping|no}} to asknot to be pinged.
{{Not watching}}{{nw}}{{nw}}(I am notwatching this page, so pleaseping me if you want my attention.)
{{subst:Notifyme}}{{subst:pingme}}{{subst:pingme}} If you reply here, please put{{reply|your username will show up here}} in front of your message so I get a notification. Thank you! Requiressubstitution. Will automatically add your username by substituting{{REVISIONUSER}} when you save.
{{subst:Request ping}}{{subst:repi}}
Green tickY
{{subst:repi|Example}}If you reply here, pleaseping me by adding{{u|Example}} to your message, and signing it. Requiressubst
{{Signote}}{{sg}}
(Green tickY)
{{sg}}Please leave me a note if you reply
{{Watching}}{{Watching}}(I am watching this page, so please reply here.)
Humor disclosure
(Seethe list here.)
The abovedocumentation istranscluded fromTemplate:Talk quote block/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Talk_quote_block&oldid=1281056187"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp