「テンプレート:Quote」の版間の差分

提供: 閾ペディアことのは
ナビゲーションに移動検索に移動
1行目: 1行目:
 
<noinclude>{{Template:Quote/doc}}
 
<noinclude>{{Template:Quote/doc}}
</noinclude><includeonly><blockquote class="templatequote"><div style="border:3px dashed #ccf">
+
</noinclude><includeonly><blockquote class="templatequote"><div style="border:3px dashed #ccf;padding:1em;">
 
{{{1|Insert the text of the quote here, without quotation marks.}}}
 
{{{1|Insert the text of the quote here, without quotation marks.}}}
 
</div>{{#if:{{{2|}}}|<div class="templatequotecite">&#8212;<cite>{{{2}}}{{#if:{{{3|}}}|,&nbsp;{{{3}}}}}</cite></div >}}</blockquote></includeonly>
 
</div>{{#if:{{{2|}}}|<div class="templatequotecite">&#8212;<cite>{{{2}}}{{#if:{{{3|}}}|,&nbsp;{{{3}}}}}</cite></div >}}</blockquote></includeonly>

2009年10月20日 (火) 00:18時点における版

Template:Quote 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.

Usage

{{Quote|Phrase}} produces:

Phrase

{{Quote|Phrase|Somebody}} produces:

Phrase

Somebody

{{Quote|Phrase|Somebody|''Source''}} produces:

Phrase

Somebody, Source

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

Source

{{Quote|1=Phrase with a URL: http://w.a.o/d.php?id=T |Somebody|''Source''}} produces:

Somebody

Source