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
Post a Comment