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

From blackwiki
Jump to navigation Jump to search
imported>CharlesGillingham
m (Subcategorizing)
imported>Debresser
m (m)
Line 15: Line 15:
 
|- width="50%" valign="top" style="vertical-align:top;"
 
|- width="50%" valign="top" style="vertical-align:top;"
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
{{cite gvp
+
{{Cite gvp
 
| vnum =  
 
| vnum =  
 
| name =
 
| name =
Line 24: Line 24:
 
Volcano Number on web page
 
Volcano Number on web page
 
Volcano Name on web page
 
Volcano Name on web page
YYYY-MM-DD
+
Full date
 
&nbsp; </pre>
 
&nbsp; </pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
Line 38: Line 38:
 
=== 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 [[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 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 [[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'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
{{cite gvp|0601-17=|Kerinci}}
+
{{Cite gvp|0601-17=|Kerinci}}
 
</nowiki></pre></blockquote>
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
{{cite gvp|0601-17=|Kerinci}}
+
{{Cite gvp|0601-17=|Kerinci}}
 
</blockquote>
 
</blockquote>
  
Line 53: Line 53:
 
'''Wiki markup'''
 
'''Wiki markup'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
{{cite gvp
+
{{Cite gvp
 
| vnum = 1201-04-
 
| vnum = 1201-04-
 
| name = Adams
 
| name = Adams
Line 60: Line 60:
 
'''produces:'''
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
{{cite gvp
+
{{Cite gvp
 
| vnum = 1201-04-
 
| vnum = 1201-04-
 
| name = Adams
 
| name = Adams
Line 69: Line 69:
 
'''Wiki markup'''
 
'''Wiki markup'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
<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}}
+
{{Cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
 
</nowiki></pre></blockquote>
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
{{cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
+
{{Cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}
 
</blockquote>
 
</blockquote>
  
Line 79: Line 79:
 
'''Wiki markup'''
 
'''Wiki markup'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki>
{{cite gvp|1=1201-04-|2=Adams}}
+
{{Cite gvp|1=1201-04-|2=Adams}}
 
</nowiki></pre></blockquote>
 
</nowiki></pre></blockquote>
 
'''produces:'''
 
'''produces:'''
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
 
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;">
{{cite gvp|1=1201-04-|2=Adams}}
+
{{Cite gvp|1=1201-04-|2=Adams}}
 
</blockquote>
 
</blockquote>
  
 
=== See also ===
 
=== See also ===
  
* {{tl|cite gnis}}
+
* {{tl|Cite gnis}}
* {{tl|cite ngs}}
+
* {{tl|Cite ngs}}
* {{tl|cite web}}
+
* {{tl|Cite web}}
  
 
<includeonly>
 
<includeonly>

Revision as of 16:02, 4 October 2009

Purpose

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

Usage

Fields Instructions Notes
{{Cite gvp
| 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.

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 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|0601-17=|Kerinci}}

produces:

"Global Volcanism Program". Smithsonian Institution.

Examples

Wiki markup

{{Cite gvp
| vnum = 1201-04-
| name = Adams
| accessdate = 2008-07-04 }}

produces:

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


Wiki markup

{{Cite gvp|1=1201-04-|2=Adams|3=2008-07-04}}

produces:

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


Wiki markup

{{Cite gvp|1=1201-04-|2=Adams}}

produces:

"Adams". Global Volcanism Program. Smithsonian Institution.

See also