Last modified: 2014-02-12 23:35:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45257, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43257 - Request for general and/or specific justifications of 'left' and 'right' in gallery images' caption text
Request for general and/or specific justifications of 'left' and 'right' in g...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-19 02:31 UTC by Leonard G.
Modified: 2014-02-12 23:35 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Leonard G. 2012-12-19 02:31:39 UTC
Enhancement request (Wiki markup functionality)

Caption text in a gallery takes on the centering of the gallery. For an uncentered gallery individual image text may be centered by bracketing with <center>...</center>

I have been unable to obtain left justified caption text in a centered gallery, whether that gallery was centered by bracketing with commands or centered via the gallery "align" command.

Related to this see https://bugzilla.wikimedia.org/show_bug.cgi?id=43035

If there is a method, please let me know, otherwise the following.

I am proposing Three methods to obtain this:

1.) Do not propagate centering to the text, wether via bracketing or in the align command. The former since bracketing is required to work around a known bug, https://bugzilla.wikimedia.org/show_bug.cgi?id=43186. If that is fixed then general bracketed centering would not be necessary and only the gallery braketing would be disabled for caption text - this can be overridden with center command bracketing in the individual caption text.

2.) Add to the gallery syntax 'aligntext="left"', also "center" and "right".

3.) Accept and process in the captions, in addition to "<center>...</center> the markup "<left>...</left>" and "<right>...</right> (the latter for completeness in right-to-left language markup). (These do not work at the present time, I tried them.)

Thanks,

- Leonard.
Comment 1 Quim Gil 2013-03-07 17:44:33 UTC
After some discussion on IRC it looks like Parser is a better component for this. Sorry for the noise.
Comment 2 Quim Gil 2013-11-19 15:39:34 UTC
Is this a desired enhancement request?

If so, is this bug a good candidate for Google Code-in?
 
https://www.mediawiki.org/wiki/Google_Code-In
Comment 3 Bawolff (Brian Wolff) 2013-11-19 16:03:06 UTC
> 1.) Do not propagate centering to the text, wether via bracketing or in the
> align command. The former since bracketing is required to work around a known
> bug, https://bugzilla.wikimedia.org/show_bug.cgi?id=43186. If that is fixed
> then general bracketed centering would not be necessary and only the gallery
> braketing would be disabled for caption text - this can be overridden with
> center command bracketing in the individual caption text

I don't think this should be done. I think the majority of time the current behaviour is best.

> 
> 2.) Add to the gallery syntax 'aligntext="left"', also "center" and "right".
> 

Not opposed to this. (Not entirely sure if I see how useful this would be)

> 3.) Accept and process in the captions, in addition to "<center>...</center>
> the markup "<left>...</left>" and "<right>...</right> (the latter for
> completeness in right-to-left language markup). (These do not work at the
> present time, I tried them.)
> 
> Thanks,
> 
> - Leonard.

Yeah, well those aren't real tags. (Blame the w3c, they only made a center)

Use <div align="left"> text </div>. You can also use the text-align css property


(In reply to comment #2)
> Is this a desired enhancement request?
> 
> If so, is this bug a good candidate for Google Code-in?
> 
> https://www.mediawiki.org/wiki/Google_Code-In

I don't have strong opinions on how useful a textalign (pt 2) would be. I guess it could be a gci task.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links