Template:Reference: Difference between revisions
m (Add a function that allows abbreviations.) |
mNo edit summary |
||
(3 intermediate revisions by the same user 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) | ||
Latest revision as of 17:35, 7 November 2023
[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)
You can abbreviate {{Reference}} to {{Ref}}, which is an allowed operation.
Usage
This template has three parameters.
{{Reference|1|2|title}}
or {{Ref|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: hahahahahayet!
Example 2:
I'm from Coats Land{{Ref|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!