Template:Reference: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(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...")
 
m (Fix Text)
Line 5: Line 5:
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>


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 14:


===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>{{Reference|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{{Reference|4|"Coats Land" is a EMC country.|title=cilck}}, so I love Antarctica!


</noinclude>
</noinclude>

Revision as of 15:21, 28 December 2022

[1]Reference and Comments

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)

Usage

This template has three parameters.

{{Reference|1|2|title}}

Fill in the number at 1 (required, default is 1),

the corresponding content at 2 (default is Reference and Comments),

and the mouse prompt at title (optional, default is Expand/Collapse Ref).

Example 1:

are you ok????{{Reference|#|from: hahahahaha}}yet!

Effect 1:

are you ok????[#]from: hahahahaha yet!

Example 2:

I'm from Coats Land{{Reference|4|"Coats Land" is a EMC country.|title=cilck}}, so I love Antarctica!

Effect 2:

I'm from Coats Land[4]"Coats Land" is a EMC country. , so I love Antarctica!