Difference between revisions of "Template:Cite gvp/doc"
imported>Debresser (→Bug: It don't suppose you wanted to show the error message.) |
imported>Droll (tweak) |
||
| 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 |
| vnum = | | vnum = | ||
| name = | | name = | ||
| 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>{{ | + | 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>{{cite gvp|0601-17=|Kerinci}}</code> will not work. However, <code>{{cite gvp|vnum=0601-17=|name=Kerinci}}</code> or even <code>{{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|vnum=0601-17=|name=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|vnum=0601-17=|name=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 |
| 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 |
| 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}} |
</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}} |
</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}} |
</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}} |
</blockquote> | </blockquote> | ||
=== See also === | === See also === | ||
| − | * {{tl| | + | * {{tl|cite gnis}} |
| − | * {{tl| | + | * {{tl|cite ngs}} |
| − | * {{tl| | + | * {{tl|cite web}} |
<includeonly> | <includeonly> | ||
| Line 99: | Line 99: | ||
[[de:Vorlage:GVP]] | [[de:Vorlage:GVP]] | ||
| − | [[id:Templat: | + | [[id:Templat:cite gvp]] |
</includeonly> | </includeonly> | ||
Revision as of 09:38, 26 December 2009
| This is a documentation subpage for Template:Cite gvp. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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|vnum=0601-17=|name=Kerinci}}
produces:
"Kerinci". 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:
See also