Template:CitePub/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} __NOTOC__ {{invokes|References}} ==Usage== <pre>{{CitePub|author=|title=|mw.pages=|publisher=|pubyear=|name=}}</pre> ===author=== The author of the publication, last name then first. If no author is listed, set to "no". ===title=== The title of the publication. ===mw.pages=== The mw.pages which are being cited, use hyphens to denote a page range, and commas to separate mw.pages and page ranges, e.g. 3, 4, 5-7, 10. ===publisher=== The publisher of th...")
 
No edit summary
 
Line 3: Line 3:
{{invokes|References}}
{{invokes|References}}
==Usage==
==Usage==
<pre>{{CitePub|author=|title=|mw.pages=|publisher=|pubyear=|name=}}</pre>
<pre>{{CitePub|author=|title=|pages=|publisher=|pubyear=|name=}}</pre>


===author===
===author===
Line 11: Line 11:
The title of the publication.
The title of the publication.


===mw.pages===
===pages===
The mw.pages which are being cited, use hyphens to denote a page range, and commas to separate mw.pages and page ranges, e.g. 3, 4, 5-7, 10.
The pages which are being cited, use hyphens to denote a page range, and commas to separate pages and page ranges, e.g. 3, 4, 5-7, 10.


===publisher===
===publisher===
The publisher of the publication, usually found on the back cover, the spine, or the first few mw.pages.
The publisher of the publication, usually found on the back cover, the spine, or the first few pages.


===pubyear===
===pubyear===

Latest revision as of 11:32, 17 October 2024

This is a documentation subpage for Template:CitePub.
It contains usage information, categories, and other content that is not part of the original template page.
Template:CitePub invokes function pubref in Module:References using Lua.
Template:CitePub invokes Module:References using Lua.

Usage

{{CitePub|author=|title=|pages=|publisher=|pubyear=|name=}}

author

The author of the publication, last name then first. If no author is listed, set to "no".

title

The title of the publication.

pages

The pages which are being cited, use hyphens to denote a page range, and commas to separate pages and page ranges, e.g. 3, 4, 5-7, 10.

publisher

The publisher of the publication, usually found on the back cover, the spine, or the first few pages.

pubyear

The year the publication was published.

Standard parameters

The following parameters are standard across all citation templates.

notes

Optional. This parameter allows you to add text beginning one space after the end of the citation. Having no formatting (meaning you will have to format it yourself), this area can be used for anything you require.

name

Optional. If you want to use this reference more than once, you must name it the first time you use it, then whenever you want to use it again, add {{NamedRef|name}} wherever you want it to re-appear.

group

Optional. This can be used to put the reference into a specific group, to separate it from other types of reference. See here for more on reference groups.