Template talk:Hong Kong Stock Exchange
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
Purpose
editProvides a link based on a Hong Kong Stock Exchange stock symbol, and automatically categorizes the page under Category:Companies traded on the Hong Kong Stock Exchange.
See also:
- Template:Hkex2 (similar template, except no auto-categorization)
How to use this template
editType the following, replacing XXXX with the company's numerical stock code:
- {{Hkex|XXXX}}
Example
edit- [[PetroChina]] ({{sehk|0857}}, {{nyse|PTR}}) is a branch of China National Petroleum Corporation.
Discussion
editBrackets have been deleted to allow for texts such as (HKEx: 0857, NYSE: PTR). Shawnc 22:03, 5 December 2005 (UTC)
name
editWhy SEHK and not HKSE, which is the usual abbreviation used in Hong Kong? 203.218.37.8 05:01, 19 April 2006 (UTC)
Strip leading 0s
editThis template should be updated to strip leading 0s. HKSE tickers are often reported in the English media with leading zeros (to 4 digits), but the stock exchange URL doesn't support it. --Voidvector (talk) 00:02, 31 March 2018 (UTC)
- Done. @Voidvector: I have edited the code to implement Module:Leading zeros, a Lua module, to remove the leading zeros from the inputted value, and shows "Incorrect" to notify editors if they have inputted a non-numeric value. Cheers. –Wefk423 (talk) 19:30, 26 July 2018 (UTC)