Template:Source-attribution

(重定向自Template:PD-notice

公有领域 本文含有此來源中屬於公有领域的内容。

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

用法 编辑

如果条目使用了公有领域来源中的文本,并且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模板数据

Adds a notice that an article incorporates information from a public domain source

模板参数[编辑模板数据]

参数描述类型状态
Source1

The name of the source, along with any other details which are needed to identify the work

内容推荐
No icon?no-icon noicon

Set to y to remove the leading icon

布尔可选
Plural?pl plural

Set to y to change "from a publication" to "from publications"

布尔可选
Inline?inline sentence

Set to y to change "This article" to "One or more of the preceding sentences"

布尔可选