Template:Ref: Difference between revisions

From iBase Pedia
Jump to navigation Jump to search
Created page with "<includeonly> <ref name="{{{name|}}}">{{{1|}}}</ref> </includeonly> <noinclude> This template is used to create named references easily. It is based on: https://en.wikipedia.org/wiki/Template:Ref == Usage == Basic reference: <pre> {{Ref|This is a reference text}} </pre> Named reference: <pre> {{Ref|name=myref|This is a reference text}} </pre> Reusing a named reference: <pre> <ref name="myref"/> </pre> Works together with {{Reflist}} to display references. Categ..."
 
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
<ref name="{{{name|}}}">{{{1|}}}</ref>
{{#if:{{{name|}}}
| <ref name="{{{name}}}">{{{1|}}}</ref>
| <ref>{{{1|}}}</ref>
}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
This template is used to create named references easily.
This template creates named or unnamed references safely.
 
It is based on:
https://en.wikipedia.org/wiki/Template:Ref


== Usage ==
== Usage ==


Basic reference:
Unnamed reference:
<pre>
<pre>
{{Ref|This is a reference text}}
{{Ref|Some source text}}
</pre>
</pre>


Named reference:
Named reference:
<pre>
<pre>
{{Ref|name=myref|This is a reference text}}
{{Ref|name=myref|Some source text}}
</pre>
</pre>


Line 25: Line 25:
<ref name="myref"/>
<ref name="myref"/>
</pre>
</pre>
Works together with {{Reflist}} to display references.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 07:11, 12 January 2026


This template creates named or unnamed references safely.

Usage

Unnamed reference:

{{Ref|Some source text}}

Named reference:

{{Ref|name=myref|Some source text}}

Reusing a named reference:

<ref name="myref"/>