Template:Infobox road/name/CHN/doc
| This is a documentation subpage for Template:Infobox road/name/CHN. It contains usage information, categories and other content that is not part of the original template page. |
This documentation is for Template:Infobox road/name/CHN and Template:Infobox road/translation/CHN, two templates designed for the use of Template:Infobox road with Chinese road articles.
These two templates store the name of the expressway (in English and in Simplified Chinese, the translation, respectively) based on their number. Each Chinese road has a letter-number combination (e.g. G2) to represent it, as well as a name, usually referring to a distinctive feature of the roadway or indicating the termini points (e.g. Beijing–Shanghai Expressway, between the cities of Beijing and Shanghai). As per naming conventions for Chinese roadways, the name is to be left in its full form, with the termini indicated, not an abbreviated name, such as Jinghu Expressway. The abbreviated name is indicated in the alternate name parameter on the infobox on the article page.
Provincial-level expressways
For provincial-level expressways, which are prefixed with the letter S, simply add the province or autonomous region name in the correct location, after
|S={{#switch:{{{province}}}and before the closing
}}
. For example, the expressways in the province of Shanghai would be
|Shanghai={{#switch:{{{route|}}}
|1=Yingbin|2=Shanghai–Luchaogang|3=Shanghai–Fengxian|4=Shanghai–Jinshan|5=Shanghai–Jiading|19=Xinnong–Jinshanwei|20=Shanghai Outer Ring|26=Shanghai–Changzhou|32=Shanghai–Jiaxing–Huzhou|36=Tinglin–Fengjing
Province names are to be written out in their full name, stripped of any words such as "province" or "autonomous region" (e.g. Xinjiang, not Xinjiang Uyghur Autonomous Region; Shanghai, not Hu).
National-level expressways
National-level expressways are categorized as type Ex or Expwy. It is important to note that these templates make a distinction between national-level roadways (in Chinese, 国道), type G, and expressways (in Chinese, 高速公路), type Ex or Expwy.
City ring expressways
For national-level city ring expressways with identical numbers, for example the G1501 Haikou Ring Expressway and the G1501 Shanghai Ring Expressway, a unique two to four letter identifier is tagged on to the end of the number in order to distinguish between them so the correct names shields can be rendered by the template. The letters tagged on to the end of the number are based on the first letter of the Hanyu Pinyin spelling of the city which the expressway serves, without tones. For example:
- 1501SH for Shanghai
- 0601HHHT for Hohhot (because Hohhot's Hanyu Pinyin spelling is Huhehaote)
City ring expressways that do not share a number with another city ring expressway do not need to be disambiguated by an identifier in this fashion. For example:
- 4202 for Chengdu Second Ring (it is the only 4202)