模板:Source-attribution
用法[編輯]
如果條目使用了公有領域來源中的文本,並且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 (alternativenoiconand the argument can be any string such as yes or 1 etc)|pl=y— changes the wording from "from a publication" to "from publications" (alternativepluraland 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..." (alternativesentenceand the argument can be any string such as yes or 1 etc). It is intended for use in inline citations.
範例[編輯]
- 將引用作為模板的匿名參數:
- 在引用之前使用不使用任何參數的模板:
- 使用
|no-icon=y:<ref>{{Source-attribution|no-icon=y}}</ref>- 本文含有此來源中屬於公有領域的內容。
- 使用
|pl=y - 使用
|inline=y: - 同時使用四個參數:
<ref>{{Source-attribution|''sources and other details''|no-icon=y |pl=y |inline=y}}</ref>- 前文含有此來源中屬於公有領域的內容如下:sources and other details
模板資料[編輯]
<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>