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

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
m (remove {{DEFAULTSORT:{{PAGENAME}}}})
imported>GoingBatty
m (→‎Bug: typo(s) fixed: For example → For example, using AWB (11376))
Line 40: Line 40:
 
=== Bug ===
 
=== Bug ===
  
There is and 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 <code>0601-17=</code>. When such a vnum occurs a citation like <code>&#123;{cite gvp|0601-17=|Kerinci}}</code> will not work. However, <code>&#123;{cite gvp|vnum=0601-17=|name=Kerinci}}</code> or even <code>&#123;{cite gvp|1=0601-17=|2=Kerinci}}</code> will work without any problem. For example:
+
There is and 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 <code>0601-17=</code>. When such a vnum occurs a citation like <code>&#123;{cite gvp|0601-17=|Kerinci}}</code> will not work. However, <code>&#123;{cite gvp|vnum=0601-17=|name=Kerinci}}</code> or even <code>&#123;{cite gvp|1=0601-17=|2=Kerinci}}</code> will work without any problem. For example:
  
 
'''Wiki markup'''
 
'''Wiki markup'''

Revision as of 19:41, 5 September 2015

Purpose

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

Usage

Fields Instructions Notes
{{cite gvp/sandbox
| vnum = 
| name =
| accessdate = 
}}
  
Volcano Number on web page
Volcano Name on web page
Full date
  
 
Required
Required
Recommended
  

The fields vnum and name must be specified.

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

Bug

There is and 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/sandbox|0601-17=|Kerinci}}

produces:

"Global Volcanism Program". Smithsonian Institution.

Examples

Wiki markup

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

produces:

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

Wiki markup

{{cite gvp/sandbox
| vnum = 1201-04-
| name = Adams
| accessdate = 4 July 2008 }}

produces:

"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 4 July 2008.

Wiki markup

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

produces:

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

Wiki markup

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

produces:

"Adams". Global Volcanism Program. Smithsonian Institution.

See also