Template:Reference: Difference between revisions
m (Fix Text) |
m (Add a function that allows abbreviations.) |
||
Line 2: | Line 2: | ||
<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 23: | ||
===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> |
Revision as of 05:52, 29 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)
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: hahahahaha yet!
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!