模板:Multiref

![]() | 此模板使用Lua語言: |
此模板用於為合併引用建立無專案符號列表。它兼容簡短註腳、完整引用模板和一般注釋。標準的無專案符號列表模板{{unbulleted list}}會破壞參考文獻內的換行格式,導致在第一個列表項前出現不必要的換行。比較範例如下:
使用{{Multiref}}
的效果:[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]
- ^
- 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}}
能正常顯示:
- "Festliche Arien – Fritz Wunderlich", Naxos Records SWR19026CD
範例
[編輯]「cite」系列模板
[編輯]原始碼 | 效果 |
---|---|
|
|
簡短註腳
[編輯]原始碼 | 效果 |
---|---|
|
|
原始碼 | 效果 |
---|---|
|
Text.[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.
轉引來源
[編輯]如果直接驗證條目內容的原始文獻無法獲取或未能查閱到,而是引用另一份包含該原始文獻引文的資料時。使用此模板可在參考文獻中將這兩項明確標示。
原始碼 | 效果 |
---|---|
|
|
說明性注釋
[編輯]原始碼 | 效果 |
---|---|
|
|
原始碼 | 效果 |
---|---|
|
|
已知問題
[編輯]本模板透過抑制特定引用中的換行來實現部分功能。當頁面過短導致參考文獻與資訊框或圖片重疊時,此功能會失效。此時應改用{{clear}}等模板或{{multiref2}}。
模板資料
[編輯]為合併引用建立無專案符號列表。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
class | class | 為包裹列表的<div>...</div>標籤添加自訂class
| 字串 | 非必填 |
樣式 | style | 為包裹列表的<div>...</div>標籤添加自訂CSS樣式
| 字串 | 非必填 |
列表樣式 | list_style | 為列表的<ul>...</ul>標籤添加自訂CSS樣式 | 字串 | 非必填 |
專案樣式 | item_style | 為所有列表項(<li>...</li>標籤)添加統一CSS樣式 | 字串 | 非必填 |
專案1 | 1 | 沒有描述 | 行 | 必填 |
專案2 | 2 | 沒有描述 | 行 | 建議 |
專案3 | 3 | 沒有描述 | 行 | 非必填 |
專案4 | 4 | 沒有描述 | 行 | 非必填 |
專案5 | 5 | 沒有描述 | 行 | 非必填 |
專案6 | 6 | 沒有描述 | 行 | 非必填 |
專案7 | 7 | 沒有描述 | 行 | 非必填 |
專案8 | 8 | 沒有描述 | 行 | 非必填 |
專案9 | 9 | 沒有描述 | 行 | 非必填 |
專案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樣式 | 字串 | 非必填 |