Help talk:Gallery tag

From Wikipedia, the free encyclopedia
Jump to: navigation, search
the Wikipedia Help Project  
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the help menu or help directory. Or ask for help on your talk page and a volunteer will visit you there.
 ???  This page does not require a rating on the project's quality scale.
 ???  This page has not yet received a rating on the project's importance scale.
 

Caption from Image Description?[edit]

Is there a way to have the caption use the Image's description automatically?

External images on gallery[edit]

Hi everyone!
I'm trying to insert external images into gallery, but it don't want to work...
I've enabled the External images on the settings file.
If I'm writing: http://site.com/pic.JPG It will work. But if I'm writing: <gallery> http://site.com/pic.JPG< </gallery>
It won't work...

What can I do?

Thanks!

Change to alt text info[edit]

The gallery tag has supported alt text for over a year. Kaldari (talk) 21:08, 6 June 2012 (UTC)

I just came here to check that because I thought that it did not, but I see it being used in examples. Blue Rasberry (talk) 21:01, 11 September 2012 (UTC)

Requested move[edit]

The following discussion is an archived discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section.

The result of the move request was: page moved. Armbrust The Homunculus 09:20, 25 January 2013 (UTC)


Wikipedia:Gallery tagHelp:Gallery tag – This page explains details of a technical feature of the MediaWiki software. The policy aspects are covered at Wikipedia:Image use policy#Image galleries (linked via a hatnote). Though there is much overlap and confusion between the Wikipedia: and Help: namespaces, the general practice is to have technical documentation in the Help: space. See for example Help:Wiki markup, Help:Category, Help:Searching, Help:Link. the wub "?!" 13:37, 13 January 2013 (UTC)

  • Support, good idea. I noted a while ago that there are indeed still many help pages in the project space, gotta start moving them someday. --The Evil IP address (talk) 21:18, 13 January 2013 (UTC)
The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

Pixel border on image?[edit]

Is there a way to add a pixel border to a gallery image? This would help with some images that have the same color as the background, such as flags in some cases. Illegitimate Barrister (talk) 01:57, 7 February 2013 (UTC)

You could use {{gallery}}, which has borders built in. --Redrose64 (talk) 12:25, 7 February 2013 (UTC)

Display text link instead of image in gallery[edit]

It would be nice to add a colon in front of the file name and disply a text link to the image instead of the image.

Markup would be like so...

<gallery>
File:Bulldog.jpg
:File:Bearded Collie.jpg
File:St Bernard Dog.jpg
</gallery>

Result would be something like this...

Bulldog.jpg File:Bearded Collie.jpg St Bernard Dog.jpg

Reason for this is to have the ability to easily place non-free images into the gallery here. And I suppose it might be useful in other areas as well. Using the colon is intuitive here, because it's already the way to turn an image into an image link. We'd simply be extending that syntax to galleries. – JBarta (talk) 05:33, 19 June 2013 (UTC)

The <gallery> tag is part of the MediaWiki software; there's not much we can do from this end to alter its behaviour. You'd need to put a feature request through bugzilla:. --Redrose64 (talk) 08:20, 19 June 2013 (UTC)
Done. – JBarta (talk) 13:34, 19 June 2013 (UTC)

MediaWiki 1.22/wmf13[edit]

MediaWiki 1.22/wmf13 will add a mode parameter.[1] --  Gadget850 talk 05:40, 17 August 2013 (UTC)

Examples --  Gadget850 talk 08:01, 17 August 2013 (UTC)

Wiki-syntax in caption parameter[edit]

This: <gallery mode=packed caption="Components of the Earth's magnetic field at the surface from the [[World Magnetic Model]] for 2010.<ref name="renamed_from_2010_on_20131022170733">{{Cite report |authors=Maus, S., S. Macmillan, S. McLean, B. Hamilton, A. Thomson, M. Nair, and C. Rollins |year=2010 |title=The US/UK World Magnetic Model for 2010-2015 |url=http://www.ngdc.noaa.gov/geomag/WMM/data/WMM2010/WMM2010_Report.pdf |publisher=National Geophysical Data Center |accessdate=18 October 2013}}</ref>" align=center heights=155px> File:WMM2010 F MERC.pdf|Intensity File:World Magnetic Inclination 2010.pdf|Inclination File:World Magnetic Declination 2010.pdf|Declination </gallery>

Renders as:


We appear to have lost the caption as it has a ref in it. Is this a known problem? Jamesx12345 20:11, 29 October 2013 (UTC)

It's badly formed, that's for sure. Eliminating much of the text and irrelevant attributes, what you have here is
<gallery caption="caption text.<ref>ref text</ref>">
</gallery>
The < and > characters, which are used to begin and end the tags, must alternate - you can't begin a fresh tag - such as <ref> - until any incomplete tag - such as <gallery> - has been properly ended. --Redrose64 (talk) 20:48, 29 October 2013 (UTC)

You can do this with #tag:gallery:

Markup Renders as
{{#tag:gallery|
File:WMM2010 F MERC.pdf{{!}}Intensity
File:World Magnetic Inclination 2010.pdf{{!}}Inclination
File:World Magnetic Declination 2010.pdf{{!}}Declination
|mode=packed
|align=center
|heights=155px
|caption="Components of the Earth's magnetic field at the surface from the [[World Magnetic Model]] for 2010.<ref name="renamed_from_2010_on_20131022170733">{{Cite report |authors=Maus, S., S. Macmillan, S. McLean, B. Hamilton, A. Thomson, M. Nair, and C. Rollins |year=2010 |title=The US/UK World Magnetic Model for 2010-2015 |url=http://www.ngdc.noaa.gov/geomag/WMM/data/WMM2010/WMM2010_Report.pdf |publisher=National Geophysical Data Center |accessdate=18 October 2013}}</ref>"
}}
 
References
  1. ^ Maus, S., S. Macmillan, S. McLean, B. Hamilton, A. Thomson, M. Nair, and C. Rollins (2010). The US/UK World Magnetic Model for 2010-2015 (Report). National Geophysical Data Center. http://www.ngdc.noaa.gov/geomag/WMM/data/WMM2010/WMM2010_Report.pdf. Retrieved 18 October 2013.

Note that the parameters must come after the content and must be delimited by a pipe. The pipes for the image captions must be escaped using {{!}}. --  Gadget850 talk 22:33, 29 October 2013 (UTC)

Spacing glitch?[edit]

Recently, I've noticed that galleries that auto-format into two rows have a big gap in the first row, see forex Rhodochrosite#Gallery. This may be a Firefox artifact -- displays fine in Safari. MacOS user.  ??? --Pete Tillman (talk) 22:12, 1 February 2014 (UTC)

Looks OK in Firefox 26 under Windows XP. --Redrose64 (talk) 22:59, 1 February 2014 (UTC)

Chandelier[edit]

I have a chandelier in my possession that we bought from an antique dealer in 1962, listed on it is the name ROCHESTER. We were told at the time, that it came from the Battle Cruiser ROCHESTER when it was refitted, in 1927 or so.If you have a picture of chandelier's that were on the ship, it might help. This is solid Brass and quite nice looking. The wife wants to get rid of it now. We were wondering if it was seeked after. Would it be a good museum piece. The ship hauled many Marines into battle, and might interest them. if this is off the ROCHESTER. IT would be nice to know. Daniel Donnelly — Preceding unsigned comment added by 72.81.184.229 (talk) 19:20, 6 February 2014 (UTC)

This isn't a good page for questions like this one. I suggest you visit the Humanities reference desk and ask there. Some of the volunteers there may be able to help you. -- John of Reading (talk) 20:03, 6 February 2014 (UTC)

Location of Gallary in Article[edit]

Could someone write in this help Article where to place the Gallery? Is it before or after External links, e.g. Timelezz (talk) 14:00, 3 March 2014 (UTC)

I don't think that there is a rule, as such; but after "External links" is certainly too far down. Sections like "External links" are covered at MOS:APPENDIX, and there is no mention of galleries there; but elsewhere in the same document there is WP:LAYIM which has a link to WP:IG which in turn links to WP:MOSIMAGES. None of those prescribe a specific location for a gallery, but all of them indicate that interspersing the images throughout the text is preferable to a gallery. --Redrose64 (talk) 14:28, 3 March 2014 (UTC)

Problem with heights?[edit]

I've just added some galleries to the article Flag of Tuvalu and the heights parameter seems to be ignored (see revision 619557986). Without the widths parameter, the flags are all smaller but the heights are still ignored (see revision 619557913). Does anyone know this functionality well enough to fix my problem (or the bug itself), please? Thanks! — OwenBlacker (Talk) 15:08, 2 August 2014 (UTC)
Edited to add: This applies to the nolines format, not traditional. — OwenBlacker (Talk) 18:15, 2 August 2014 (UTC)

@OwenBlacker: Er, Flag of Tuvalu hasn't been edited in five months... do you mean Flag of Vanuatu? --Redrose64 (talk) 18:09, 2 August 2014 (UTC)
@Redrose64: Yes I do, thank you. Though it's no longer apparent in the current version, as I turned off nolines, to compensate for the inability to add borders to images. Sorry, I'm an idiot!  :o) — OwenBlacker (Talk) 18:15, 2 August 2014 (UTC)