コンテンツにスキップ
サイドバーの切り替え
検索
日本語
アカウント作成
個人用ツール
アカウント作成
ログイン
ログアウトした編集者のページ
もっと詳しく
トーク
投稿記録
案内
メインページ
人気のページ
利用規約
最近の出来事
最近の更新
おまかせ表示
お問い合わせ
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他言語版
「
テンプレート:Talk quote block/doc
」を編集中 (節単位)
テンプレート
議論
日本語
閲覧
ソースを編集
履歴表示
その他
閲覧
ソースを編集
履歴表示
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
== Examples == * {{tlx|Talk quote block|some random text|Example}} gives: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:10px 10px">{{talk quote block|some random text|Example}}</div> * {{tlx|Talk quote block|more random text|Example|ts{{=}}08:52, 21 May 2011 (UTC)}} gives: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:10px 10px">{{talk quote block|more random text|Example|ts=08:52, 21 May 2011 (UTC)}}</div> * {{tlx|Talk quote block|different random text|Example|ts{{=}}08:52, 21 May 2011 (UTC)|oldid{{=}}139992}} gives: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:10px 10px">{{talk quote block|different random text|Example|ts=08:52, 21 May 2011 (UTC)|oldid=139992}}</div> Note: {{para|ts}} must be present for {{para|oldid}} link to show. === Suggested boilerplate === <syntaxhighlight lang="wikitext"> {{Talk quote block|1=<nowiki/> |source=}} </syntaxhighlight> <syntaxhighlight lang="wikitext"> {{Talk quote block|1=<nowiki/> |by=|ts=|oldid=}} </syntaxhighlight> === Indenting === The template works with standard talk page indentation, as the following example illustrates. This wiki-markup: <syntaxhighlight lang="wikitext"> Random paragraph of text. [[User:Example|Example]] ([[User talk:Example|talk]]) 09:20, 21 May 2011 (UTC) :Opening statement by [[User:User|Some other user]]. :{{talk quote block|Quoting an item from random paragraph.}} :Response to quoted text. [[User:User|Some other user]] ([[User talk:User|talk]]) ~~~~~ </syntaxhighlight> Displays the following: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:3px 10px 3px 10px"> Random paragraph of text. [[User:Example|Example]] ([[User talk:Example|talk]]) 09:20, 21 May 2011 (UTC) :Opening statement by [[User:User|Some other user]]. :{{talk quote block|Quoting an item from random paragraph.}} :Response to quoted text. [[User:User|Some other user]] ([[User talk:User|talk]]) 09:26, 21 May 2011 (UTC) </div> === 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: {| class="wikitable" ! Wiki-markup !! Output |- | '''Wrong way''' <syntaxhighlight lang="wikitext"> {{talk quote block|* Item one * Item two }} </syntaxhighlight> | First item isn't bulleted correctly: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:3px 10px 3px 10px"> {{talk quote block|* Item one * Item two }} </div> |- | '''Right way''' <syntaxhighlight lang="wikitext"> {{talk quote block| * Item one * Item two }} </syntaxhighlight> | All items are bulleted correctly: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:3px 10px 3px 10px"> {{talk quote block| * Item one * Item two }} </div> |} If you are using the {{para|text}} named parameter (as opposed to simply supplying your list as the first parameter) please add the following code: <code><nowiki /></code> after the <code>=</code> 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: {| class="wikitable" ! Wiki-markup !! Output |- | '''Wrong way''' <syntaxhighlight lang="wikitext"> {{talk quote block|text= # Item one # Item two }} </syntaxhighlight> | First item isn't numbered correctly: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:3px 10px 3px 10px"> {{talk quote block|text= # Item one # Item two }} </div> |- | '''Right way''' <syntaxhighlight lang="wikitext"> {{talk quote block|text=<nowiki /> # Item one # Item two }} </syntaxhighlight> | All items are numbered correctly: <div style="background-color:#f9f9f9; border:1px dashed #3170ab; padding:3px 10px 3px 10px"> {{talk quote block|text=<nowiki /> # Item one # Item two }} </div> |} === Caveats === ==== Complex formatting compatibility ==== Check {{section link||Quoting}}, and {{section link|Help:Table|Nested tables}} (for nesting demo). ==== Quoted URLs with query strings break the template ==== <syntaxhighlight lang="wikitext"> {{Talk quote block|This here diff: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977}} </syntaxhighlight> 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 assignment {{em|explicit}}, so that your entire argument is unambiguously parsed as the value being assigned to that parameter. <syntaxhighlight lang="wikitext"> {{Talk quote block|1=This here diff: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977}} </syntaxhighlight> {{Talk quote block|1=This here diff: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977}} Writing the transclusion as {{tlx|Talk quote block|2=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 named <syntaxhighlight lang="wikitext" inline>This here diff: https://en.wikipedia.org/w/index.php?title</syntaxhighlight> that's being assigned the value <syntaxhighlight lang="wikitext" inline>User:IamNotU/sandbox&diff=904787385&oldid=904785977</syntaxhighlight>. Due to [[MediaWiki]]'s parsing limitations, embedding such templates into a [[Help:List|list]] (using the leading <code>*</code>/<code>#</code>/<code>;</code>/<code>:</code> syntax) is very likely to lead to unexpected results (for it regards the [[newline]] as the syntax delimiter [[Special:PermaLink/961705865#Common_mistakes|Help:List §§ Common mistakes]], and [[Special:PermaLink/961705865#Paragraphs_and_other_breaks|Paragraphs and other breaks]]). ==== Play nice with ordered and unordered lists ==== <syntaxhighlight lang="wikitext"> {{Lorem ipsum}} : {{Talk quote block|source=Talk quote block|text=<nowiki/> # Item one # Item two }} </syntaxhighlight> {{Lorem ipsum}} : {{Talk quote block|source=Talk quote block|text=<nowiki/> # Item one # Item two }} <syntaxhighlight lang="wikitext"> <dl><dd>{{Talk quote block|1=<nowiki/> # Item one # Item two|source={{tlx|Talk quote block}}}}</dd></dl> </syntaxhighlight> <dl><dd>{{Talk quote block|1=<nowiki/> # Item one # Item two|source={{tlx|Talk quote block}}}}</dd></dl>
編集内容の要約:
Wikiminatiへの投稿はすべて、クリエイティブ・コモンズ 表示-継承 (詳細は
Wikiminati:著作権
を参照)のもとで公開したと見なされることにご注意ください。 自分が書いたものが他の人に容赦なく編集され、自由に配布されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください。
著作権保護されている作品は、許諾なしに投稿しないでください!
編集を中止
編集の仕方
(新しいウィンドウで開きます)