I am trying to query wikipedia using the API. However when I search, it does not give page IDs:
https://en.wikipedia.org/w/api.php?action=query&list=search&srlimit=1&srsea…
{"query-continue":{"search":{"sroffset":1}},"query":{"searchinfo":{"totalhits":1786},"search":[{"ns":0,"title":"Sveriges Television","snippet":"Sveriges Television AB (<span class='searchmatch'>SVT</span>. <span class='searchmatch'>SVT</span>_Swedish. ogg | Pronunciation Sweden's Television, is the Swedish national public TV broadcaster , funded by <b>...</b> ","size":28091,"wordcount":3891,"timestamp":"2013-10-19T22:45:43Z"}]}}
It seems that I have to do two queries then to get the pageid/url, following that one up with this one:
https://en.wikipedia.org/w/api.php?action=query&titles=SVT
{"query":{"pages":{"452098":{"pageid":452098,"ns":0,"title":"SVT"}}}}
Is there anyway of returning the pageid or fullurl in the first query? (action=query&list=search)
Thanks!
Is there a way to display 2 or 3 images, side by side, so that they span
the entire page width?
gallery does something like what I need...
But I'd like to be able to put the images in a table with even column
widths so I have the images evenly spaced across the page.
My current attempt (template):
<div class="onlyinprint" class="gallery2">
{|width=100%
|-
|[[File:{{{1}}}|frame|{{{2}}}]]
|[[File:{{{3}}}|frame|{{{4}}}]]
|}
</div>
and in Common.css:
.gallery2 img { width: 100%; }
I still get small images; about 1/2 the cell width, but spaced evenly
across the page.
How do I get images to fill the available table cell?