Page MenuHomePhabricator

|center| parameter in Image syntax does nothing
Closed, ResolvedPublic

Description

Author: qleah

Description:
Although images without captions may be centered by placing them in a <div>, it
is impossible to center framed images without using tables or <center>. <div
class="thumb tnone"> is equivalent to left justification, and cannot be overridden.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/Tetris#Gravity

Details

Reference
bz669

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:58 PM
bzimport set Reference to bz669.
bzimport added a subscriber: Unknown Object (MLST).

rowan.collins wrote:

Hmm...

Firstly, the example URL given *does* use <div>, although it uses a specific
HTML attribute rather than a CSS style rule: Template:Center expands to "<div
align="center">{{{1}}}</div>"

Secondly, [[Image:Foo|center|caption]] *should* do this for you, with or without

frame, but testing in the sandbox I couldn't make it work. Retitling bug.

jeluf wrote:

*** This bug has been marked as a duplicate of 187 ***

rowan.collins wrote:

I'm not convinced this is a duplicate. If it is, then bug 187 needs a better
summary, since I can reproduce zero effect of |center| on an otherwise blank
page. See, for example, http://en.wikipedia.org/wiki/User:IMSoP/sandbox where
the generated HTML is <div class="floatnone"><span style="text-align:
center">...; for me, this image sits at the left-hand side of the screen -
perhaps because the outer class= is overriding the inner style= ?

jeluf wrote:

*** This bug has been marked as a duplicate of 187 ***

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:20 AM