跳转到内容

Template:Source attribution/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

用法

[编辑]

如果条目使用了公有领域来源中的文本,并且Category:引據模板中没有针对该来源的专用模板,则在条目的参考文献部分使用本模板。参见WP:FREECOPY。

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

参数

[编辑]
  • |1=(匿名参数1) — 来源的详细信息,可使用{{cite book}}等模板填入。
  • |no-icon=y — 移除前导图标(别名为noicon。参数值可为任意字符串,如yes或1等)。
  • |inline=y — 将前缀文字“本条目”改为“前述部分句子”(别名为sentence,参数值可为任意字符串,如yes或1等)。该参数用于行内引用。

示例

[编辑]
  • 将引用作为模板的匿名参数:
    • <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>
    • 本条目含有公有领域來源内容。
  • 使用|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

模板数据

[编辑]

添加一条注释,说明条目引用了来自公有领域来源的信息

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
来源1

来源的详细信息

内容推荐
是否无图标?no-icon noicon

设为y可移除前导图标

布尔可选
是否内联?inline sentence

设为y可将“本条目”改为“前述部分句子”

布尔可选

参见

[编辑]