Template:Reference: Difference between revisions

Created page with "<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> <noinclude> Because the reference function of this wiki website is disa..."
 
mNo edit summary
 
(5 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>{{Template: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 14: Line 16:


===Example 1:===
===Example 1:===
<code>are you ok????<nowiki>{{Template:Reference|#|from: hahahahaha}}</nowiki>yet!</code>
<code>are you ok????<nowiki>{{Reference|#|from: hahahahaha}}</nowiki>yet!</code>


===Effect 1:===
===Effect 1:===
are you ok????{{Template:Reference|#|from: hahahahaha}}yet!
are you ok????{{Reference|#|from: hahahahaha}}yet!


===Example 2:===
===Example 2:===
<code>I'm from Coats Land<nowiki>{{Template:Reference|4|"Coats Land" is a EMC country.|title=cilck}}</nowiki>, so I love Antarctica!</code>
<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{{Template:Reference|4|"Coats Land" is a EMC country.|title=cilck}}, so I love Antarctica!
I'm from Coats Land{{Ref|4|"Coats Land" is a EMC country.|title=cilck}}, so I love Antarctica!


</noinclude>
</noinclude>