Difference between revisions of "Template:Cite gvp"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(temp)
imported>Pigsonthewing
(Simplify (no old style uses found))
Line 1: Line 1:
<includeonly>{{#ifeq:{{{name|{{{title|{{{2|}}}}}}}}}| <!-- if no name assume link to main page wanted -->
+
<includeonly>{{#ifeq:{{{name|{{{title|{{{2|}}}}}}}}}
| {{cite web
+
|  <!-- name is present -->     
 +
  {{cite web
 +
  | url = http://www.volcano.si.edu/volcano.cfm?vn={{{vn|}}}
 +
  | title = {{{name|{{{title|}}}}}}
 +
  | accessdate = {{{accessdate|}}}
 +
  | date = {{{entrydate|}}}
 +
  | website = [[Global Volcanism Program]]
 +
  | publisher = [[Smithsonian Institution]]
 +
  }}
 +
| <!-- no name, assume link to main page wanted -->[[Category:Temp - Cite gvp template with no name parameter]]
 +
  {{cite web
 
   | url = http://www.volcano.si.edu
 
   | url = http://www.volcano.si.edu
 
   | title = Global Volcanism Program
 
   | title = Global Volcanism Program
Line 6: Line 16:
 
   | date = {{{entrydate|{{{4|}}}}}}
 
   | date = {{{entrydate|{{{4|}}}}}}
 
   | publisher = [[Smithsonian Institution]]
 
   | publisher = [[Smithsonian Institution]]
  }}
 
| {{#if: {{{1|{{{vnum|{{{id|}}}}}}}}} <!-- for compatibility with old style volcano numbers -->[[Category:Cite gvp template - temp old style]]
 
  | {{cite web
 
    | url = http://www.volcano.si.edu/world/volcano.cfm?vnum={{urlencode:{{{1|{{{vnum|{{{id|}}}}}}}}}}}
 
    | title = {{{name|{{{title|{{{2|}}}}}}}}}
 
    | accessdate = {{{accessdate|{{{3|}}}}}}
 
    | date = {{{entrydate|{{{4|}}}}}}
 
    | website = [[Global Volcanism Program]]
 
    | publisher = [[Smithsonian Institution]]
 
    }}
 
  | {{#if: {{{vn|}}}
 
    | {{cite web
 
      | url = http://www.volcano.si.edu/volcano.cfm?vn={{{vn|}}}
 
      | title = {{{name|{{{title|}}}}}}
 
      | accessdate = {{{accessdate|}}}
 
      | date = {{{entrydate|}}}
 
      | website = [[Global Volcanism Program]]
 
      | publisher = [[Smithsonian Institution]]
 
      }}
 
    | {{citation error|no volcano number specified|cite gvp|nocat={{{template doc demo|}}}}} <!-- name but no volcano number is an error -->
 
    }}
 
 
   }}
 
   }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 08:34, 18 August 2016

50px 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}}
{{cite gvp | 262000 | Krakatau }}
{{cite gvp|vn=321040 |name=Adams |accessdate=2008-07-04}}
{{cite gvp|vn=342090 |name=Volcán de Fuego |accessdate=2014-12-30}}

See also