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

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
m (dab link)
imported>Droll
(removed clutter)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
__NOTOC__
+
__NOTOC____NOEDITSECTION__
{{esoteric}}
 
  
=== Purpose ===
+
This citation template can be used to cite [[Global Volcanism Program|'''G'''lobal '''V'''olcanism '''P'''rogram]] web pages using a [[Volcano Number]].
 
 
Provides an easy way to cite [[Global Volcanism Program|'''G'''lobal '''V'''olcanism '''P'''rogram]] web pages using a [[Volcano Number|Volcano Reference File Number]].
 
  
 
=== Usage ===
 
=== Usage ===
  
 
{| class="wikitable"
 
{| class="wikitable"
|- width="50%" valign="top" style="vertical-align:top;"
+
|- valign="top" style="vertical-align:top;"
! Fields !! Instructions !! Notes
+
! Parameters !! Instructions
|- width="50%" valign="top" style="vertical-align:top;"
+
|- valign="top" style="vertical-align:top;"
| style="vertical-align:top;padding:1ex;" |<pre>
+
| style="vertical-align:top;padding:1ex;" |<pre style="margin:0; padding:0; border-color:transparent">
 
{{cite gvp
 
{{cite gvp
 
| vnum =  
 
| vnum =  
Line 20: Line 17:
 
| accessdate =  
 
| accessdate =  
 
}}</pre>
 
}}</pre>
| style="vertical-align:top;padding:1ex;" |<pre>
+
| style="vertical-align:top; padding:1ex;" |<pre style="margin:0; padding:0; border-color:transparent">
&nbsp;  
+
&nbsp;
 
Volcano Number on web page
 
Volcano Number on web page
 
Volcano Name on web page
 
Volcano Name on web page
 
Full date
 
Full date
&nbsp; </pre>
+
&nbsp;</pre>
| style="vertical-align:top;padding:1ex;" |<pre>
 
&nbsp;
 
Required
 
Required
 
Recommended
 
&nbsp; </pre>
 
 
|}
 
|}
  
The fields '''<code>vnum</code>''' and '''<code>name</code>''' must be specified.
+
The fields '''<tt>vnum</tt>''' and '''<tt>name</tt>''' must be specified.
  
 
=== Bug ===
 
=== Bug ===
  
There is a documented feature in the [[MediaWiki]] software that causes an error message when this template is used if the vnum contains an equals sign. For example [[Mount Kerinci|Kerinci]], a volcano in [[Indonesia]], has a vnum of <tt><nowiki>0601-17&#61;</nowiki></tt>. When such a vnum occurs a citation like <tt><nowiki>{{cite gvp|0601-17=|Kerinci</nowiki>}}</tt> will not work. However, <tt><nowiki>{{cite gvp|vnum=0601-17=|name=Kerinci}}</nowiki></tt> or even <tt><nowiki>{{cite gvp|1=0601-17=|2=Kerinci}}</nowiki></tt> will work without any problem. For example:
+
A documented feature in the [[MediaWiki]] software causes an error message when this template is used with unnamed parameters if the vnum contains an equals sign. For example [[Mount Kerinci|Kerinci]], a volcano in [[Indonesia]], has a vnum of <tt><nowiki>0601-17&#61;</nowiki></tt>. When such a vnum occurs a citation like <tt><nowiki>{{cite gvp|0601-17=|Kerinci</nowiki>}}</tt> will result in an error message. However, <tt><nowiki>{{cite gvp|vnum=0601-17=|name=Kerinci}}</nowiki></tt> or even <tt><nowiki>{{cite gvp|1=0601-17=|2=Kerinci}}</nowiki></tt> will work. For example:
  
'''Wiki markup'''
+
<tt><nowiki>{{cite gvp|1=0601-17=|2=Kerinci}}</nowiki></tt> {{cite gvp|1=0601-17=|2=Kerinci}}
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
{{cite gvp|vnum=0601-17=|name=Kerinci}}
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
{{cite gvp|vnum=0601-17=|name=Kerinci}}
 
</blockquote>
 
  
 
=== Examples ===
 
=== Examples ===
  
'''Wiki markup'''
+
;with named parameters
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
+
<tt><nowiki>{{cite gvp|vnum=1201-04-|name=Adams|accessdate=2008-07-04}}</nowiki></tt> {{cite gvp|vnum=1201-04-|name=Adams|accessdate=2008-07-04 }}
{{cite gvp
 
| vnum = 1201-04-
 
| name = Adams
 
| accessdate = 2008-07-04 }}
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
{{cite gvp
 
| vnum = 1201-04-
 
| name = Adams
 
| accessdate = 2008-07-04 }}
 
 
</blockquote>
 
</blockquote>
  
 
+
;with named parameters
'''Wiki markup'''
+
<tt><nowiki>{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}</nowiki></tt> {{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
 
</blockquote>
 
  
 
=== See also ===
 
=== See also ===
Line 84: Line 50:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
{{DEFAULTSORT:{{PAGENAME}}}}
 
 
[[Category:External link templates]]
 
[[Category:External link templates]]
 
[[Category:Specific-source templates]]
 
[[Category:Specific-source templates]]

Revision as of 18:27, 20 December 2010


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

Usage

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

The fields vnum and name must be specified.

Bug

A documented feature in the MediaWiki software causes an error message when this template is used with unnamed parameters 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 result in an error message. However, {{cite gvp|vnum=0601-17=|name=Kerinci}} or even {{cite gvp|1=0601-17=|2=Kerinci}} will work. For example:

{{cite gvp|1=0601-17=|2=Kerinci}}"Kerinci". Global Volcanism Program. Smithsonian Institution.

Examples

with named parameters

{{cite gvp|vnum=1201-04-|name=Adams|accessdate=2008-07-04}}"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 2008-07-04.

with named parameters

{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}"Adams". Global Volcanism Program. Smithsonian Institution. Retrieved 2008-07-04.

See also