Extension:RefHelper/templates

From MediaWiki.org
Jump to: navigation, search

You can now go to:

http://neurov.is/on/Special:Export

Type in "RefHelper templates" in the "Add pages from category:" textbox and click add. Check the "Include templates" box and then export. You can then import all of the templates at once - including some that are missing from the list below.

Contents

[edit] $wgRefHelperCiteTemplate

By default, the name of this template is "Template:RefHelperCite".

{{{lt}}}onlyinclude>{{cite journal
| first = {{{first1}}}
| last = {{{last1}}}
| first2 = {{{first2|}}}
| last2 = {{{last2|}}}
| first3 = {{{first3|}}}
| last3 = {{{last3|}}}
| first4 = {{{first4|}}}
| last4 = {{{last4|}}}
| first5 = {{{first5|}}}
| last5 = {{{last5|}}}
| title = {{{titlelink}}}
| journal = {{{journal}}}
| volume = {{{volume}}}
| pages = {{{pages}}}
| pmid = {{{pmid}}}
| date = {{{year}}} }}</onlyinclude>
{{Publication citation}}

[edit] $wgRefHelperPageTemplate

By default, the name of this template is "Template:RefHelperPage".

==Citation==
{{ToCite}}
<includeonly>[[Category:References]]
{{{categories}}}</includeonly>

[edit] Template:ToCite

This template is only needed if used by $wgRefHelperPageTemplate.

<onlyinclude>The citation for this paper is:
:{{:Cite:{{{1|{{PAGENAME}}}}}}}

Edit [[Cite:{{{1|{{PAGENAME}}}}}]] to modify the citation.  For information on citing a paper, see [[Help:Citing]].

{{#if:{{{chapternum|}}}| You can specify the ''chapternum parameter'' for this citation, although not all chapters may be accepted.
}}
</onlyinclude>

[edit] Template:Ref

This template makes it easy to use a citation as a reference. Instead of using the <ref> tags and having to specify the name attribute for multiple references, you can simply use {{ref|Hubel 1962}}, where "Hubel 1962" is the "refname" of the citation.

<onlyinclude><includeonly>{{#tag:ref|{{:Cite:{{{name|{{{1|default}}} }}} |chapternum={{{chapternum}}} }}|name={{anchorencode:{{{name|{{{1|default}}} }}} }} }}</includeonly></onlyinclude>

[[Template:Ref/Examples]]

[edit] Template:Ref/Examples

Instead of using reference tags, use:

Text{{ref|Hubel 1962}}

Which will result in:

Text{{Ref|Hubel_1962}}

You can also specify the same parameter via "name"
Text{{ref|name=Hubel 1962}}

Which will result in:

Text{{Ref|name=Hubel_1962}}

If you leave it blank, the "default" reference will be used (never good!):

Text{{Ref}}


Complex cells{{ref|name=Hubel 1962}} and hypercomplex cells {{ref|name=Hubel 1965}}

And will show up in the references as:
<references/>
</noinclude>
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox