跳至內容

模板:Multiref/doc

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

此模板用於為合併引用英語WP:CITEBUNDLE建立無專案符號列表。它兼容簡短註腳英語Help:Shortened footnotes、完整引用模板和一般註釋。標準的無專案符號列表模板{{unbulleted list}}會破壞參考文獻內的換行格式,導致在第一個列表項前出現不必要的換行。比較範例如下:

使用{{Multiref}}的效果:[1]

  1. ^
    • For the sun's size, see Miller, Edward. The Sun. Academic Press. 2005: 1. 
    • For the moon's size, see Brown, Rebecca. Size of the Moon. Scientific American. 2007, 51 (78): 46. 
    • For the sun's heat, see Yamada, Hanako. Taiyō no netsu 太陽の熱 [The Sun's Heat]. Academic Press. 2005: 2. 

對比使用{{unbulleted list}}的效果:[1]

  1. ^
    • For the sun's size, see Miller, Edward. The Sun. Academic Press. 2005: 1. 
    • For the moon's size, see Brown, Rebecca. Size of the Moon. Scientific American. 2007, 51 (78): 46. 
    • For the sun's heat, see Yamada, Hanako. Taiyō no netsu 太陽の熱 [The Sun's Heat]. Academic Press. 2005: 2. 

用法

[編輯]

基礎語法:

{{Multiref
|第一个引用内容
|第二个引用内容
...
}}

如果任何匿名參數的內容中包含等號(=),必須將匿名參數寫出,即{{Multiref|1=}}。例如: {{Multiref|[https://www.naxos.com/CatalogueDetail/?id=SWR19026CD "''Festliche Arien – Fritz Wunderlich''"], [[Naxos Records]] SWR19026CD}}將無輸出。但{{Multiref|1=[https://www.naxos.com/CatalogueDetail/?id=SWR19026CD "''Festliche Arien – Fritz Wunderlich''"], [[Naxos Records]] SWR19026CD}}能正常顯示:

範例

[編輯]

「cite」系列模板

[編輯]
原始碼 效果
Body text.<ref> {{Multiref | For the sun's size, see {{cite book | last=Miller | first=Edward | title=The Sun | publisher=Academic Press | year=2005 | page=1 | ref=none}}  | For the moon's size, see {{cite journal | last=Brown | first=Rebecca | title=Size of the Moon | journal=Scientific American | volume=51 | issue=78 | year=2007 | page=46 | ref=none}}  | For the sun's heat, see {{cite book | last=Yamada | first=Hanako | script-title=ja:太陽の熱 | title=Taiyō no netsu | trans-title=The Sun's Heat | publisher=Academic Press | year=2005 | page=2 | ref=none}} }}</ref> {{reflist}}

Body text.[1]

  1. ^
    • For the sun's size, see Miller, Edward. The Sun. Academic Press. 2005: 1. 
    • For the moon's size, see Brown, Rebecca. Size of the Moon. Scientific American. 2007, 51 (78): 46. 
    • For the sun's heat, see Yamada, Hanako. Taiyō no netsu 太陽の熱 [The Sun's Heat]. Academic Press. 2005: 2. 

簡短註腳

[編輯]
原始碼 效果
Text.<ref>{{multiref|Smith, p. 2|Jones, p. 105|Singh, p. 93|Lee ''et al.'', p. 22|Smith & Jones, p. 591}}</ref>{{reflist}}
Text.[1]
  1. ^
    • Smith, p. 2
    • Jones, p. 105
    • Singh, p. 93
    • Lee et al., p. 22
    • Smith & Jones, p. 591

或使用{{harvnb}}、{{harvtxt}}等模板:

原始碼 效果
Text.<ref> {{Multiref| {{harvnb|Yamada|2005|p=2}} | {{harvnb|Brown|2007|p=105}} | {{harvnb|Miller|2005|p=93}} }}</ref>{{reflist}}
Text.[1]
  1. ^

上方的註腳連結至完整引用:

  • Yamada, Hanako. Taiyō no netsu 太陽の熱 [The Sun's Heat]. Academic Press. 2005. 
  • Brown, Rebecca. Size of the Moon. Scientific American. 2007, 51 (78). 
  • Miller, Edward. The Sun. Academic Press. 2005. 

轉引來源

[編輯]

如果直接驗證條目內容的原始文獻無法獲取或未能查閱到,而是引用另一份包含該原始文獻引文的資料時。使用此模板可在參考文獻中將這兩項明確標示。

原始碼 效果
Text.<ref>{{multiref|Smith, p. 2 citing|Jones, p. 105}}</ref>{{reflist}}
Text.[1]
  1. ^
    • Smith, p. 2 citing
    • Jones, p. 105

說明性註釋

[編輯]
原始碼 效果
There are many breeds of cat found in Venezuela,<ref>{{multiref|For example,|Moggie, p. 2|Tom, p. 95}}</ref> particular in the cities.<ref>Smith, p. 32</ref>{{reflist}}
There are many breeds of cat found in Venezuela,[1] particular in the cities.[2]
  1. ^
    • For example,
    • Moggie, p. 2
    • Tom, p. 95
  2. ^ Smith, p. 32
原始碼 效果
There are many breeds of cat found in Venezuela,<ref>{{multiref|One example,|Moggie, p. 2}}</ref> particular in the cities.<ref>Smith, p. 32</ref>{{reflist}}
There are many breeds of cat found in Venezuela,[1] particular in the cities.[2]
  1. ^
    • One example,
    • Moggie, p. 2
  2. ^ Smith, p. 32

已知問題

[編輯]

本模板透過抑制特定引用中的換行來實現部分功能。當頁面過短導致參考文獻與資訊框或圖片重疊時,此功能會失效。此時應改用{{clear}}等模板或{{multiref2}}。

模板資料

[編輯]

為合併引用建立無專案符號列表。

模板參數

參數描述類型狀態
classclass

為包裹列表的<div>...</div>標籤添加自訂class

範例
plainlinks
字串非必填
樣式style

為包裹列表的<div>...</div>標籤添加自訂CSS樣式

範例
font-size: 90%;
字串非必填
列表樣式list_style

為列表的<ul>...</ul>標籤添加自訂CSS樣式

字串非必填
專案樣式item_style

為所有列表項(<li>...</li>標籤)添加統一CSS樣式

字串非必填
專案11

沒有描述

必填
專案22

沒有描述

建議
專案33

沒有描述

非必填
專案44

沒有描述

非必填
專案55

沒有描述

非必填
專案66

沒有描述

非必填
專案77

沒有描述

非必填
專案88

沒有描述

非必填
專案99

沒有描述

非必填
專案1樣式item1_style

為列表項1添加獨立CSS樣式

字串非必填
專案2樣式item2_style

為列表項2添加獨立CSS樣式

字串非必填
專案3樣式item3_style

為列表項3添加獨立CSS樣式

字串非必填
專案4樣式item4_style

為列表項4添加獨立CSS樣式

字串非必填
專案5樣式item5_style

為列表項5添加獨立CSS樣式

字串非必填
專案6樣式item6_style

為列表項6添加獨立CSS樣式

字串非必填
專案7樣式item7_style

為列表項7添加獨立CSS樣式

字串非必填
專案8樣式item8_style

為列表項8添加獨立CSS樣式

字串非必填
專案9樣式item9_style

為列表項9添加獨立CSS樣式

字串非必填