Difference between revisions of "Template:Cite gvp"

From blackwiki
Jump to navigation Jump to search
(option for template doc demo)
imported>Droll
(updated template from sandbox)
Line 1: Line 1:
<includeonly>{{#if: {{{vnum|{{{id|{{{1|}}}}}}}}} |
+
<includeonly>{{#ifeq:{{{1|{{{vnum|{{{id|}}}}}}}}}||{{citation error|no <tt>vnum</tt> specified|cite gvp|nocat={{{template doc demo|}}}}}
  {{#if: {{{name|{{{title|{{{2|}}}}}}}}} |
+
| {{#ifeq: {{{2|{{{name|{{{title|}}}}}}}}}||{{citation error|no <tt>name</tt> specified|cite gvp|nocat={{{template doc demo|}}}}}
    {{Cite web
+
  | {{citation/core
      | url = http://www.volcano.si.edu/world/volcano.cfm?vnum={{{vnum|{{{id|{{{1|}}}}}}}}}
+
    | Sep = .
      | title = {{{name|{{{title|{{{2|}}}}}}}}}
+
    | IncludedWorkURL = http://www.volcano.si.edu/world/volcano.cfm?vnum={{{1|{{{vnum|{{{id|}}}}}}}}}
      | accessdate = {{{accessdate|{{{3|}}}}}}
+
    | IncludedWorkTitle = {{{2|{{{name|{{{title|}}}}}}}}}
      | date = {{{entrydate|{{{4|}}}}}}
+
    | AccessDate = {{{3|{{{accessdate|}}}}}}
      | publisher = [[Global Volcanism Program]], [[Smithsonian Institution]]
+
    | Date = {{{4|{{{entrydate|}}}}}}
 +
    | Publisher = [[Global Volcanism Program]], [[Smithsonian Institution]]
 +
    | PS = .
 
     }}
 
     }}
  | '''{{Citation error|You must specify {{para|name}}|Cite gvp|nocat={{{template doc demo|}}}}}'''
 
 
   }}
 
   }}
| '''{{Citation error|You must specify {{para|vnum}}|Cite gvp|nocat={{{template doc demo|}}}}}'''
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{Documentation}}
+
{{documentation}}
 
<!--
 
<!--
 
   PLEASE ADD CATEGORIES AND INTERWIKIS
 
   PLEASE ADD CATEGORIES AND INTERWIKIS

Revision as of 07:51, 20 December 2010

Template documentation[view] [edit] [history] [purge]

This citation template can be used to cite Global Volcanism Program web pages using a "Volcano Number".

Usage

A search engine can be found here. If the name contains "Mount", "Peak" or something similar, enter the name without the designation. For example, for "Mount Hood" enter Hood. For Volcán de Fuego, enter Fuego.

Parameters Value
{{cite gvp
| vn = 
| name =
| accessdate = 
}}
 
Volcano Number on web page
Volcano Name on web page
Full date
 

Values for vn and name should be specified. Using the template with no parameters returns a link to the home page. Do not use unnamed parameters.

Examples

{{cite gvp | 262000}}Error: no name specified when using {{cite gvp}}Template:Namespace detect showall
{{cite gvp | 262000 | Krakatau }}262000 "Krakatau". Global Volcanism Program, Smithsonian Institution. http://www.volcano.si.edu/world/volcano.cfm?vnum= 262000. 
{{cite gvp|vn=321040 |name=Adams |accessdate=2008-07-04}}Error: no vnum specified when using {{cite gvp}}Template:Namespace detect showall
{{cite gvp|vn=342090 |name=Volcán de Fuego |accessdate=2014-12-30}}Error: no vnum specified when using {{cite gvp}}Template:Namespace detect showall

See also