本模板为若干地理条目(大多数在北美洲)生成所需的参考文献。

注意:如果在同一页面使用本模板生成同一ref name的文献超过一次,而又使用不同的dateform值,会产生“引用错误:带有name属性“GR...”的<ref>标签用不同内容定义了多次”的错误提示。

用法

编辑

There are nine different references that can be created by {{GR}} for references in North America, and one that is used by locations in India. The nine possible North American citations are as follows:

{{GR|r1}}

{{GR|r2}}

{{GR|r3}}

{{GR|r4}}

{{GR|r5}}

{{GR|r6}}

{{GR|r7}}

{{GR|r8}}

{{GR|r9}}

To use one of these citations, pass the number of the reference to the template as a parameter: {{GR|1}} produces the first citation, {{GR|4}} produces the fourth one, and so forth. To use the Indian reference, pass the name "India" to the template: {{GR|india}}, producing:

  1. Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional). Census Commission of India. [2008-11-01]. (原始内容存档于2004-06-16). 

{{GR}} can be used either inside or outside <ref> tags. The default options, as shown above, are for use when the template is not enclosed in ref tags. The code for these options自动包括ref tags。如果不需要或不想使用ref tags,可以在reference number前面加一个"r"去省略它。So while {{GR|1}} produces [1], a properly-formatted citation, {{GR|r1}} outputs "US Gazetteer files: 2010, 2000, and 1990. United States Census Bureau. 2011-02-12 [2011-04-23]. ", the complete citation inline. 此选项不能于生成相关印度参考文献时使用:{{GR|India}}没有包括<ref> tags在内,如果输入{{GR|rIndia}}会产生错误。

日期格式

编辑

The optional dateform parameter is used to set the format for dates. Setting this parameter to "dateform=dmy" gives the date in the day month year format (e.g. 16 June 2004); "mdy" gives the date in the month day, year format (e.g. June 16, 2004); and "dateform=ymd" or "dateform=iso" give the date in the iso format (e.g. 2004-06-16). When this parameter is excluded, the date will default to ymd/iso format.

例子

编辑
输入:

文句一{{GR|1}}

文句二{{GR|r2}}

文句三{{GR|india}}

文句四{{GR|7|dateform=mdy}}

显示为:

文句一[1]

文句二American FactFinder. United States Census Bureau. [2008-01-31]. 

文句三Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional). Census Commission of India. [2008-11-01]. (原始内容存档于2004-06-16). 

文句四[2]

参数

编辑
{{GR}} parameters
Parameter Mandatory or Optional Default Description
{1} Mandatory Undefined  
dateformat Optional ymd Formats the date in dmy, mdy, or ymd/iso format.
Parameter {1} values
Value Produces Code
India

india
Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional). Census Commission of India. [2008-11-01]. (原始内容存档于2004-06-16).  {{cite web|url=http://www.censusindia.net/results/town.php?stad=A&state5=999%7Carchiveurl=http://web.archive.org/web/20040616075334/http://www.censusindia.net/results/town.php?stad=A&state5=999%7Carchivedate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=16 June 2004|mdy=June 16, 2004|ymd|iso|2004-06-16}}|title= Census of India 2001: Data from the 2001 Census, including cities, villages and towns (Provisional)|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=1 November 2008|mdy=November 1, 2008|ymd|iso|2008-11-01}}|work= |publisher= Census Commission of India}}
1 [1] {{#tag:ref|{{cite web|url=http://www.census.gov/geo/www/gazetteer/gazette.html|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=23 April 2011|mdy=April 23, 2011|ymd|iso|2011-04-23}}|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=12 February 2011|mdy=February 12, 2011|ymd|iso|2011-02-12}}|title=US Gazetteer files: 2010, 2000, and 1990}}|name="GR1"}}
2 [3] {{#tag:ref|{{cite web|url=http://factfinder.census.gov|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=American FactFinder}}|name="GR2"}}
3 [4] {{#tag:ref|{{cite web|url=http://geonames.usgs.gov|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=US Board on Geographic Names|publisher=[[United States Geological Survey]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=25 October 2007|mdy=October 25, 2007|ymd|iso|2007-10-25}}}}|name="GR3"}}
4 [5] {{#tag:ref|{{cite web|url=http://geonames.usgs.gov/pls/gnispublic|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=Geographic Names Information System|publisher=[[United States Geological Survey]]}}|name="GR4"}}
5 [6] {{#tag:ref|{{cite web|url=http://www.nima.mil/gns/html/index.html|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=NGA GEOnet Names Server|publisher=[[National Geospatial-Intelligence Agency]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-30}}}}|name="GR5"}}
6 [7] {{#tag:ref|{{cite web|url=http://www.naco.org/Counties/Pages/FindACounty.aspx|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=7 June 2011|mdy=June 7, 2011|ymd|iso|2011-06-07}}|title=Find a County|publisher=National Association of Counties}}|name="GR6"}}
7 [2] {{#tag:ref|{{cite web |url=http://tools.usps.com/go/ZipLookupAction!input.action |title=USPS - Look Up a ZIP Code |accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=15 February 2012|mdy=February 15, 2012|ymd|iso|2012-02-15}} |author=United States Postal Service}}|name="GR7"}}
8 [8] {{#tag:ref|{{cite web|url=http://factfinder2.census.gov|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=14 May 2011|mdy=May 14, 2011|ymd|iso|2011-05-14}}|title=American FactFinder}}|name="GR8"}}
9 [9] {{#tag:ref|{{cite web|url=http://www.census.gov/prod/www/abs/decennial/|publisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=4 March 2012|mdy=March 4, 2012|ymd|iso|2012-03-04}}|title=Census of Population and Housing: Decennial Censuses}}|name="GR9"}}
r1 US Gazetteer files: 2010, 2000, and 1990. United States Census Bureau. 2011-02-12 [2011-04-23].  {{cite web|url=http://www.census.gov/geo/www/gazetteer/gazette.html%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=23 April 2011|mdy=April 23, 2011|ymd|iso|2011-04-23}}|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=12 February 2011|mdy=February 12, 2011|ymd|iso|2011-02-12}}|title=US Gazetteer files: 2010, 2000, and 1990}}
r2 American FactFinder. United States Census Bureau. [2008-01-31].  {{cite web|url=http://factfinder.census.gov%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=American FactFinder}}
r3 US Board on Geographic Names. United States Geological Survey. 2007-10-25 [2008-01-31].  {{cite web|url=http://geonames.usgs.gov%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=US Board on Geographic Names|publisher=[[United States Geological Survey]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=25 October 2007|mdy=October 25, 2007|ymd|iso|2007-10-25}}}}
r4 Geographic Names Information System. United States Geological Survey. [2008-01-31].  {{cite web|url=http://geonames.usgs.gov/pls/gnispublic%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=Geographic Names Information System|publisher=[[United States Geological Survey]]}}
r5 NGA GEOnet Names Server. National Geospatial-Intelligence Agency. 2008-01-30 [2008-01-31].  {{cite web|url=http://www.nima.mil/gns/html/index.html%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-31}}|title=NGA GEOnet Names Server|publisher=[[National Geospatial-Intelligence Agency]]|date={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=31 January 2008|mdy=January 31, 2008|ymd|iso|2008-01-30}}}}
r6 Find a County. National Association of Counties. [2011-06-07].  {{cite web|url=http://www.naco.org/Counties/Pages/FindACounty.aspx%7Caccessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=7 June 2011|mdy=June 7, 2011|ymd|iso|2011-06-07}}|title=Find a County|publisher=National Association of Counties}}
r7 United States Postal Service. USPS - Look Up a ZIP Code. [2012-02-15].  {{cite web|url=http://tools.usps.com/go/ZipLookupAction!input.action%7Ctitle=USPS - Look Up a ZIP Code |accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=15 February 2012|mdy=February 15, 2012|ymd|iso|2012-02-15}} |author=United States Postal Service}}
r8 American FactFinder. United States Census Bureau. [2011-05-14].  {{cite web|url=http://factfinder2.census.gov%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=14 May 2011|mdy=May 14, 2011|ymd|iso|2011-05-14}}|title=American FactFinder}}
r9 Census of Population and Housing: Decennial Censuses. United States Census Bureau. [2012-03-04].  {{cite web|url=http://www.census.gov/prod/www/abs/decennial/%7Cpublisher=[[United States Census Bureau]]|accessdate={{#switch:{{lc:{{{dateform|{{{2|}}}}}}}}|dmy=4 March 2012|mdy=March 4, 2012|ymd|iso|2012-03-04}}|title=Census of Population and Housing: Decennial Censuses}}

生成的参考文献

编辑
  1. ^ 1.0 1.1 1.2 US Gazetteer files: 2010, 2000, and 1990. United States Census Bureau. 2011-02-12 [2011-04-23]. 
  2. ^ 2.0 2.1 United States Postal Service. USPS - Look Up a ZIP Code. [February 15, 2012].  引用错误:带有name属性“GR7”的<ref>标签用不同内容定义了多次
  3. ^ American FactFinder. United States Census Bureau. [2008-01-31]. 
  4. ^ US Board on Geographic Names. United States Geological Survey. 2007-10-25 [2008-01-31]. 
  5. ^ Geographic Names Information System. United States Geological Survey. [2008-01-31]. 
  6. ^ NGA GEOnet Names Server. National Geospatial-Intelligence Agency. 2008-01-30 [2008-01-31]. 
  7. ^ Find a County. National Association of Counties. [2011-06-07]. 
  8. ^ American FactFinder. United States Census Bureau. [2011-05-14]. 
  9. ^ Census of Population and Housing: Decennial Censuses. United States Census Bureau. [2012-03-04].