Extension talk:Semantic Result Formats/gallery format
Add topicFormatted Text in the Caption
[edit]Is there a way to pass formatted text to the caption? e.g <big>My Caption</big> I'm also interested in passing an alternative limk for the image
No gallery!
[edit]All I get is a standard result set. I've added 'gallery' to $srfgFormats.
Running SRF 1.4.6
Query is: {{ #ask: [[Category:Pictures]] [[ Title::+]] | ?Title | format=gallery }}
Any ideas? Thanks
mitchelln 13:12 GMT 1st April 2010.
- No, but I am getting the same thing with
{{#ask: [[photo of::{{PAGENAME}}]] | format=gallery | widths=100px | heights=100px | perrow=4}}
- When I add a caption, e.g.
{{#ask: [[photo of::{{PAGENAME}}]] | format=gallery | ?caption | widths=100px | heights=100px | perrow=4}}
- I get a gallery, sort of, just a long, long table with the first column as the image, 2nd as the caption.
- See http://www.gausschildren.org/genwiki/index.php/Person:CHAMBLESS,_Robert_Devore_%281922-2007%29
- How do I get the result on the example page?
- Susan 12:05, 28 April 2010 (UTC)
- Did a little investigation. The example site is using the deprecated SemanticGallery extension. The two extensions do not output equivalent html(Firebug). The older extension seems better developed to me. I think I will hack my copy to produce more satisfactory results for the short term.
- Susan 12:22, 29 April 2010 (UTC)
Why columns? Why not gallery?
[edit]Here I want to see the gallery like this. With the captions under the images. Why do I have a 2-column mode? This is the text of my gallery
{{ #ask: [[Category:Illustration]] | ?RecPage | perrow=3 | format=gallery | limit=10 }}
--Tarasius.ua 14:51, 16 November 2010 (UTC)
autocaptions parameter does not work
[edit]autocaptions=off does not work, it still shows file names, which are usually nonsense, but could be anything. And, mediawiki doesn't let you change file names, so, they are best hidden since they are not guaranteed to contain useful information. Badon 17:08, 13 July 2011 (UTC)
- This has been fixed. Badon 00:36, 22 July 2011 (UTC)
Reply to Autocaptions Parameter does not work
[edit]Autocaptions=off does not turn off the display of file names with the following:
{{#ask:[[Category:{{{1|Manual}}}]] [[Category:{{{2|Image}}}]]
|?#-
|format=gallery
|limit={{{3|2}}}
|link=none
|order=random
|headers=hide
|searchlabel=Random CCM Manual Images
|class=sortable wikitable smwtable
|navigation=pager
|overlay=1
|perrow=1
|widths={{{4|270}}}
|heights={{{5|270}}}
|autocaptions=off
|captionproperty=foo
}}