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

提供: Yourpedia
移動: 案内検索
(Archiveurlの出力表示調整)
 
(8人の利用者による、間の12版が非表示)
1行目: 1行目:
; 記者のフルネームを記載
+
<includeonly>{{CitationAnotherCore
* <nowiki>{{Cite news
+
|Citation class=news
| first=Cassandra
+
|Ancname1={{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}
| last=Jardine
+
|Ancname2={{{last2|{{{author2|}}}}}}
| title=The return of the secondary modern
+
|Ancname3={{{last3|{{{author3|}}}}}}
| url=http://www.telegraph.co.uk/culture/tvandradio/3621779/The-return-of-the-secondary-modern.html
+
|Ancname4={{{last4|{{{author4|}}}}}}
| location = London
+
|Refname1={{{author-mask|{{{author-mask1|{{{last|{{{last1|{{{author|{{{author1|}}}}}}}}}}}}}}}}}}
| agency=
+
|Refname2={{{author-mask2|{{{last2|{{{author2|}}}}}}}}}
| newspaper=The Daily Telegraph
+
|Refname3={{{author-mask3|{{{last3|{{{author3|}}}}}}}}}
| date=5 August 2004
+
|Refname4={{{author-mask4|{{{last4|{{{author4|}}}}}}}}}
}}</nowiki><br><div style="padding:0.5em">→ {{
+
|RefYear={{{year|{{{origyear|{{{date|}}}}}}}}}
Cite news
+
|Name1={{{author-mask|{{{author-mask1|{{{author|{{{author1|{{{last|{{{last1|}}}}}}{{{first|{{{first1|}}}}}}}}}}}}}}}}}}
| first=Cassandra
+
|Name2={{{author-mask2|{{{author2|{{{last2|}}}{{{first2|}}}}}}}}}
| last=Jardine
+
|Name3={{{author-mask3|{{{author3|{{{last3|}}}{{{first3|}}}}}}}}}
| title=The return of the secondary modern
+
|Name4={{{author-mask4|{{{author4|{{{last4|}}}{{{first4|}}}}}}}}}
| url=http://www.telegraph.co.uk/culture/tvandradio/3621779/The-return-of-the-secondary-modern.html
+
|Name5={{{author-mask5|{{{author5|{{{last5|}}}{{{first5|}}}}}}}}}
| location = London
+
|Name6={{{author-mask6|{{{author6|{{{last6|}}}{{{first6|}}}}}}}}}
| agency=
+
|Name7={{{author-mask7|{{{author7|{{{last7|}}}{{{first7|}}}}}}}}}
| newspaper=The Daily Telegraph
+
|Name8={{{author-mask8|{{{author8|{{{last8|}}}{{{first8|}}}}}}}}}
| date=5 August 2004
+
|Name9={{{author-mask9|{{{author9|{{{last9|}}}{{{first9|}}}}}}}}}
}}</div>
+
|Coauthors={{{coauthors|{{{coauthor|}}}}}}
 
+
|IncludedWorkTitle={{{chapter|{{{contribution|{{{section|}}}}}}}}}
; 通信社名を記載
+
|Editor={{{editor|}}}
* <nowiki>{{Cite news
+
|Translator={{{translator|}}}
| first=
+
|Other={{{others|}}}
| last=
+
|Title= [{{{url|}}} {{{title}}} ] {{{format|}}}
| title=Drugs: Chips trader gets 15 years, 10 strokes
+
|Language={{{language|}}}
| url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
+
|TransTitle={{{transtitle|{{{trans_title|}}}}}}
| newspaper=Daily Express
+
|Periodical={{{work|{{{journal|{{{newspaper|{{{magazine|{{{periodical|}}}}}}}}}}}}}}}
| location=Kota Kinabalu, Malaysia
+
|Edition={{{edition|}}}
| date=29 March 2007
+
|Series={{{series|{{{version|}}}}}}
| agency=Bernama
+
|Agency={{{agency|}}}
}}</nowiki><br><div style="padding:0.5em">→ {{
+
|Volume={{{volume|}}}
Cite news
+
|Issue={{{issue|{{{number|}}}}}}
| first=
+
|Publisher={{{publisher|}}}
| last=
+
|Location={{{location|}}}
| title=Drugs: Chips trader gets 15 years, 10 strokes
+
|IDbeforeAt={{{id-before-at|}}}
| url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
+
|At={{{page|{{{pages|{{{at|}}}}}}}}}
| newspaper=Daily Express
+
|IDafterAt={{{id|{{{ID|{{{id-after-at|}}}}}}}}}
| location=Kota Kinabalu, Malaysia
+
|Quote={{{quote|}}}
| date=29 March 2007
+
|Archive=[{{{archiveurl|}}} {{{archive|arch.}}} ]
| agency=Bernama
+
|ArchiveDate={{{archivedate|}}}
}}</div>
+
|AccessDate={{{accessdate|}}}
 
+
|DeadURL={{{deadurl|}}}
; 記者名について該当記事にリンク
+
|PS={{{postscript|}}}
* <nowiki>{{Cite news
+
}}</includeonly><noinclude>
| first=George
+
{{documentation}}
| last=Monbiot
+
</noinclude>
| authorlink=:en:George Monbiot
+
| title=From toxic waste to toxic assets, the same people always get dumped on
+
| url=http://www.guardian.co.uk/commentisfree/cif-green/2009/sep/21/global-fly-tipping-toxic-waste
+
| newspaper=The Guardian
+
| location=London
+
| date=22 September 2009
+
}}</nowiki><br><div style="padding:0.5em">→ {{
+
Cite news
+
| first=George
+
| last=Monbiot
+
| authorlink=:en:George Monbiot
+
| title=From toxic waste to toxic assets, the same people always get dumped on
+
| url=http://www.guardian.co.uk/commentisfree/cif-green/2009/sep/21/global-fly-tipping-toxic-waste
+
| newspaper=The Guardian
+
| location=London
+
| date=22 September 2009
+
}}</div>
+
 
+
; 紙面記事のページ番号を記載
+
* <nowiki>{{Cite news
+
| first=Arthur
+
| last=Reed
+
| title=Four-rate plan in air-fare 'jungle'
+
| page=3
+
| date=9 December 1976
+
| newspaper=The Times
+
| location = London
+
}}</nowiki><br><div style="padding:0.5em">→ {{
+
Cite news
+
| first=Arthur
+
| last=Reed
+
| title=Four-rate plan in air-fare 'jungle'
+
| page=3
+
| date=9 December 1976
+
| newspaper=The Times
+
| location = London
+
}}</div>
+
 
+
; 外国ニュースが翻訳された場合に、翻訳見出しを記載
+
* <nowiki>{{Cite news
+
| author=Joliet, François
+
| title=Honni soit qui mal y pense
+
| date=30 April 2005
+
| language=French
+
| newspaper=Le Figaro
+
| location=Paris
+
| trans_title=Shame on those who think evil
+
}}</nowiki><br><div style="padding:0.5em">→ {{
+
Cite news
+
| author=Joliet, François
+
| title=Honni soit qui mal y pense
+
| date=30 April 2005
+
| language=French
+
| newspaper=Le Figaro
+
| location=Paris
+
| trans_title=Shame on those who think evil
+
}}</div>
+

2018年7月29日 (日) 02:03時点における最新版

Template Info このテンプレートの解説はテンプレート:Cite news/docから呼び出されています[編集] [履歴]

Cite newsは、新聞記事の出典情報の記載を支援するためのテンプレートです。著者姓-発行年方式のidを持つアンカーを生成して、同一記事内のidが一致する出典注(脚注)から内部リンクできるようにする機能があります。Wikipediaの同名のテンプレートとの互換性のために作成しましたが、Yourpediaでの使用は推奨しません。

使い方[編集]

例えば、『日本経済新聞』の2018年5月9日朝刊1面の記事「シャイアー買収合意 武田、日本勢最高の6.8兆円」を出典として記し、内部リンクでは「日経新聞(2018-5-9)」のように略記して参照したいたい場合、

  • {{Cite news |last= 日経新聞 |date= 2018-5-9 |title= シャイアー買収合意 武田、日本勢最高の6.8兆円 |author= 日本経済新聞|volume= 朝刊 |page= 1面 }}

と入力すると、

  • 日経新聞 (2018-05-09) 日本経済新聞 [ シャイアー買収合意 武田、日本勢最高の6.8兆円 ] 朝刊 1面 [ arch. ]

と出力されます。

特徴[編集]

  • 冒頭に、アンカーに使用した著者姓-発行年等の情報を出力表示します。使用する引数については、#アンカー・冒頭の出力表示に含まれる引数をご参照ください。発行年等は常に( )で囲われ、発行年等の指定がない場合、空の( )が出力表示されます。
  • アンカーは、常に引数で指定した著者姓-発行年等の情報から生成します。引数「ref」は効きません。
  • アンカーの作成と冒頭の出力表示では「author」よりも「last」、「date」よりも「year」が優先されます。( )の後の出力表示では「last」よりも「author」が優先されます。「last」と「author」を両方指定することにより、出力表示を分けることができます。
  • 著者名から著者の記事への内部リンクを生成したい場合、引数「authorlink」は効きませんので、引数「author」に直接[[ ]]を付してください。その際、[[ ]]を付さずにアンカーを作成するためには、別途、引数「last」を[[ ]]を使わずに記してください。
  • 記事名(title)は、引数「url」を指定して外部リンクを設定しない限り、常に[ ]で囲われて出力表示されます。
  • 上記のほかに、括弧や句読点、「第-巻」「-年-月-日」の記載などの、スタイルに関する自動補完機能は何もありません。句点を付したいときは引数「postscript」で指定できますが、ベタ書きするのと変わりありません。

開発の意図[編集]

条件文を使わないという制約下で、WikipediaのCite系テンプレートと互換性を持つように作成しました。

WikipediaのCite系テンプレートには、著者姓-発行年方式のアンカー作成機能のほかに、テンプレートに入力された書誌情報を集計可能にする機能があります。しかしこの(Yourpediaの)テンプレートには集計機能はありません。集計機能を実装しない場合、アンカーの作成に必要な著者姓-発行年等の情報以外の書誌情報をテンプレートに入力する意味はあまりないと思います。だからこのテンプレートの使用は特に推奨しません。アンカーを作成したいときは、{{Aya}}を使用し、あとの書誌情報はお好きなスタイルで書くことをお勧めします。

引数一覧[編集]

アンカー・冒頭の出力表示に含まれる引数[編集]

  • 入力省略時の既定値はありません。
引数 意味 入力の要否
last,last1 1人目の著者姓。アンカー・冒頭の出力表示では著者姓名(author, author1)に優先し、( )後の出力表示では劣後する。 last,last1,author, author1のいずれかが必要
last2 2人目 可略
last3 3人目 可略
last4 4人目 可略
author,
author1
1人目の著者姓名。( )後の出力表示では著者姓(last last1)に優先し、アンカー・冒頭の出力表示では劣後する。 last,last1,author, author1のいずれかが必要
author2 2人目 可略
author3 3人目 可略
author4 4人目 可略
author-mask,
author-mask1
1人目の著者姓名(author, author1, last, last1, first, first1)を非表示にする。代わりに表示される「-」などの記号を入力。 可略
author-mask2 2人目 可略
author-mask3 3人目 可略
author-mask4 4人目 可略
year 発行年。アンカー・冒頭の出力表示では発行年月日(date)に優先し、( )後の出力表示では劣後する。 year, origyear, dateのいずれかが必要
origyear 原著・初版の発行年。アンカー・冒頭の出力表示では発行年(year)に劣後し、発行年月日(date)に優先する。 同上
date 発行年月日。( )後の出力表示では発行年(year)に優先し、アンカー・冒頭の出力表示では劣後する。 同上

アンカー・冒頭の出力表示に含まれない引数[編集]

  • 入力省略時の既定値はありません。
author5 5人目の著者姓名。( )の後に、著者姓(last5)に優先して表示。 可略
author6 6人目 可略
author7 7人目 可略
author8 8人目 可略
author9 9人目 可略
author-mask5 5人目の著者姓名(author5, last5, first5)を非表示にする。代わりに表示される「-」などの記号を入力。 可略
author-mask6 6人目 可略
author-mask7 7人目 可略
author-mask8 8人目 可略
author-mask9 9人目 可略
last5 5人目の著者姓。著者姓名(author5)に劣後して、著者名(first5)と併せて表示。 可略
last6 6人目 可略
last7 7人目 可略
last8 8人目 可略
last9 9人目 可略
first1 1人目の著者名。著者姓名(author, author1)に劣後して、著者姓(last, last1)と併せて表示。 可略
first2 2人目 可略
first3 3人目 可略
first4 4人目 可略
first5 5人目 可略
first6 6人目 可略
first7 7人目 可略
first8 8人目 可略
first9 9人目 可略
coauthors,
coauthor
共著者 可略
chapter,
contribution,
section
章節。記事名(title)の前に出力表示。 可略
editor 編集者 可略
translator 翻訳者 可略
others その他の関係者(監修など) 可略
title 記事名 必須
url URL。記事名(title)に外部リンクを設定する。 可略
format 外部リンク先のファイル形式(pdfなど) 可略
language 言語 可略
transtitle,
trans_title
訳書の記事名 可略
work,
journal,
newspaper,
magazine,
periodical
雑誌名(定期刊行物の題名) 可略
edition 可略
series, version 叢書 可略
agency 通信社 可略
volume 可略
issue,number 可略
publisher 出版者 可略
location 出版地 可略
id-before-at 識別番号のうち、頁範囲(page, pages, at)より前に表示するもの。 可略
page,
pages,
at
頁、頁範囲、参照範囲 可略
id, ID 識別番号。頁範囲(page, pages, at)より後に表示。 可略
id-after-at 識別番号のうち、頁範囲(page, pages, at)より後に表示するもの。 可略
quote 引用文 可略
archive アーカイブ名 可略
archiveurl アーカイブのURL 可略
archivedate アーカイブの日付 可略
accessdate 閲覧日付 可略
deadurl リンク切れしているURL 可略
postscript 追記事項、句点 可略

関連テンプレート[編集]

  • {{Cite book}}、{{Cite journal}}、{{Cite web}}、{{Citation}} - Wikipedia互換用テンプレート
  • {{Aya}} - 書誌情報に著者姓-発行年方式のアンカーを付すためのテンプレート
  • {{Harv}}、{{Sfn}}、{{Harvtxt}}、{{Harvtxt}} - 著者姓-発行年方式で出典注(脚注)を記すためのテンプレート