模板:Source-attribution/doc

出自Local Chinese Wikipedia
跳至導覽 跳至搜尋

用法[編輯]

如果條目使用了公有領域來源中的文本,並且Category:引據模板中尚無對應模板,則在參考文獻部分使用本模板。

{{Source-attribution|来源|no-icon=y|pl=y|inline=y}}

參數[編輯]

  • |1= (unnamed) = source name and other identifying details — The name of the source, along with any other details which are needed to identify the work (the argument (the text) can also be another template such as {{cite book}})
  • |no-icon=y — remove the leading icon (alternative noicon and the argument can be any string such as yes or 1 etc)
  • |pl=y — changes the wording from "from a publication" to "from publications" (alternative plural and the argument can be any string such as yes or 1 etc).
  • |inline=y — change the wording of the prescript from "This article..." to "One or more of the preceding sentences..." (alternative sentence and the argument can be any string such as yes or 1 etc). It is intended for use in inline citations.

範例[編輯]

  • 將引用作為模板的匿名參數:
    • <ref>{{Source-attribution|{{cite book |title= Handbook to the cathedrals of England |first=Richard |last=John |date=1869}} }}</ref>
    • 公有領域 本文含有此來源中屬於公有領域的內容:John, Richard. Handbook to the cathedrals of England. 1869. 
  • 在引用之前使用不使用任何參數的模板:
    • <ref>{{Source-attribution}} {{cite book|last=Offa |first=Anne |year=1066|title=An Old Book}}</ref>
    • 公有領域 本文含有此來源中屬於公有領域的內容。 Offa, Anne. An Old Book. 1066. 
  • 使用|no-icon=y
    • <ref>{{Source-attribution|no-icon=y}}</ref>
    • 本文含有此來源中屬於公有領域的內容。
  • 使用|pl=y
    • <ref>{{Source-attribution|pl=y|John, Richard (1869). ''Handbook to the cathedrals of England''; and {{cite book|last=Offa |first=Anne |year=1066|title=An Old Book}}}}</ref>
    • 公有領域 本文含有此來源中屬於公有領域的內容如下:John, Richard (1869). Handbook to the cathedrals of England; and Offa, Anne. An Old Book. 1066. 
  • 使用|inline=y
    • <ref>{{Source-attribution|inline=y|''Handbook to the cathedrals of England'', by Richard John (1869)}}</ref>
    • 公有領域 前文含有此來源中屬於公有領域的內容:Handbook to the cathedrals of England, by Richard John (1869)
  • 同時使用四個參數:
    • <ref>{{Source-attribution|''sources and other details''|no-icon=y |pl=y |inline=y}}</ref>
    • 前文含有此來源中屬於公有領域的內容如下:sources and other details

模板資料[編輯]

以下是該模板的模板資料,適用於視覺化編輯器等工具。

Source-attribution模板資料

<templatedata> { "params": { "1": { "label": "Source", "description": "The name of the source, along with any other details which are needed to identify the work", "type": "content", "suggested": true }, "inline": { "aliases": [ "sentence" ], "label": "Inline?", "description": "Set to y to change \"This article\" to \"One or more of the preceding sentences\"", "type": "boolean",

			"suggested": false

}, "no-icon": { "aliases": [ "noicon" ], "label": "No icon?", "description": "Set to y to remove the leading icon", "type": "boolean",

			"suggested": false

}, "pl": { "aliases": [ "plural" ], "label": "Plural?", "description": "Set to y to change \"from a publication\" to \"from publications\"", "type": "boolean" } }, "paramOrder": [ "1", "no-icon", "pl", "inline" ], "description": "Adds a notice that an article incorporates information from a public domain source" } </templatedata>

參見[編輯]