Page MenuHomePhabricator

Signature button should be avaible at least in the wikipedia namespace
Closed, ResolvedPublic

Description

I think signature should be visible on all pages but the main namespace. Currently it's only available on talk pages but there are many places (e.g. Wikipedia:Village pump) in the Wikipedia namespace where you have to leave your signature.

A quick fix if anyone would want it (we have this on pl.wiki):
if (
typeof(editToolbarConfiguration)=="object"
&& typeof(editToolbarConfiguration.main.groups.insert.tools.signature.filters) == 'object'
&& editToolbarConfiguration.main.groups.insert.tools.signature.filters[0] == 'body.ns-talk'
)
{
editToolbarConfiguration.main.groups.insert.tools['signature_non_talk'] =
{

		labelMsg: 'edittoolbar-tool-signature-nt',
		filters: [ 'body.ns-4' ],
		type: 'button',
		icon: 'insert-signature.png',
		action: {
			type: 'encapsulate',
			options: {
				post: "--~~~~"
			}
		}

}
}


Version: unspecified
Severity: enhancement

Details

Reference
bz19750

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:38 PM
bzimport set Reference to bz19750.

Better is, to show the signature on all pages with a newsectionlink. On these page a signature is necessary.

In r52859, the filter was changed to

filters: [ 'body:not(.ns-0)' ]

Which lets the button be visible on any page that is not in the main namespace.