Difference between revisions of "Template:Cite gvp"

From blackwiki
Jump to navigation Jump to search
imported>HJ Mitchell
m (Protected Template:Cite gvp: batch protection of templates on database report per WP:HRT using TW ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
imported>Jo-Jo Eumerus
(Let's try if this makes harv work)
 
(26 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{vnum|{{{id|{{{1|}}}}}}}}} |
+
<includeonly>{{#ifeq:{{{name|{{{title|{{{2|}}}}}}}}}| <!-- if no name assume link to main page wanted -->
   {{#if: {{{name|{{{title|{{{2|}}}}}}}}} |
+
| {{cite web
    {{Cite web
+
  | url = http://www.volcano.si.edu
      | url = http://www.volcano.si.edu/world/volcano.cfm?vnum={{{vnum|{{{id|{{{1|}}}}}}}}}
+
  | title = Global Volcanism Program
      | title = {{{name|{{{title|{{{2|}}}}}}}}}
+
  | access-date = {{{accessdate|{{{3|}}}}}}
      | accessdate = {{{accessdate|{{{3|}}}}}}
+
  | date = {{{entrydate|{{{4|}}}}}}
      | date = {{{entrydate|{{{4|}}}}}}
+
  | publisher = [[Smithsonian Institution]]
       | publisher = [[Global Volcanism Program]], [[Smithsonian Institution]]
+
  | ref ={{{ref|}}}
 +
   }}
 +
| {{#if: {{{1|{{{vnum|{{{id|}}}}}}}}} <!-- for compatibility with old style volcano numbers -->
 +
  | {{cite web
 +
    | url = https://volcano.si.edu/volcano.cfm?vnum={{urlencode:{{{1|{{{vnum|{{{id|}}}}}}}}}}}
 +
    | title = {{{name|{{{title|{{{2|}}}}}}}}}
 +
    | access-date = {{{accessdate|{{{3|}}}}}}
 +
    | date = {{{entrydate|{{{4|}}}}}}
 +
    | website = [[Global Volcanism Program]]
 +
    | publisher = [[Smithsonian Institution]]
 +
    |ref ={{{ref|}}}
 +
    }}[[Category:Articles using GVP links in vnum format]]
 +
  | {{#if: {{{vn|}}}
 +
    | {{cite web
 +
      | url = https://volcano.si.edu/volcano.cfm?vn={{{vn|}}}
 +
      | title = {{{name|{{{title|}}}}}}
 +
       | access-date = {{{accessdate|}}}
 +
      | date = {{{entrydate|}}}
 +
      | website = [[Global Volcanism Program]]
 +
      | publisher = [[Smithsonian Institution]]
 +
      | ref ={{{ref|}}}
 +
      }}
 +
    | {{citation error|no volcano number specified|cite gvp|nocat={{{template doc demo|{{{template-doc-demo|}}}}}}}} <!-- name but no volcano number is an error -->
 
     }}
 
     }}
  | '''{{Citation error|You must specify {{para|name}}|Cite gvp}}'''
 
 
   }}
 
   }}
| '''{{Citation error|You must specify {{para|vnum}}|Cite gvp}}'''
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{Documentation}}
+
{{documentation}}
<!--
 
  PLEASE ADD CATEGORIES AND INTERWIKIS
 
  TO THE /doc SUBPAGE, THANKS
 
-->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:44, 23 September 2020

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}}"Global Volcanism Program". Smithsonian Institution.
{{cite gvp | 262000 | Krakatau }}"Krakatau". Global Volcanism Program. Smithsonian Institution.
{{cite gvp|vn=321040 |name=Adams |accessdate=2008-07-04}}"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 2008-07-04.
{{cite gvp|vn=342090 |name=Volcán de Fuego |accessdate=2014-12-30}}"Volcán de Fuego". Global Volcanism Program. Smithsonian Institution. Retrieved 2014-12-30.

See also