php - MediaWiki: How do you put a period after the heading number? -


i've been unable find answer following online.

i've enabled auto-numbered headings in mediawiki adding following localsettings.php:

$wgdefaultuseroptions['numberheadings'] = 1; 

however, i'd there period after heading number, distinguish heading.

that is, i'd like:

2. heading

instead of:

2 heading

however, i'd prefer number not have period after in case of sub-headings.

that is, i'd like:

2.1 heading

not:

2.1. heading

does know how this?

thanks in advance help

the space hardcoded, see parser.php, have modify after created. best shot use theparsersectioncreate hook, or possible parserbeforetidy

if want frontend: loop through headings class mw-headline-number, , apply logic there.

also note these changes affect users have enabled numberheadings features in settings, or registered after changed default setting.

edit: might want check language user viewing wiki in first, trailing dot might not used languages , numeral systems. see this list variants (note how cjk systems use east asian comma, 壹、, , how ge'ez (ethiopic) example uses space, )


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -