How Do You Embed a Random Page from a Specific Category? edit

Hi, I'm trying to learn how to write a PHP tag extension. If you want to embed a random page from a specific category, how might you go about doing so (would you use MySQL, the API, or what)? Octify27 (talk) 23:31, 22 December 2011 (UTC)Reply

You also asked this question in this Village Pump thread and some answers have been given there. If you have follow-up questions, I suggest you append them to that thread. -- John of Reading (talk) 17:57, 24 December 2011 (UTC)Reply

Noinclude, includeonly, and onlyinclude tags edit

So, noinclude, includeonly, and onlyinclude are awesome and incredibly useful. But I feel like they can junk up a page when used in excess. However, if I make a template with the necessary tags, they seem to only take effect on that template, and not on the target page (i.e., a noinclude tag will make itself not transcluded onto the target page, rather than keeping the content on the target page from being transcluded onto another page). Is there a way to make them take effect on the target page, and not the template?

(Lemme know if that makes ANY sense haha) --Octify27 (talk) 07:46, 30 January 2012 (UTC)Reply

I think this archived thread discusses this point, and the conclusion was that this isn't possible. -- John of Reading (talk) 08:16, 30 January 2012 (UTC)Reply
Aw, that's unfortunate. Thank you though!--Octify27 (talk) 05:16, 31 January 2012 (UTC)Reply

White Article Titles and Section Headings edit

Hi, I was wondering how to make all of the article titles and section headings of a given namespace white? I have a private wiki and I managed to give the articles of a namespace a black background, and change the font to white, but for some reason the article titles and section headings are still black.--Octify27 (talk) 15:06, 31 January 2012 (UTC)Reply

Since this isn't a Wikipedia question, I think you should be asking at the MediaWiki support desk - assuming you are using MediaWiki software. -- John of Reading (talk) 16:15, 31 January 2012 (UTC)Reply
Oh okay, thank you.--Octify27 (talk) 16:24, 31 January 2012 (UTC)Reply

Vector Page Tabs edit

Hello, I'm editing my user style on Special:Mypage/vector.css, and I want to make the selected page tabs have the same kind of fade as the unselected tabs (but in a different color). I've managed to figure out how to edit the tabs themselves (i.e., div.vectorTabs ul li.selected a { background: #FF0000; } ), but I can't figure out how to get the selected tabs to fill only partially, just like the unselected tabs.

In order to do that, you need a gradient. WP uses an image for the gradient (see http://bits.wikimedia.org/skins/vector/images/tab-break.png, for instance), but most browsers can do it with just CSS.
I used the tool at http://www.colorzilla.com/gradient-editor/ to get this gradient, which assumes you want the tab to be green instead of blue:
div.vectorTabs ul li.selected { 
  background: #c2d6af; /* Old browsers */
  background: -moz-linear-gradient(top,  #c2d6af 0%, #77c136 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c2d6af), color-stop(100%,#77c136)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #c2d6af 0%,#77c136 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #c2d6af 0%,#77c136 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #c2d6af 0%,#77c136 100%); /* IE10+ */
  background: linear-gradient(top,  #c2d6af 0%,#77c136 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c2d6af', endColorstr='#77c136',GradientType=0 ); /* IE6-9 */
}
Given that your user CSS file is just for you, you could leave off the rules for any browser you're unlikely to ever use.
It's not pretty, but it should work And of course, you can use the same tool to generate a gradient with your own preferred color scheme. DoriTalkContribs 23:06, 13 February 2012 (UTC)Reply
That worked perfectly, thank you! :D

Wikipedia's Search Bar edit

So I've noticed that Wikipedia's search bar seems to bring up articles in order of popularity or something, rather than just alphabetical order (which is great). For example, if you type in "American", "American football" will show up before "American Civil War", despite "C" coming before "F" in the alphabet.

I'm just wondering, what makes it do that? Is it the Lucene-search extension, or something else?

Since Lucene powers the search here, I assume that's the case but you should probably ask at mw:Project:Support desk or another page dedicated to the software to get a definite answer. Regards SoWhy 15:17, 15 February 2012 (UTC)Reply
Alright, thanks

File Subpages edit

Just wondering, is there a reason why the File namespace doesn't allow subpages? --Octify27 (talk) 03:37, 25 February 2012 (UTC)Reply

I don't know, but this looks like a question for Wikipedia:Village pump (technical).
Hint: Make sure you use {{help me}} for your next question, as that's the template that attracts helpers; you used {{help me-helped}}. -- John of Reading (talk) 08:58, 25 February 2012 (UTC)Reply
Alright, I'll ask there, thank you! (And sorry, my bad!)--Octify27 (talk) 00:24, 2 March 2012 (UTC)Reply

A-Z Multipage List Template edit

Hey, I'm trying to figure out how to change the format of the A-Z multipage list template so that it includes symbols and numbers before the alphabet (to create the same effect as adding the parameters sym and num for the Compact ToC template), but the description for how to change the format wasn't very clear.

Is this possible, and if so, how?

Which template? Where did you find the unclear description?   — Jeff G. ツ (talk) 20:51, 20 April 2012 (UTC)Reply
It was this this template and this part that was confusing:

To change this to a different format, use the format parameter. For example, if the subpages are named Main list article name (A) ... Main list article name (Z), use

{{A-Z multipage list|format=()|Main list article name}}

--Octify27 (talk) 21:12, 21 April 2012 (UTC)Reply


{{A-Z multipage list|Pokèmon}}
uses Pokèmon: A, Pokèmon: B, etc

{{A-Z multipage list|format=()|Pokèmon}}
uses Pokèmon (A), Pokèmon (B), etc.
The articles / characters are only linked if the article exists...
Regards, mabdul 15:56, 23 April 2012 (UTC)Reply

Images edit

So it seems that when you have a big image that fills up the whole screen, text, infoboxes, other images, etc. will automatically go down to the next line. Is there a way to make it so that it will stay on the same line as the big image (causing the browser to make a horizontal scrollbar appear)?

For example, I'd want the infobox on the same line as the image, not below it:

 

Unfortunately, no - You can't do this, and generally, most people are against massive images on pages. Mdann52 (talk) 18:17, 5 September 2012 (UTC)Reply
Alright, well that's fair I guess, thank you! --Octify27 (talk) 18:47, 5 September 2012 (UTC)Reply
One Piece
 
Sixty-first volume of One Piece, released in Japan by Shueisha on February 4, 2011
ONE PIECE(ワンピース)
(Wan Pīsu)
GenreAction, Adventure, Fantasy, Tragedy, Comedy-drama