Page MenuHomePhabricator

Option to allow int parser functions when $wgCleanSignatures is true
Open, Needs TriagePublicFeature

Description

Feature summary: An option to allow users to include internationalized text like {{int:talkpagelinktext}} and {{int:contribslink}} in their signature on projects which otherwise substitute templates and parser functions in signatures.

Use case(s): On Wikimedia Commons, the default signature is [[User:Username|Username]] ([[User talk:Username|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) , which allows users to read signatures in their display language. However, since $wgCleanSignatures is true, if users customize their signature, they can't use internationalized text. For example, I customized my signature to be —[[User:CalendulaAsteraceae|CalendulaAsteraceae]] ([[User talk:CalendulaAsteraceae|<span class="signature-talk">{{int:talkpagelinktext}}</span>]] • [[Special:Contributions/CalendulaAsteraceae|{{int:contribslink}}]]), but the automatic substitution meant that instead it is —[[User:CalendulaAsteraceae|CalendulaAsteraceae]] ([[User talk:CalendulaAsteraceae|<span class="signature-talk">{{subst:int:talkpagelinktext}}</span>]] • [[Special:Contributions/CalendulaAsteraceae|{{subst:int:contribslink}}]]), which is saved as —[[User:CalendulaAsteraceae|CalendulaAsteraceae]] ([[User talk:CalendulaAsteraceae|<span class="signature-talk">talk</span>]] • [[Special:Contributions/CalendulaAsteraceae|contribs]]). I would like to be able to use internationalized text and customize my signature, even on projects which wish to disable the use of other templates in signatures.

Benefits: There are good reasons to want to disallow most templates in signatures, including performance and stability of records. However, internationalized signatures are highly valuable on a multilingual site like Commons, and they would be used more widely if an internationalized signature were not mutually exclusive with a customized one (an issue that was brought up in this 2021 discussion). Since Commons disallows templates in signatures but uses the parser function {{int:talkpagelinktext}} in the default signature, a feature that makes internationalization available in all signatures without otherwise changing functionality would be appreviated.

Event Timeline

Tacsipacsi subscribed.

$wgCleanSignatures is a core configuration variable, predating DiscussionTools by over a decade.