Template talk:Hong Kong Stock Exchange

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconHong Kong Template‑class
WikiProject iconThis template is within the scope of WikiProject Hong Kong, a project to coordinate efforts in improving all Hong Kong-related articles. If you would like to help improve this and other Hong Kong-related articles, you are invited to join this project.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Hong Kong To-do:

Attention needed (60)

Collaboration needed

Improvement needed

Cleanup needed

Image needed (344)

Destub needed

Deorphan needed

Page creation needed

Miscellaneous tasks

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]