“模板:Reflist”的版本间的差异

来自UtaWiki
跳转至: 导航搜索
第67行: 第67行:
 
;代码
 
;代码
 
<dd>
 
<dd>
  <nowiki>Lorem ipsum.<ref group="a">Source name, access date, etc.</ref></nowiki>
+
  <nowiki>Lorem ipsum.<ref>Source name, access date, etc.</ref></nowiki>
  <nowiki>Lorem ipsum dolor sit amet.<ref group="a">Source name, access date, etc.</ref></nowiki>
+
  <nowiki>Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref></nowiki>
  <nowiki>Lorem ipsum.<ref group="a">Source name, access date, etc.</ref></nowiki>
+
  <nowiki>Lorem ipsum.<ref>Source name, access date, etc.</ref></nowiki>
  <nowiki>Lorem ipsum dolor sit amet.<ref group="a">Source name, access date, etc.</ref></nowiki>
+
  <nowiki>Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref></nowiki>
 
  <nowiki>==参考资料==</nowiki>
 
  <nowiki>==参考资料==</nowiki>
  <nowiki>{{Reflist|3|group="a"}}</nowiki>
+
  <nowiki>{{Reflist|3}}</nowiki>
 
</dd>
 
</dd>
 
;效果
 
;效果
<dd>Lorem ipsum.<ref group="注">Source name, access date, etc.</ref>
+
<dd>Lorem ipsum.<ref>Source name, access date, etc.</ref>
  
Lorem ipsum dolor sit amet.<ref group="注">Source name, access date, etc.</ref>
+
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
  
Lorem ipsum.<ref group="注">Source name, access date, etc.</ref>
+
Lorem ipsum.<ref>Source name, access date, etc.</ref>
  
Lorem ipsum dolor sit amet.<ref group="注">Source name, access date, etc.</ref>
+
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
  
 
<div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.17em; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">参考资料</div>
 
<div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.17em; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">参考资料</div>
  
{{Reflist|3|group="a"}}</dd>
+
{{Reflist|3}}</dd>
 
</noinclude>
 
</noinclude>

2014年8月6日 (三) 17:31的版本

本模板用于显示注脚列表。建议使用本模板来替代<references/>

使用方法

{{Reflist|分栏数|group="组别"|colwidth=分栏宽度|list=列表内容}}

示例

参考文献

代码

Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
==参考资料==
{{Reflist}}

效果

Lorem ipsum.[1]

Lorem ipsum dolor sit amet.[2]

参考资料
  1. Source name, access date, etc.
  2. Source name, access date, etc.


注释

代码

Lorem ipsum.<ref group="注">Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref group="注">Source name, access date, etc.</ref>
==注释==
{{Reflist|group="注"}}

效果

Lorem ipsum.[注 1]

Lorem ipsum dolor sit amet.[注 2]

注释
  1. Source name, access date, etc.
  2. Source name, access date, etc.


分栏显示

代码

Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
==参考资料==
{{Reflist|3}}

效果

Lorem ipsum.[1]

Lorem ipsum dolor sit amet.[2]

Lorem ipsum.[3]

Lorem ipsum dolor sit amet.[4]

参考资料
  1. Source name, access date, etc.
  2. Source name, access date, etc.
  3. Source name, access date, etc.
  4. Source name, access date, etc.