Difference between revisions of "Template:Cite bcgnis/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Mwtoews
(trim)
imported>Droll
(test)
Line 5: Line 5:
 
   | IncludedWorkURL = http://apps.gov.bc.ca/pub/bcgnws/names/{{trim|{{{1|{{{id}}}}}}}}.html
 
   | IncludedWorkURL = http://apps.gov.bc.ca/pub/bcgnws/names/{{trim|{{{1|{{{id}}}}}}}}.html
 
   | IncludedWorkTitle = {{ifempty|{{{2|{{{name|{{{title|}}}}}}}}}|{{PAGENAME}} }}
 
   | IncludedWorkTitle = {{ifempty|{{{2|{{{name|{{{title|}}}}}}}}}|{{PAGENAME}} }}
   | Publisher = [[BC Geographical Names Information System]]
+
   | Publisher = [[BC Geographical Names]]
   | AccessDate = {{{accessdate|{{{3|}}}}}}
+
   | AccessDate = {{{3|{{{accessdate|}}}}}}
 +
  | Ref = {{{ref|}}}
 
   | PS = .
 
   | PS = .
 
   }}
 
   }}
}}<!--
+
}}{{main other | {{#ifeq:{{{name|{{{title|{{{2|}}}}}}}}}|
-->{{if both|{{is article}}|{{is empty|{{{name|{{{title|{{{2|}}}}}}}}} }}
+
  | [[Category:Articles using Template:Cite bcgnis without a feature name|{{FULLPAGENAME}}]]}}}}</includeonly><noinclude>
  | [[Category:Articles using Template:Cite bcgnis without a feature name]]}}<!--
+
{{documentation}}
--></includeonly><noinclude>
 
{{template sandbox notice}}
 
<!--
 
  PLEASE ADD CATEGORIES AND INTERWIKIS
 
  TO THE /doc SUBPAGE, THANKS
 
-->
 
 
</noinclude>
 
</noinclude>

Revision as of 23:50, 8 February 2013

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


This citation template can be used to cite references to the BC Geographical Names web service for British Columbia, Canada.

Usage

A search engine for BC Geographical Names is available here. The feature number can be found near the end of the URL.

For example, a search for Fairweather Mountain yields the URL: https://apps.gov.bc.ca/pub/bcgnws/names/38638.html. Use the highlighted number as the id for this template.

Parameter Notes
{{cite bcgnis
| id=
| name=
| access-date=
}}
 
Number form URL
Official name
Full date
 

If no name is specified, the article name is used. Specifying the name is recommended since the article name might be need to be disambiguated in the future. Unnamed parameters are allowed. The use of access-date is optional.

Examples

Used with named parameters:

{{cite bcgnis |id=38638 |name=Fairweather Mountain}}"Script error: No such module "If empty".". BC Geographical Names.

Used with unnamed parameters:

{{cite bcgnis |38638 |Fairweather Mountain |2017-06-25}}"Script error: No such module "If empty".". BC Geographical Names. Retrieved 2017-06-25.

See also