模板:Source attribution/doc
外觀
| 此頁面是Template:Source attribution的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
用法
[編輯]如果條目使用了公有領域來源中的文本,並且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可將「本條目」改為「前述部分句子」 | 布林值 | 非必填 |
參見
[編輯]