| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This extension adds a "mode" parameter to the gallery
tag, allowing different formats for the gallery tag
(galleries in the ui can be controlled by a global)
The added modes are:
*traditional - The original gallery
*nolines - Like the original, no borders, less padding
*packed - All images aligned by having same height.
JS also justifies the images.
(I think this one is the one that will go over best
with users.)
*packed-overlay - like packed, but caption goes over
top the image in a transloucent box.
*packed-hover - like packed-overlay, but caption only
visible on hover. Degrades gracefully on screen
readers, and falls back to packed-overlay if
you are using a touch screen. I kind of like
this mode when the caption is not that important
(ex a category where its just the file name).
This also adds a hook to allow people to make their
own gallery version. I believe there would be interest
in this, as different people have done different
experiments. For example:
* Wikia: http://community.wikia.com/wiki/Help:Galleries,_Slideshows,_and_Sliders/wikitext
* Wikinews: https://en.wikinews.org/wiki/Template:Picture_select
What I would like to see for this patch, is first it gets
enabled, with the default still "traditional". After
about a month or two we consult with users. If feedback
is positive, we change the default mode to one of the
others (probably "packed").
Adds a "mode" parameter to gallery for different
mode, including one 'height-constrained-overlay'
which looks much more like other modern websites.
Note: This makes one change to the old gallery format.
It makes Nonexistent files be rendered like thumbnails
(i.e. they are rendered with a little grey border).
One thing I'm slightly worried about with this patch,
is that I added an option to MediaTransformOutput::toHtml
to override the width attribute. I'm not sure if that
is the best approach, and would appreciate thoughts
on that.
This should be merged at the same time as Ie82c1548
Change-Id: I33462a8b52502ed76aeb163b66e3704c8618ba23
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For multipage media, people really want to be able to specify
if the image gallery should display page 1 or page 10. This
also allows other handler specific parameters like thumbtime
for videos, "lossy" for tiff files, etc.
Note, this only allows the handler specific options
(typically things that would change an image). Other options in
the thumb syntax like class, border, upright, left, etc are
still not supported (and mostly probably should not be)
Bug: 8480
Change-Id: Ib831d89ed8676deb2f44238ff9a23ce58ad4d2df
|
|
|
|
|
| |
Bug: 50119
Change-Id: I7d06f48e53df43213bda52feec0d3f390e10f742
|
|
|
|
|
|
|
| |
Added spaces before if, foreach
Added some braces for one line statements
Change-Id: Ibb8dd102db045522d12ff939075ba7420d95ab6b
|
|
|
|
|
|
|
|
|
| |
And added/removed spaces around some other tokens,
like +, -, *, /, <, >, =, !
Fixed windows newline style
Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8
|
|
|
|
|
|
|
|
|
| |
* Ran spell-checker over code comments in /includes/
* A few spellchecking fixes for wfDebug() calls
Found one very strange (NOOP?) line in Linker.php - see "TODO: BUG?"
Change-Id: Ibb86b51073b980eda9ecce2cf0b8dd33f058adbf
|
|
|
|
|
|
|
|
|
|
|
| |
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.
Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
|
|
|
|
|
|
|
|
| |
If there is a parser set on ImageGallery, the target language of the
parser should be used, because this parsed piece of html can get into
the parser cache.
Change-Id: I2e47b316e3dcc6a3db4fb5d13f5065e35fc369dd
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ic0d890f5e27cec017c7f7910a67d53b2edf82079
|
|/
|
|
|
|
|
|
|
|
| |
Added/removed spaces after opening/before closing parentheses
Added a space after a comma
Removed unneeded parentheses in condition
Change-Id: I306091347ccaaf11dee0cdfda3019cb0c12be51b
|
|
|
|
|
|
| |
Or $this->msg in special pages.
Change-Id: I774a89d646615053c8424050e42ad95601f92543
|
|
|
|
|
|
| |
This checks are not needed in that case.
Change-Id: Ia83447427de8b7ea32aced8ff43c7a252b8d504c
|
|
|
|
|
|
| |
Also made file/class documentation more consistent.
Change-Id: I0db3461139284edcb6ac02923eb83d54e6756ffb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The patch adds an optional parameter |link= to the <gallery>
tag. This will allow for images to link to other pages and
externals urls instead of being hardlinked to the image file
that is displayed in the gallery.
Here are a couple of examples.
Link as WikiLink:
<gallery>
File:20120106_001.jpg|link=Main_Page
</gallery>
Link as absolute URI:
<gallery>
File:20120106_001.jpg|my caption|alt=my alt
text|link=http://bugzilla.wikimedia.org
</gallery>
this would cause the link on the thumbnails rendered by the gallery tag to link
to a custom page/url instead of the actual media/image.
a link should be an internal wiki link or an absolute uri as shown in the examples.
Change-Id: I21b276ad5c7a8df13b3a716957d23fd53c37d29e
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111101
|
|
|
|
|
|
|
|
|
| |
bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111073
|
|
|
|
|
|
|
| |
Improve RELEASE-NOTES-1.19 also
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/109550
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/109547
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/105985
|
|
|
|
|
|
|
| |
RepoGroup style param array that also excepts a 'broken' parameter. This new parameter replaces the odd "use timestamp '0' to make a broken thumbnail' convention. No other callers are using this hook other than FR, so the old time/sha1 params where removed.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96357
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94838
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/92341
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91573
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91557
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91427
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91426
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89062
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/88233
|
|
|
|
|
|
|
|
|
| |
Couple of inbound calls fixed up
Some ancient code removed as it's been marked deprecated
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/87584
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/87266
|
|
|
|
|
|
|
| |
nested |alt= now fixed. Patch by Jan Paul Posma
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86859
|
|
|
|
|
|
|
| |
would be to generalize makeImage() in the parser to process gallery params as well, but I don't have time to that now
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86752
|
|
|
|
|
|
|
| |
Patch by Jan Paul Posma. Also cleaned up some comments and var names
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86749
|
|
|
|
|
|
|
|
|
|
|
| |
* Cleaned up mImageTimeKeys format
* ImageMap: Removed redundant addImage call (makeImage handes this)
* ParserFunctions: added time/sha1 to addImage() call
* Removed excess ampersands in hooks
* Added some function doc comments
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85305
|
|
|
|
|
|
|
| |
forward calls for passing to hooks and finish off anything in the way.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85247
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84669
|
|
|
|
|
|
|
|
|
| |
with BeforeParserFetchFileAndTile hook
* Updated the only calling extension (these was basically single-purpose hooks)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84659
|
|
|
|
|
|
|
| |
Add some documentation
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84653
|
|
|
|
|
|
|
| |
* Removed unused $i var
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84632
|
|
|
|
|
|
|
|
| |
* Added some ParserOutput accessors
* A few cleanups to fetchFile()
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84610
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parameter
* Made FlaggedRevs specify files by sha1,timestamp to handle renames with no redirects. This makes them handled as well as templates in this regard. (bug 27836)
* Moved BeforeGalleryFindFile hook to proper place (don't trigger for non-NS_FILE titles)
* Removed unused mRevisionId field from ImageGallery
* Removed old hotfix from makeMediaLinkObj(); all the current callers would crash beforehand if the title was null anyway
* Updated hook docs (some prior params were missing)
* Broke some long lines and cleaned up some whitespace
* TODO: track file info in core rather than fr_fileSHA1Keys and ugly, duplicated, queries. This should be easy to do now.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/84591
|
|
|
|
|
|
|
|
|
|
| |
Also use const variables to make this more readable.
Fixes bug 27577
Follow up to r77411
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83965
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/82538
|
|
|
|
|
|
|
|
|
|
|
| |
Patch supplied by DieBuche (bug #27338) along with screenshot
demonstrating fix.
Took out fix for bug #27458 (“<gallery> has a white background now”)
since bug it conflicts with a fix for bug #26470.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/82309
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/82215
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch by DieBuche, who explains the CSS:
If the image height is lower than the line-height, the margin-top
is applied to the top of the line. a very short image will not
follow for 3-4px laters, thus leading to a bigger distance from
the top than it should be. vertical-align:text-top moves the
picture up, so this problem doesn't happen
I've not tested this, but DieBuche and Derk-Jan Hartman tested and
provided screenshots in the bug.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/82181
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78806
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Adds a line css to actually fix Bug 3770 (Sorry, I had forgotten to paste it
there as well)
2. Fixes a problem, where the box size would be slighty higher if the image
thumb has a height of less than 8px
3. Normalize the calculation of the vertical padding to be exactly the same one
as the horizontal padding. (This is only relevant for unusually large
galleries, eg. previously it returned a not-exactly-square box if you specified
500px as both width and height)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77836
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 3276. Patch by DieBuche, with style cleanups by me, plus a tweak
from comment 27 of the bug to fix spacing. This incidentally removes
the border around galleries, but this was hard to notice anyway, and
could be easily readded if desired. Tested in a few browsers, including
IE6, but more testing and/or input from CSS gurus would be appreciated.
Updates parser tests, including for Cite.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77411
|