Template talk:Hong Kong Stock Exchange

(Redirected from Template talk:SEHK2)
Latest comment: 6 years ago by Wefk423 in topic Strip leading 0s

Purpose

edit

Provides 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:

How to use this template

edit

Type 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

edit

Brackets have been deleted to allow for texts such as (HKEx: 0857, NYSE: PTR). Shawnc 22:03, 5 December 2005 (UTC)Reply

name

edit

Why SEHK and not HKSE, which is the usual abbreviation used in Hong Kong? 203.218.37.8 05:01, 19 April 2006 (UTC)Reply

Strip leading 0s

edit

This 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)Reply

  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)Reply