Difference between revisions of "Template:Cite gvp/sandbox"
Jump to navigation
Jump to search
imported>Droll (test) |
imported>Droll (test) |
||
| Line 1: | Line 1: | ||
| − | + | {{#ifeq:{{{name|}}}| <!-- if no name assume link to main page wanted --> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| {{cite web | | {{cite web | ||
| − | | url = http://www.volcano.si.edu | + | | url = http://www.volcano.si.edu |
| − | | title = | + | | title = Global Volcanism Program |
| accessdate = {{{accessdate|{{{3|}}}}}} | | accessdate = {{{accessdate|{{{3|}}}}}} | ||
| date = {{{entrydate|{{{4|}}}}}} | | date = {{{entrydate|{{{4|}}}}}} | ||
| − | |||
| publisher = [[Smithsonian Institution]] | | publisher = [[Smithsonian Institution]] | ||
}} | }} | ||
| − | | {{#if: {{{ | + | | {{#if: {{{vnum|}}} <!-- for compatibility with old style volcano numbers --> |
| {{cite web | | {{cite web | ||
| − | | url = http://www.volcano.si.edu/volcano.cfm? | + | | url = http://www.volcano.si.edu/world/volcano.cfm?vnum={{urlencode:{{{1|{{{vnum|{{{id|}}}}}}}}}}} |
| − | | title = {{{name|}}} | + | | title = {{{name|{{{title|{{{2|}}}}}}}}} |
| − | | accessdate = {{{accessdate|}}} | + | | accessdate = {{{accessdate|{{{3|}}}}}} |
| − | | date = {{{entrydate|}}} | + | | date = {{{entrydate|{{{4|}}}}}} |
| website = [[Global Volcanism Program]] | | website = [[Global Volcanism Program]] | ||
| publisher = [[Smithsonian Institution]] | | publisher = [[Smithsonian Institution]] | ||
}} | }} | ||
| − | | {{citation error|no volcano number specified|cite gvp|nocat={{{template doc demo|}}}}} <!-- name but no volcano number is an error --> | + | | {{#if: {{{vn|}}} |
| + | | {{cite web | ||
| + | | url = http://www.volcano.si.edu/volcano.cfm?vn={{urlencode:{{{vn|}}}} | ||
| + | | title = {{{name|}}} | ||
| + | | 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 --> | ||
| + | }} | ||
}} | }} | ||
| − | + | }} | |
| − | }} | + | }}<noinclude> |
<!--{{documentation}}--> | <!--{{documentation}}--> | ||
</noinclude> | </noinclude> | ||