Difference between revisions of "Template:Cite peakbagger/sandbox"
Jump to navigation
Jump to search
imported>Droll (test) |
imported>Droll (tweaked) |
||
| Line 2: | Line 2: | ||
{{#if: {{{title|{{{name|{{{2|}}}}}}}}} | | {{#if: {{{title|{{{name|{{{2|}}}}}}}}} | | ||
{{cite web | {{cite web | ||
| − | | url = {{#if:{{{id|{{{pid|{{{1|}}}}}}}}} | http://www.peakbagger.com/peak.aspx?pid={{ | + | | url = {{#if:{{{id|{{{pid|{{{1|}}}}}}}}} | http://www.peakbagger.com/peak.aspx?pid={{urlencode:{{{id|{{{pid|{{{1|}}}}}}}}}}} |
| {{#if:{{{rid|}}} | http://www.peakbagger.com/range.aspx?rid={{{rid|}}} | | {{#if:{{{rid|}}} | http://www.peakbagger.com/range.aspx?rid={{{rid|}}} | ||
| {{#if:{{{lid|}}} | {{#switch:{{lc:{{{units|}}}}} | | {{#if:{{{lid|}}} | {{#switch:{{lc:{{{units|}}}}} | ||
Revision as of 18:11, 11 February 2013
| This is the template sandbox page for Template:Cite peakbagger (diff). See also the companion subpage for test cases. |
This citation template can be used to cite web pages at PeakBagger.com.
Usage
A search engine for PeakBagger is available here. Use the text following the ? in the URL. The Key Col webpage can be reached by clicking the Key Col Page link in the prominence section.
| Parameter | Value |
|---|---|
{{cite peakbagger
| kid =
| lid =
| pid =
| rid =
| title =
| units =
| access-date =
}}
|
key col id from URL list id from URL peak id from URL range id from URL page name (in maroon) see below full date |
The parameters name and kid, lid, pid or rid must be specified. To link to a list showing metric units use |units=meters.
Examples
Peak example
Used with named parameters:
- {{cite peakbagger |pid=2829 |name=Mount Whitney, California |access-date=2008-10-31}} → "Mount Whitney, California". Peakbagger.com. Retrieved 2008-10-31.
Used with unnamed parameters (for peaks only):
- {{cite peakbagger |2829 |Mount Whitney, California |2008-10-31}} → "Mount Whitney, California". Peakbagger.com. Retrieved 2008-10-31.
List example
- {{cite peakbagger |lid=12003 |name=U.S. State High Points |access-date=2008-10-31}} → "U.S. State High Points". Peakbagger.com. Retrieved 2008-10-31.
Range example
- {{cite peakbagger |rid=126 |name=Sierra Nevada |access-date=2008-10-31}} → "Sierra Nevada". Peakbagger.com. Retrieved 2008-10-31.
Key Col example
- {{cite peakbagger |kid=2829 |name=Mount Whitney, California |access-date=2008-10-31}} → "Mount Whitney, California". Peakbagger.com. Retrieved 2008-10-31.
See also
| The above documentation is transcluded from Template:Cite peakbagger/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |