模板:Multiref/doc
| File:Edit-copy green.svg | 此頁面是Template:Multiref的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
| File:Lua-Logo.svg | 此模板使用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}}。
模板資料[編輯]
<templatedata> { "description": "為合併引用建立無專案符號列表。", "params": { "1": { "label": "專案1", "type": "line", "required": true }, "2": { "label": "專案2", "type": "line", "suggested": true }, "3": { "label": "專案3", "type": "line" }, "4": { "label": "專案4", "type": "line" }, "5": { "label": "專案5", "type": "line" }, "6": { "label": "專案6", "type": "line" }, "7": { "label": "專案7", "type": "line" }, "8": { "label": "專案8", "type": "line" }, "9": { "label": "專案9", "type": "line" }, "class": {
"description": "為包裹列表的
標籤添加自訂class",
"example": "plainlinks", "type": "string" }, "style": {
"description": "為包裹列表的
標籤添加自訂CSS樣式",
"example": "font-size: 90%;", "type": "string", "label": "樣式" }, "list_style": {
"description": "為列表的
- ...
標籤添加自訂CSS樣式",
"label": "列表樣式", "type": "string" }, "item_style": {
"description": "為所有列表項(
標籤)添加統一CSS樣式", "label": "專案樣式", "type": "string" }, "item1_style": { "label": "專案1樣式", "description": "為列表項1添加獨立CSS樣式", "type": "string" }, "item2_style": { "label": "專案2樣式", "description": "為列表項2添加獨立CSS樣式", "type": "string" }, "item3_style": { "label": "專案3樣式", "description": "為列表項3添加獨立CSS樣式", "type": "string" }, "item4_style": { "label": "專案4樣式", "description": "為列表項4添加獨立CSS樣式", "type": "string" }, "item5_style": { "label": "專案5樣式", "description": "為列表項5添加獨立CSS樣式", "type": "string" }, "item6_style": { "label": "專案6樣式", "description": "為列表項6添加獨立CSS樣式", "type": "string" }, "item7_style": { "label": "專案7樣式", "description": "為列表項7添加獨立CSS樣式", "type": "string" }, "item8_style": { "label": "專案8樣式", "description": "為列表項8添加獨立CSS樣式", "type": "string" }, "item9_style": { "label": "專案9樣式", "description": "為列表項9添加獨立CSS樣式", "type": "string" } }, "paramOrder": [ "class", "style", "list_style", "item_style", "1", "2", "3", "4", "5", "6", "7", "8", "9", "item1_style", "item2_style", "item3_style", "item4_style", "item5_style", "item6_style", "item7_style", "item8_style", "item9_style" ] } </templatedata>