コンテンツにスキップ

「Template:Cite encyclopedia」の版間の差分

削除された内容 追加された内容
Template:Citation/coreにおけるDoiBroken引数廃止に伴う修正
CS1に変更。en:Template:Cite encyclopedia oldid=690395481 を参考
タグ: 置換
1行目: 1行目:
<includeonly>{{#invoke:Citation/CS1|citation|CitationClass=encyclopaedia}}</includeonly><noinclude>
{{Citation/core
{{Documentation}}
|Citation class=book
</noinclude>
|Surname1 = {{ ifempty | {{{last|}}} | {{{surname|}}} | {{{last1|}}} | {{{surname1|}}} | {{{author1|}}} | {{{author|}}} | {{{authors|}}} }}
|Surname2 = {{ ifempty | {{{last2|}}} | {{{surname2|}}} | {{{author2|}}} }}
|Surname3 = {{ ifempty | {{{last3|}}} | {{{surname3|}}} | {{{author3|}}} }}
|Surname4 = {{ ifempty | {{{last4|}}} | {{{surname4|}}} | {{{author4|}}} }}
|Surname5 = {{ ifempty | {{{last5|}}} | {{{surname5|}}} | {{{author5|}}} }}
|Surname6 = {{ ifempty | {{{last6|}}} | {{{surname6|}}} | {{{author6|}}} }}
|Surname7 = {{ ifempty | {{{last7|}}} | {{{surname7|}}} | {{{author7|}}} }}
|Surname8 = {{ ifempty | {{{last8|}}} | {{{surname8|}}} | {{{author8|}}} }}
|Surname9 = {{ ifempty | {{{last9|}}} | {{{surname9|}}} | {{{author9|}}} }}
|Given1 = {{ ifempty | {{{first1|}}} | {{{given1|}}} | {{{first|}}} | {{{given|}}} }}
|Given2 = {{ ifempty | {{{first2|}}} | {{{given2|}}} }}
|Given3 = {{ ifempty | {{{first3|}}} | {{{given3|}}} }}
|Given4 = {{ ifempty | {{{first4|}}} | {{{given4|}}} }}
|Given5 = {{ ifempty | {{{first5|}}} | {{{given5|}}} }}
|Given6 = {{ ifempty | {{{first6|}}} | {{{given6|}}} }}
|Given7 = {{ ifempty | {{{first7|}}} | {{{given7|}}} }}
|Given8 = {{ ifempty | {{{first8|}}} | {{{given8|}}} }}
|Given9 = {{ ifempty | {{{first9|}}} | {{{given9|}}} }}
|Authorlink1 = {{ ifempty | {{{author-link|}}} | {{{author1-link|}}} | {{{authorlink|}}} | {{{authorlink1|}}} }}
|Authorlink2 = {{ ifempty | {{{author2-link|}}} | {{{authorlink2|}}} }}
|Authorlink3 = {{ ifempty | {{{author3-link|}}} | {{{authorlink3|}}} }}
|Authorlink4 = {{ ifempty | {{{author4-link|}}} | {{{authorlink4|}}} }}
|Authorlink5 = {{ ifempty | {{{author5-link|}}} | {{{authorlink5|}}} }}
|Authorlink6 = {{ ifempty | {{{author6-link|}}} | {{{authorlink6|}}} }}
|Authorlink7 = {{ ifempty | {{{author7-link|}}} | {{{authorlink7|}}} }}
|Authorlink8 = {{ ifempty | {{{author8-link|}}} | {{{authorlink8|}}} }}
|Authorlink9 = {{ ifempty | {{{author9-link|}}} | {{{authorlink9|}}} }}
|Coauthors = {{ ifempty | {{{coauthor|}}} | {{{coauthors|}}} }}
|Year={{{year|{{ <!-- attempt to derive year from date, if possible -->
#if: {{{date|}}}
|{{
#iferror:{{#time:Y|{{{date|}}} }}
|{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
|{{#time:Y|{{{date|}}} }}
}}
|{{{publication-date|}}} <!-- last resort -->
}}
}}}
|YearNote = {{{origyear|}}}
|Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
|Title = {{ ifempty | {{{encyclopedia|}}} | {{{title|}}} }}
|URL = {{{url|}}}
|Series = {{{series|}}}
|Volume = {{{volume|}}}
|Issue = {{ ifempty | {{{issue|}}} | {{{number|}}} }}
|At = {{
#if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
|{{{pages|{{{page|{{{at|}}}}}}}}}
|{{
#if: {{{page|}}}
|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
|{{
#if: {{{pages|}}}
|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
|{{{at|}}}
}}
}}
}}
|IncludedWorkTitle = {{ ifempty | {{{title|}}} | {{{article|}}} }}
|IncludedWorkURL = {{ ifempty | {{{chapter-url|}}} | {{{chapterurl|}}} | {{{contribution-url|}}} }}
|Other = {{{others|}}}
|Edition = {{{edition|}}}
|Place = {{ ifempty | {{{place|}}} | {{{location|}}} }}
|PublicationPlace = {{ ifempty | {{{publication-place|}}} | {{{place|}}} | {{{location|}}} }}
|Publisher = {{{publisher|}}}
|PublicationDate = {{{publication-date|}}}
|EditorSurname1 = {{ ifempty | {{{editor-last|}}} | {{{editor-surname|}}} | {{{editor1-last|}}} | {{{editor1-surname|}}} | {{{editor|}}} | {{{editors|}}} }}
|EditorSurname2 = {{ ifempty | {{{editor2-last|}}} | {{{editor2-surname|}}} }}
|EditorSurname3 = {{ ifempty | {{{editor3-last|}}} | {{{editor3-surname|}}} }}
|EditorSurname4 = {{ ifempty | {{{editor4-last|}}} | {{{editor4-surname|}}} }}
|EditorGiven1 = {{ ifempty | {{{editor-first|}}} | {{{editor-given|}}} | {{{editor1-first|}}} | {{{editor1-given|}}} }}
|EditorGiven2 = {{ ifempty | {{{editor2-first|}}} | {{{editor2-given|}}} }}
|EditorGiven3 = {{ ifempty | {{{editor3-first|}}} | {{{editor3-given|}}} }}
|EditorGiven4 = {{ ifempty | {{{editor4-first|}}} | {{{editor4-given|}}} }}
|Editorlink1 = {{ ifempty | {{{editor-link|}}} | {{{editor1-link|}}} }}
|Editorlink2 = {{{editor2-link|}}}
|Editorlink3 = {{{editor3-link|}}}
|Editorlink4 = {{{editor4-link|}}}
|language = {{ ifempty | {{{language|}}} | {{{in|}}} }}
|format = {{{format|}}}
|ID = {{ ifempty | {{{id|}}} | {{{ID|}}} }}
|ISBN = {{ ifempty | {{{isbn|}}} | {{{ISBN|}}} }}
|OCLC = {{ ifempty | {{{oclc|}}} | {{{OCLC|}}} }}
|Bibcode = {{{bibcode|}}}
|DOI = {{ ifempty | {{{doi|}}} | {{{DOI|}}} }}
|AccessDate = {{ ifempty | {{{access-date|}}} | {{{accessdate|}}} }}
|quote = {{{quote|}}}
|Ref = {{{ref|}}}
|Sep = {{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|.}}} }}} }}
|PS = {{{postscript|.}}}
|amp = {{{lastauthoramp|}}}
}}<noinclude>
{{documentation}}</noinclude>

2021年4月4日 (日) 16:10時点における版

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

全ての引数は英数小文字で記述してください。使用には以下のフォーマットをコピーしてください。

使用法

基本的なフォーマット

{{cite encyclopedia |year= |title = |encyclopedia= |publisher= |location= |id= }}

全引数が書かれた水平なフォーマット

{{cite encyclopedia |last= |first= |author= |authorlink= |editor= |encyclopedia= |title= |url= |accessdate= |edition= |date= |year= |publisher= |volume= |location= |id= |isbn= |oclc= |doi= |pages= |quote= }}

全引数が書かれた水平なフォーマット(現在の日付入り)

{{cite encyclopedia |last= |first= |author= |authorlink= |editor= |encyclopedia= |title= |url= |accessdate=2024-07-19 |edition= |date= |year= |publisher= |volume= |location= |id= |isbn= |oclc= |doi= |pages= |quote= }}

全引数が書かれた縦書きフォーマット 基本的な縦書きフォーマット
{{cite encyclopedia
 | last = 
 | first = 
 | author = 
 | authorlink = 
 | editor = 
 | encyclopedia =
 | title = 
 | url = 
 | accessdate = 
 | edition = 
 | date = 
 | year = 
 | publisher = 
 | volume =
 | location = 
 | id = 
 | isbn =
 | oclc =
 | doi =
 | pages = 
 | quote = 
}}

{{cite encyclopedia
 | year = 
 | title = 
 | encyclopedia =
 | publisher = 
 | location = 
 | id = 
}}

引数

内部リンク

内部リンクが可能な場合は例のように入力します(例 title = [[書籍記事名|書籍のタイトル]])。

引数の説明

リストの見方

  • 親引数
    • 子引数 : 親引数と一緒に指定しなければいけません (親引数の指定がないと一切表示されません)
    • もしくは子引数2 : 親引数の代わりに使用可能 (親引数が指定されていると一切表示されません)

説明

  • title: 百科事典の項目名。入力必須。
  • encyclopedia: 百科事典の題名。入力必須。
  • last: 項目の著者のラストネーム。日本人名の場合はこの引数でフルネームで指定。内部リンクせず、authorlinkで指定すること。
    • first: 項目の著者のファーストネーム。内部リンクせず、authorlinkで指定すること。
    • last2, first2: 2人目の著者はこの引数で入力。以降last3first3などと続く。
  • editorもしくはeditors: 百科事典の編集者
  • url: 百科事典のサイトのURL。titleで内部リンクを設定したときは使用不可。
  • accessdate: 出典の閲覧日。urlを指定したときには入力必須。内部リンクしないこと。ISO 8601 YYYY-MM-DD形式で入力。例: 2006-02-17
  • language: 百科事典の言語
  • edition: 百科事典の版
  • volume: 百科事典が複数巻にわたる場合該当の巻数
  • date: 百科事典の出版日。内部リンクしない。月までしかわからない場合は、MMM YYYY形式(例:Jun 2012)で入力。
  • publisher: 百科事典の出版社
    • location: 出版社の本社所在地
  • isbn: 百科事典のISBN1-111-22222-9のように入力。他の引数のように引数は小文字で入力。
  • oclc: Online Computer Library Centerの番号を3185581のように入力。
  • doi: デジタルオブジェクト識別子 (DOI)。{{doi}}も参照。
  • id: ISBN、OCLC、DOI 以外の一意識別子。{{ISSN}}のようなテンプレートを使い、{{LCC|Z253.U69}} のように入力するのが望ましい。
  • pages: 参照したページ番号。複数にわたる場合は、最初と最後のページ番号を5–7のように入力。総ページ数は入力しない。
  • quote: 適切な引用句
  • ref: 本文にてハーバード方式で参照するためなどに使用するID。

TemplateData

これはビジュアルエディターテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

Cite encyclopedia

百科事典を引用するためのテンプレート。和書は指定できない。

テンプレートパラメーター[テンプレートデータを編集]

このテンプレートはカスタムの書式を採用します。

パラメーター説明状態
項目名title

引用する項目名

必須
百科事典encyclopedia

百科事典の書名

必須

COinS

このテンプレートはCOinSのメタデータを生成します。詳しくはWikipedia:COinSをご参照ください。

テスト

  • {{cite encyclopedia | last = LAST | first = FIRST | authorlink = AUTHORLINK | editor = EDITOR | encyclopedia = ENCYCLOPEDIA | title = TITLE | url = http://www.ecample.com | accessdate = 2006-07-02 | edition = EDITION | date = | year = 1999 | publisher = PUBLISHER | volume = 123 | location = LOCATION | id = ID | doi = | pages = PAGES }}
    LAST, FIRST (1999). "TITLE". In EDITOR (ed.). ENCYCLOPEDIA. Vol. 123 (EDITION ed.). LOCATION: PUBLISHER. pp. PAGES. ID. 2006年7月2日閲覧
  • {{cite encyclopedia | last = LAST | first = FIRST | authorlink = AUTHORLINK | editor = EDITOR | encyclopedia = ENCYCLOPEDIA | title = TITLE | url = http://www.ecample.com | accessdate = 2006-07-02 | edition = EDITION | date = | year = 1999 | publisher = PUBLISHER | volume = 123 | location = LOCATION | id = ID | doi = | pages = }}
    LAST, FIRST (1999). "TITLE". In EDITOR (ed.). ENCYCLOPEDIA. Vol. 123 (EDITION ed.). LOCATION: PUBLISHER. ID. 2006年7月2日閲覧