Difference between revisions of "Template:Cite ngs"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(End citiation with a period via the "PS" parameter of Template:Citation/core - as already done in code of {{Cite web}}, {{Cite news}}, {{Cite book}}, etc.)
imported>JJMC89
(handled by {{documentation}})
 
(32 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{id|{{{1|}}}}}} |
+
<includeonly>{{#ifeq: {{{1|{{{id|{{{pid|}}}}}}}}}|
   {{#if: {{{designation|{{{2|}}}}}} |
+
| {{citation error|no <kbd>id</kbd> specified|cite ngs|nocat={{{template doc demo|{{{template-doc-demo|}}}}}}}}
    {{Citation/core
+
   | {{#ifeq: {{{2|{{{designation|{{{name|}}}}}}}}}|
    | Citation class = web
+
  | {{citation error|no <kbd>name</kbd> specified|cite ngs|nocat={{{template doc demo|{{{template-doc-demo|}}}}}}}}
    | Sep = .
+
     | {{cite web
     | PS = .
+
      | url = https://www.ngs.noaa.gov/cgi-bin/ds_mark.prl?PidBox={{urlencode:{{{1|{{{id|{{{pid|}}}}}}}}}}}
    | URL = http://www.ngs.noaa.gov/cgi-bin/ds_mark.prl?PidBox={{urlencode:{{{id|{{{1|}}}}}}}}
+
      | title = {{{2|{{{designation|{{{name|}}}}}}}}}
    | IncludedWorkTitle = {{{designation|{{{2|}}}}}}
+
      | work = NGS data sheet
    | AccessDate = {{{accessdate|{{{3|}}}}}}
+
      | publisher = [[U.S. National Geodetic Survey]]
    | Title = NGS data sheet
+
      | access-date = {{{3|{{{accessdate|}}}}}}
    | Publisher = [[U.S. National Geodetic Survey]]}}
+
      | ref = {{{ref|}}}
  | <strong class="error">You must specify <font style="color:black">designation</font> when using {{[[Template:Cite ngs|Cite ngs]]}}.</strong>}}
+
      }}
| <strong class="error">You must specify <font style="color:black">id</font> when using {{[[Template:Cite ngs|Cite ngs]]}}.</strong>}}</includeonly><noinclude>
+
  }}
{{Documentation}}
+
}}</includeonly><noinclude>
 +
{{documentation}}
 
<!--
 
<!--
 
   PLEASE ADD CATEGORIES AND INTERWIKIS
 
   PLEASE ADD CATEGORIES AND INTERWIKIS

Latest revision as of 06:57, 22 March 2019

Template documentation[view] [edit] [history] [purge]


This citation template can be used to cite a U.S. National Geodetic Survey (NGS) data sheet.

Usage

A search engine can be found here. It requires the approximate coordinates of the benchmark.

Parameter Value
{{cite ngs
| pid = 
| name = 
| accessdate = 
}}
 
PID from the data sheet
DESIGNATION from the data sheet
Current date
 

The values for pid and name must be specified. Unnamed parameters are allowed. The parameter designation is an alias for name and id is an alias for pid.

Examples

with named parameters

{{cite ngs |pid=GT1811 |name=Whitney}}"Whitney". NGS data sheet. U.S. National Geodetic Survey.

with unnamed parameters

{{cite ngs|GT1811|Whitney|2008-10-31}}"Whitney". NGS data sheet. U.S. National Geodetic Survey. Retrieved 2008-10-31.

See also