Template:Reference: Difference between revisions
m Fix Text |
mNo edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<sup class="mw-customtoggle-{{{1|1}}} mw-customtoggle" style="position:relative;color:#0645ad;" title="{{{title|Expand/Collapse Ref}}}">[{{{1|1}}}]</sup><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|1}}}" style="background: #FFF;color: #222;font-size: 13px;line-height: 1.5em;border: 1px solid #C8CCD1;border-radius: 3px;padding: 2px 3px;">{{{2|Reference and Comments}}}</span> | <sup id="ref-{{{1|1}}}" class="mw-customtoggle-{{{1|1}}} mw-customtoggle" style="position:relative;color:#0645ad;" title="{{{title|Expand/Collapse Ref}}}">[{{{1|1}}}]</sup><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|1}}}" style="background: #FFF;color: #222;font-size: 13px;line-height: 1.5em;border: 1px solid #C8CCD1;border-radius: 3px;padding: 2px 3px;">{{{2|Reference and Comments}}}</span></div><noinclude> | ||
<noinclude> | |||
Because the reference function of this wiki website is disabled,<res>has no actual effect. Now use Template to restore it. (However, it can only display the comments when you click, and cannot automatically generate the "Reference and Comments" chapter) | Because the reference function of this wiki website is disabled,<res>has no actual effect. Now use Template to restore it. (However, it can only display the comments when you click, and cannot automatically generate the "Reference and Comments" chapter) | ||
You can abbreviate '''<nowiki>{{Reference}}</nowiki>''' to '''<nowiki>{{Ref}}</nowiki>''', which is an allowed operation. | |||
==Usage== | ==Usage== | ||
This template has three parameters. | This template has three parameters. | ||
<code><nowiki>{{Reference|1|2|title}}</nowiki></code> | <code><nowiki>{{Reference|1|2|title}}</nowiki></code> or <code><nowiki>{{Ref|1|2|title}}</nowiki></code> | ||
Fill in the number at <code>1</code> (required, default is <code>1</code>), | Fill in the number at <code>1</code> (required, default is <code>1</code>), | ||
| Line 20: | Line 22: | ||
===Example 2:=== | ===Example 2:=== | ||
<code>I'm from Coats Land<nowiki>{{ | <code>I'm from Coats Land<nowiki>{{Ref|4|"Coats Land" is a EMC country.|title=cilck}}</nowiki>, so I love Antarctica!</code> | ||
===Effect 2:=== | ===Effect 2:=== | ||
I'm from Coats Land{{ | I'm from Coats Land{{Ref|4|"Coats Land" is a EMC country.|title=cilck}}, so I love Antarctica! | ||
</noinclude> | </noinclude> | ||