Difference between revisions of "Template:Cite gvp/doc"

From blackwiki
Jump to navigation Jump to search
imported>Droll
m (typo)
imported>Droll
(updated to reflect change in {{cite web}})
Line 21: Line 21:
 
| name =
 
| name =
 
| accessdate =  
 
| accessdate =  
| accessdaymonth =
 
| accessmonthday =
 
| accessyear =
 
 
}}</pre>
 
}}</pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
Line 30: Line 27:
 
Volcano Name on web page
 
Volcano Name on web page
 
YYYY-MM-DD
 
YYYY-MM-DD
DD Month
 
Month DD
 
YYYY
 
 
&nbsp; </pre>
 
&nbsp; </pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
Line 39: Line 33:
 
Required
 
Required
 
Recommended
 
Recommended
Alternative
 
Alternative
 
Alternative
 
 
&nbsp; </pre>
 
&nbsp; </pre>
 
|}
 
|}
Line 77: Line 68:
 
| name = Adams
 
| name = Adams
 
| accessdate = 2008-07-04 }}
 
| accessdate = 2008-07-04 }}
</blockquote>
 
 
 
'''Wiki markup'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
{{cite gvp
 
| vnum = 1201-04-
 
| name = Adams
 
| accessdaymonth = 4 July
 
| accessyear = 2008 }}
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
{{cite gvp
 
| vnum = 1201-04-
 
| name = Adams
 
| accessdaymonth = 4 July
 
| accessyear = 2008 }}
 
 
</blockquote>
 
</blockquote>
  

Revision as of 04:55, 12 February 2009

Purpose

Provides an easy way to cite Global Volcanism Program web pages using a Volcano Reference File Number.

The major advantage of this template over {{VNUM}} is that the appearance of the citation will automatically conform with {{cite web}} which sees more frequent maintenance.

Usage

Fields Instructions Notes
{{cite gvp
| vnum = 
| name =
| accessdate = 
}}
  
Volcano Number on web page
Volcano Name on web page
YYYY-MM-DD
  
 
Required
Required
Recommended
  

The fields vnum and name must be specified.

For more information on most fields see {{cite web}}.

Bug

There is and undocumented feature in the MediaWiki software that causes an error message when this template is used if the vnum contains an equals sign. For example Kerinci a volcano in Indonesia has a vnum of 0601-17=. When such a vnum occurs a citation like {{cite gvp|0601-17=|Kerinci}} will not work. However, {{cite gvp|vnum=0601-17=|name=Kerinci}} or even {{cite gvp|1=0601-17=|2=Kerinci}} will work without any problem. For example:

Wiki markup

{{cite gvp|0601-17=|Kerinci}}

produces:

"Global Volcanism Program". Smithsonian Institution.

Examples

Wiki markup

{{cite gvp
| vnum = 1201-04-
| name = Adams
| accessdate = 2008-07-04 }}

produces:

"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 2008-07-04.


Wiki markup

{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}

produces:

"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 2008-07-04.


Wiki markup

{{cite gvp|1=1201-04-|2=Adams}}

produces:

"Adams". Global Volcanism Program. Smithsonian Institution.

See also