Wikipedia:Village pump (technical)/Archive 103#Template Parameter Wizard
{{Wikipedia:Village pump/Archive header}}
Poem extension updated
On September 24th, an updated version of the Poem extension will be deployed to English Wikipedia. Most of the changes are back-end, but there is one change that will effect the formatting of poems. Per the fix to {{phab|33146}}, colons inside
:If you use {{tl|xtag}} to create the tag, it links to the help or extension page: {{xtag|poem}}. ---— Gadget850 (Ed) talk 22:55, 11 September 2012 (UTC)
Ext links as file names
A small number of the pages in :Category:Articles with missing files have an ext link as a page name, i.e
:I will take this over to WP:BOTS. -- Alan Liefting (talk - contribs) 19:29, 11 September 2012 (UTC)
Making an infobox collapsible
I have tried unsuccessfully to make {{tl|infobox D&D creature}} into a collapsible infobox, like {{tl|Infobox video game}} which was locked with tabular formatting to allow the collapse. I don't believe that's a standard infobox option, but I would like to use the creature infobox on list pages and don't want to make the page overly long with full boxes, so collapsible ones make more sense. Can anyone with a bit of technical knowledge help with this? BOZ (talk) 19:55, 10 September 2012 (UTC)
:One one hand, that seems like a dangerous precedent. I think MOS:COLLAPSE might need to be re-examined and tightened, otherwise the anti-infobox people are going to request collapsed-by-default infoboxes in more places, which often leads to unchecked/unseen content...
:On the other hand, I think you're probably talking about merging many creature-stub-articles into a single creature-list-article, which as a mergist I'm fully in favour of. (Easier sourcing, easier searching, easier comparing, and less deleted topics, plus usually less cruft).
:I'd much rather an alternate solution though. Possibly the old sprinkling of {{tl|clear}} and whitespace between sections, as many merged-into-list pages do. —Quiddity (talk) 23:15, 10 September 2012 (UTC)
::Well, I made it work, but whether or not it should be used, or when and where, are other matters. While I updated the documentation to reflect the change, perhaps this might be the sort of thing not worth documenting so as to help prevent abuse? I dunno. -— Isarra ༆ 23:33, 10 September 2012 (UTC)
:::Thanks! I will try to use it responsibly, if I use it at all. :) BOZ (talk) 13:47, 11 September 2012 (UTC)
Watchlist star
When you click on it, it happily spins but "never" changes to blue or white, let alone give you a message, although it does execute the requested action.--Bbb23 (talk) 00:46, 11 September 2012 (UTC)
- Bugzilla:40103. --Yair rand (talk) 01:01, 11 September 2012 (UTC)
: This is a serious enough issue that we reverted today's deployment for now. It should now be fixed.--Eloquence* 01:36, 11 September 2012 (UTC)
::It does, thanks. One aside. We should be able to make the bubble message that appears now when you add or remove a page from your watchlist go away (escape?), or failing that, it should fade after a bit. It covers up the whole area making it difficult to access certain portions of the menu. I often have to refresh the page just to make it disappear.--Bbb23 (talk) 12:27, 11 September 2012 (UTC)
:::For me (Windows Vista, Firefox 13) it fades away after about 5 seconds. -- John of Reading (talk) 12:37, 11 September 2012 (UTC)
::::Huh, I coulda sworn it didn't, but it certainly does now, thanks, John.--Bbb23 (talk) 22:36, 11 September 2012 (UTC)
A common.js install script
I want to create a url which preloads a script that adds code to a user's common.js page.
Teahouse did this nifty trick using this code:
http://en.wikipedia.org/w/index.php?action=edit&preload=User%3AJtmorgan%2Fintroductions%2Ftemplate+left&editintro=&preloadtitle=§ion=new&title=Special%3AMyPage%2Fcommon.js - Which loads: User:Jtmorgan/introductions/template_left
- Which calls:
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js");
So my version would be:
- (Fixed version)
http://en.wikipedia.org/w/index.php?action=edit&preload=User%3AOcaasi%2FWikiLoveinstall&editintro=&preloadtitle=§ion=new&title=Special%3AMyPage%2Fcommon.js - Which loads User:Ocaasi/WikiLoveinstall
- Which calls:
importScript("User:Ocaasi/WikiLoveinstallscript.js");
I'm don't know what to do with User:Ocaasi/WikiLoveinstallscript.js. How do I go about crafting that code so that it automatically preloads the code that is on my common.js page (or on another subpage) into any user's common.js page. Thanks for any tips! Ocaasi t | c 11:52, 11 September 2012 (UTC)
:Try
::Works like a charm! Do you have any idea what to do with User:Ocaasi/WikiLoveinstallscript.js? That's the core code and I have no clue how to make it call that code to be placed on someone's common.js page. Thanks so much for your help! Ocaasi t | c 12:39, 11 September 2012 (UTC)
=Template rather than script=
I also tried to preload the page with a template rather than a script. So:
http://en.wikipedia.org/w/index.php?action=edit&preload=%7B%7BUser%3AOcaasi%2FWikiLoveinstallscript.js%7D%7D&editintro=&preloadtitle=§ion=new&title=Special%3AMyPage%2Fcommon.js
That should load
:That's not how preload works, I think. It doesn't accept wikitext as a parameter, only the title of a page; the specified page's source then gets dumped into the edit box. So, putting brackets in it isn't going to help. Are you trying to get the text
to be put into the edit box, or are you trying to get the contents of the page User:Ocaasi/WikiLoveinstallscript.js (as if you did a substitution like
) into the page? If the latter, than you can just take out the brackets and it'll work. If the former, then you'd need to create a page that contains
or something like that; the preloader will take out the includeonly tags, leaving only
in the editbox, and use that. Writ Keeper ⚇♔ 16:26, 11 September 2012 (UTC)
::Yes, I'm trying to get User:Ocaasi/WikiLoveinstallscript.js, but I hoped to do it as a transclusion if possible so that we could make changes on the fly.
:EDIT: Something like
should do the trick. Writ Keeper ⚇♔ 16:29, 11 September 2012 (UTC)
::That works. But it leaves some vulnerability if we need to change the code mid-course. So, again, transclusion would be ideal. If not, we just have to be really careful to get the code right and complete before people start adding it to their common.js pages. Ocaasi t | c 17:04, 11 September 2012 (UTC)
::I'm currently using
:::Right, so use
as the Teahouse example did; that'll have the effect you're looking for. Writ Keeper ⚇♔ 18:07, 11 September 2012 (UTC)
Pages added to categories
How do I see what pages have been added to all of the categories that are on my watchlist? Is there a tool or template or what? This is not the same as watching all of the pages in a category. I simply want to know when pages are added to all of the categories on my watchlist. Thank you! Allen (Morriswa) (talk) 23:54, 11 September 2012 (UTC)
:Go to the category page, for example :Category:Cats. Then on the left side of the page, look for the Related changes link in the Toolbox section. Click it and you'll get a page like this Special:RecentChangesLinked/Category:Cats. It won't really tell you when pages are added to a category, but if you watch it closely enough, you'll be able to spot new articles. –Fredddie™ 01:08, 12 September 2012 (UTC)
::Similar thread raised at Wikipedia talk:WikiProject Categories#Pages added to categories. --Redrose64 (talk) 10:22, 12 September 2012 (UTC)
::: It seems crazy that this can't be done at present, at least for category additions (the categorylinks table already includes a timestamp field which would easily allow tracking of additions since any given time; category link deletions could not be tracked without keeping a separate snapshot of former entries, or creating a hook each time a link is removed from the table). Are there any relevant toolserver tools at present? — Richardguk (talk) —Preceding undated comment added 11:04, 12 September 2012 (UTC)
::::Fredddie: Thanks for the temporary solution. However, I want to know what pages have been added to all of the categories that I am watching.
::::RedRose: Yes, this is the same topic thread on the Categories WikiProject. I just thought I'd spread my question around to try to get more responses.
::::Richardguk: Yes, it does seem "crazy" that this can't be done currently. This should be added as a default function in the MediaWiki software. Or, a gadget should be added to the "My preferences" page. Or, a link to make a page for this purpose (just like the myskin.js on the "My preferences" page) could be added to the "My preferences" page.
::::If any of you (or anyone else) has a real option to help me, please let me know. Thanks a lot in advance! Allen (Morriswa) (talk) 17:01, 12 September 2012 (UTC)
NAVBOXes extending far to the right of the browser window
I have noticed recently a problem where NAVBOX'es are extending far past the right of the browser window instead of having the elements wrap in a nice way. The navbox at the end of the Operation Nougat article is an example. This behavior is browser dependent. I see the behavior under Firefox 15 and an up-to-date Chrome but the navbox renders fine under Opera 12. I have seen this behavior quite frequently in the last few months although it only affects a small percentage of pages. Can someone shed some light on what is causing this? Jason Quinn (talk) 14:06, 12 September 2012 (UTC)
:PS One more thing, if I view the actual NAVBOX template. It wraps just fine. Jason Quinn (talk) 14:07, 12 September 2012 (UTC)
::As it happens, Operation Nougat displays the navbox overwide for me too. Firefox 15.0.1 has a neat feature in that if you view the page source (right-click and select "View Page Source", or press {{keypress|Ctrl|U}}), any "bad" HTML shows up in bright red. Looking at the page source for Operation Nougat confirms my suspicions: some of the HTML closing tags ({{tag|li|c}}{{tag|ul|c}} or {{tag|div|c}}) have been misplaced, and don't occur in the proper table cell.
::It's not a problem with the navbox itself, but with the HTML Tidy feature of MediaWiki, see Wikipedia:Village pump (technical)/Archive 102#Are the HTML generators out of sync on some servers? and bugzilla:38273. The problem server is mw20. --Redrose64 (talk) 16:14, 12 September 2012 (UTC)
:::Great. Thanks, RedRose64. I didn't know about HTML Tidy before now. The reporter of bug 38273 says that reports started around July. This general time period is consistent with when I first started noticing these problems although I don't remember the exact month. It wasn't until now that I decided to investigate it. Sometimes in the past, just loading the page once or a few times would fixed the issue, which was confusing. Operation Nougat is working now so I suppose something got purged. Thanks for the reply. Jason Quinn (talk) 17:53, 12 September 2012 (UTC)
Circular Redirects
Just out of curiosity, what would happen if you placed redirect tags on two pages, each redirecting to the other? I thought about trying this in my sandbox, but decided it was a bad idea, in case the situation exploded and could not be undone. Thanks! Ebikeguy (talk) 14:55, 12 September 2012 (UTC)
:Answer: nothing. I wondered about this myself a while ago, and had the same reluctance to try it. Redirects only happen one time; after you're redirected once, you don't get redirected again, even if you're left at another redirect page. This is why double redirects need to be fixed; it just dumps you at the second redirect, without making you continue along the chain to the intended target. Here, check it out. Writ Keeper ⚇♔ 15:07, 12 September 2012 (UTC)
::Darn it, Pinky, I will have to search for a new way to take over the world. -The Brain, aka: Ebikeguy (talk) 15:16, 12 September 2012 (UTC)
:::Brain, we just tried to [http://en.wikipedia.org/w/index.php?diff=511932293 delete you]; what are you doing coming back so quickly? Nyttend (talk) 00:45, 13 September 2012 (UTC)
ENWP image syntax usage
Has anybody run statistics on image sizing on ENWP? I'm interested to know what the most common image sizes are, versus how many people leave sizing to user preference (by using the thumb, frameless, frame, etc.). Also I'd be very interested to see how this evolves over time, as screen resolutions increase, but that would require an older data set which I doubt exists. ▫ JohnnyMrNinja 02:35, 13 September 2012 (UTC)
Tabs moved to bottom of page in Opera
{{tracked|40208}}
Since this morning, using Opera 12.02, all the tabs and user buttons have moved from the top of an article page to the bottom -- "Read", "Edit", "View history", and "My watchlist", "My contributions", etc. See [http://imgur.com/IVrVm screenshot]. Has there been a change in the code since yesterday that could cause this? It's extremely annoying. Barsoomian (talk) 03:30, 13 September 2012 (UTC)
:I'm not sure what could have caused that :S. I'll stick it in Bugzilla for you now :). What OS are you on? Okeyes (WMF) (talk) 03:31, 13 September 2012 (UTC)
::Now tracking :). Okeyes (WMF) (talk) 03:33, 13 September 2012 (UTC)
:::Using Win2k (I know...). Also just noticed a similar problem with Google's search page, so it's more likely an Opera bug. Barsoomian (talk) 03:52, 13 September 2012 (UTC)
- Okay, fixed it, an Opera "style" preference, ("View/Style/Disable positioning", CSS override I think) -- which I'm sure I didn't change, but now turned off and pages are back to normal. Can close the issue, thanks. Barsoomian (talk) 04:38, 13 September 2012 (UTC)
Edit summary and Subject/headline funkiness
I have come to think of the Wikipedia technology as having mid-life mood swings. One moment it's fine, the next moment it's whacked, and later, it's back to normal as if nothing happened. This just changed on mine within the last half hour - Poof! Right out of the blue! The Subject line I see as I write this has visibly dropped and is now obscuring a bit of the edit toolbar. This one doesn't actually have an edit summary box below. When on articles that do, the edit summary also drops and obscures a bit below it. Since my system and browser didn't change, what kind of mood swing has the Wikipedia software gone through? Maile66 (talk) 00:04, 11 September 2012 (UTC)
::And, yes, before anyone mentions it, I cleared my cache. So that isn't it. Maile66 (talk) 00:13, 11 September 2012 (UTC)
::: I'm not able to reproduce this. It would help if you could provide a few more details: 1) a screenshot of the actual issue, 2) browser/OS info, 3) info about preferences (e.g. which skin, with enhanced toolbar or old one), 4) info about gadgets or user scripts you're using.--Eloquence* 01:19, 11 September 2012 (UTC)
::::Thanks for posting here. As of this morning, it's no longer doing its funky-drop stuff. Everything is fine. Go figure. Maile66 (talk) 10:54, 11 September 2012 (UTC)
::::: That's probably due to us reverting yesterday's deployment (see further below). That means the issue will likely re-appear when we re-deploy, so it would still be useful to have the aforementioned info, even if you can't take a screenshot of the problem right now.--Eloquence* 15:50, 11 September 2012 (UTC)
::::::BTW, for future questions, how does one do a screen shot into the Village pump talk page? I know how to do a screen shot. I'm just not sure how to paste within Wikipedia text. I use Windows XP with Service Pack 3 (if that matters), Firefox 15.0.1, Modern skin, Enhanced edit toolbar. Editing gadgets: Citation Expander, HotCat, Provelt, wikiEd. There's other issues going on since early summer, when I was using earlier versions of Firefox. They seem to be getting worse:
:::::::*Copy and Paste inserting on a new blank line, it inserts an extra blank line, and THEN does the insert
:::::::*Repeating the "delete" key to remove characters - it removes the first character and then jumps to somewhere else and removes the wrong text.
:::::::*Inserting a link or inline citation, either from the toolbar or from Provelt, fails most of the time. But when it does insert, it jumps to somewhere else on the page - often to a previous section - to do the insertion. I've had to click "Change" to find out if the insertion happened, and where it actually inserted in the document.
::::::Maile66 (talk) 23:27, 11 September 2012 (UTC)::
:::::::The browser is immaterial, but I also have XP with SP3, so here's how I did some of my screenshots (see for example :File:Vpt redrose64 thedj.PNG). On the problem screen, I pressed {{keypress|Print Screen}} which copies the entire screen into the cut/paste buffer. Then I started Microsoft Paint (which I believe is a standard feature of XP) and pressed {{keypress|Ctrl|V}} to paste in the whole screen. Then I selected the "Select" tool (the dotted rectangle at the top of the second column of the toolbar at left), used the mouse to outline the general area showing the problem, including some of the surrounding area for context, and {{keypress|Ctrl|C}} to copy to the cut/paste buffer. Then I went for {{keypress|Ctrl|N}} to start a new document (answering "No" to the question about saving changes). Then {{keypress|Ctrl|V}} to paste in the cropped section. Then I selected the "Ellipse" tool (bottom of the first column in the left toolbar), picked a distinctive colour from the palette (in this case red), and drew the ellipse to indicate the specific problem. You could draw an arrow if that is more suitable. Then I saved it as a PNG file, then uploaded it and gave it the license {{tlx|Wikipedia screenshot|2=logo=no}} (the {{para|logo|no}} parameter means that the Wikipedia puzzleball at top left is not included). Then I linked it into the page in the normal way, see here. --Redrose64 (talk) 10:14, 12 September 2012 (UTC)
::::::: Most or all issues you're experiencing seem likely related to the gadgets you're using, e.g. wikEd, and it's generally best to leave a note for the gadget authors about any issues (usually the talk page of the wiki page linked in the preferences is a good place to start). Try disabling them all and re-enabling them individually to narrow down issues. Just for fun I tried enabling all these prefs and seeing if I could reproduce your earlier problem, but I still couldn't.--Eloquence* 07:59, 13 September 2012 (UTC)
Still need parser function #set
When trying to reduce templates for the wp:Expansion depth limit, I keep noticing the need for an assignment operator of a "real language", such as a parser function "{{#set:xx|50}}" or without "#" as "{{set:xx|50}}" to set parameter {{{xx}}} to "50" inside the same template, not require a subtemplate to set the value of a parameter. I realize this simple function would make templates much easier to write, and could then run 10x faster, with an expansion depth of 4, rather than 40 levels, but surely we could invent some other problems to make editors miserable. Here's the deal: the assignment operator, to set the value of a variable, is the most common operator in small computer software programs (the procedure call is most-common in large software). So, anyway, the need for #set is the "elephant in the room" for "Why Johnny can't write templates" without going wiki-insane. Who decides these issues, to add parser functions? -Wikid77 (talk) 06:35, 12 September 2012 (UTC)
:Tim Starling —TheDJ (talk • contribs) 08:36, 12 September 2012 (UTC)
::And of course it is being addressed, it's called Scribunto, you just choose not to accept the timetable in which it is being addressed. —TheDJ (talk • contribs) 08:54, 12 September 2012 (UTC)
:::See :mw:Lua scripting for the timetable. PrimeHunter (talk) 10:44, 12 September 2012 (UTC)
::::There is an extension mw:Extension:Variables, not of much help on here though as its unlikely to be installed. --Salix (talk): 10:48, 12 September 2012 (UTC)
::::: Thank you for the news. See note below, "Global variables by mw:Extension:Variables" -Wikid77 (talk) 04:43, 13 September 2012 (UTC)
:{{ec}} I think the rationale for preventing in-page assignment is that it changes the parser environment from stateless to stateful (apologies if I've misused the terminology), instead of relying solely on recursive expansion. Anyway, as TheDJ says, things are set(!) to change. If the imminent testing assessment goes well, Scribunto rollout is proposed for 2013Q1. — Richardguk (talk) 10:51, 12 September 2012 (UTC)
:: If there were any major parsing advantages by preventing in-page assignment of parameter values, then I would consider them less important, than the potential gains of storing a tedious result in a local parameter. Currently, we have many templates which repeat a calculation, or procedure, numerous times, or pass the result into a nested template, because the result cannot be stored in a local parameter. As a consequence of passing the result into another template, then any related parameters must also be passed, and we can get the 2x-slower templates which pass 200 parameters into a subtemplate because they cannot store the result of some complex calculations inside the current template. One of the worst problems has been the Template:Taxobox taxon-chains, where getting the greatgrandparent taxon of the grandparent taxon of the parent taxon (etc.) causes nested templates to run 35 deep, into other templates to reach 60-taxon depth. However, the careful use of nested subtemplates has allowed for 60-level taxon chains, within the current expansion depth limit of 40 nested levels. It is ironic however, that for years, one simple function as
- Global variables by mw:Extension:Variables: An even better fix would be to install mw:Extension:Variables, which would define global variables which could span from the top article text into the various templates used. That would be awesome, to allow each article to set global preferences for how templates would function, based on the settings made inside the article text, rather than per-user preferences. In such a case, we could, indeed, have measurement conversions which displayed the Imperial or U.S. customary units first, in article text, simply based on a global variable which triggered the flipping of units. Even though enwiki is kept limited, with relatively little progress, it is refreshing to know how other people have radically expanded to make a MediaWiki installation produce clever, auto-customized results, through such simple, efficient extensions. O, brave new world, that has such creatures in it. I have seen the future, and it has returned. Thank you. -Wikid77 (talk) 04:43, 13 September 2012 (UTC)
- :This extension is incompatible with template caching. Ruslik_Zero 06:23, 13 September 2012 (UTC)
- ::See also bugzilla:7865. --Redrose64 (talk) 14:41, 13 September 2012 (UTC)
Image class
File:Vandalism_San_Francisco.jpg
File:Vandalism_San_Francisco.jpg
:File:Vandalism_San_Francisco.jpg
I am curious why one of these images has an 'image' class in its wrapping anchor tag but the second one does not? The only difference between them is |link= parameter. Is it a bug or intended behavior? Ruslik_Zero 19:18, 12 September 2012 (UTC)
:It is not the image with the 'image' class, but the link. And one link has an image as a target, and the other link does not. —TheDJ (talk • contribs) 21:25, 12 September 2012 (UTC)
::I changed the link in the second image to point to the image itself but still there is no image class. It appears that that the class disappears if nonempty link parameter is present. Ruslik_Zero 03:51, 13 September 2012 (UTC)
::::Lol, the system is not THAT smart, it doesn't actually look at the target file, just assumes that when you use link, you want to link to something different than the default, which is the image. —TheDJ (talk • contribs) 07:55, 13 September 2012 (UTC)
:::::
::::::There appears to be bug report for this. Ruslik_Zero 06:48, 13 September 2012 (UTC)
:::::::These behavior is inconsistent. And currently the 'image' class is just useless. It is impossible to apply any consistent style to all anchor tags with images inside. Ruslik_Zero 10:09, 13 September 2012 (UTC)
Template editing
Hi, is there any good tool available for editing templates. I was looking for one that either shows syntax or enables you to hi-light or hop between matching brackets. Keith D (talk) 23:03, 12 September 2012 (UTC)iki
:Gadget WikiEd highlights template syntax. Ruslik_Zero 04:12, 13 September 2012 (UTC)
::Also meta:User:Remember the dot/Syntax highlighter. —Remember the dot (talk) 05:06, 13 September 2012 (UTC)
:::I have installed {{code|1=
::::Thanks, the first 2 do not really do much for heavy bracketed templates. The third one looks interesting so I installed it and appears to help trying to get things balanced up again. Keith D (talk) 11:45, 13 September 2012 (UTC)
:::::Do come back if it doesn't work, I can write some manual lines. -DePiep (talk) 13:16, 13 September 2012 (UTC)
Release 1.20wmf11 re-deployed
Just a quick note that we re-deployed MediaWiki 1.20wmf11 (list of changes) today. This also includes an upgrade to jQuery 1.8.1 from 1.7.2 ([http://blog.jquery.com/2012/08/09/jquery-1-8-released/ release notes for 1.8.0]; [http://blog.jquery.com/2012/08/30/jquery-1-8-1-released/ release notes for 1.8.1]).--Eloquence* 01:53, 13 September 2012 (UTC)
:Could this have broken the timeline extension? See Wikipedia:Help desk#Timeline display issues. There's a timeline at User:John of Reading/X2; go there, click "Edit", make a trivial change, "Preview" - and nothing is displayed. -- John of Reading (talk) 07:19, 13 September 2012 (UTC)
:: Probably related, yes; I know Aaron and Tim have been working on moving the timeline generated images to the new Swift storage system. I've opened {{phab|42209}} in case they're not aware of the breakage.--Eloquence* 07:41, 13 September 2012 (UTC)
::: Should be fixed now.--Eloquence* 05:18, 14 September 2012 (UTC)
User:Mr.Z-man/closeAFD.js
It looks like something has broken User:Mr.Z-man/closeAFD.js (documentation) today, and I am guessing it is probably related to the upgrade of jQuery mentioned above. The dialogue that used to appear underneath the "edit" tab now appears in the very top left of the screen, so that the buttons are obscured by the Wikipedia logo. (So it's basically unusable.) Could someone who knows JavaScript take a look and try to figure out what's going on? Thanks — Mr. Stradivarius (have a chat) 09:56, 13 September 2012 (UTC)
:Oh, and this is on Vector. — Mr. Stradivarius (have a chat) 09:58, 13 September 2012 (UTC)
: I think this is the same issue as Wikipedia talk:WikiProject Articles for creation#unable to use WP:AFCH script and Wikipedia talk:WikiProject Articles for creation#unable to use WP:AFCH script#Moving the "reviewing" tray because both use User:Timotheus Canens/displaymessage.js. PleaseStand (talk) 10:34, 13 September 2012 (UTC)
: I think if Timotheus Canens or another admin deletes both occurrences of .parent()
from User:Timotheus Canens/displaymessage.js, the script will work how it should again. I think gerrit:19008 is what broke the script. PleaseStand (talk) 10:52, 13 September 2012 (UTC)
::Ok, I've done the edit, and it looks like it works. Thanks! — Mr. Stradivarius (have a chat) 10:56, 13 September 2012 (UTC)
Sorting of CAT:ALLPROD
The sorting of page CAT:ALLPROD seems to be broken when I view it. It should be sorted alphabetically, but the entries for individual numbers which I assume should only list articles whose name starts with the appropriate number, include a random selection of entries. Example: under heading "0" I see 1-2-3 (game), 2008 England national rugby league team season, 2012 Luke Pomersbach molesting charges, Adriano Moké, Alen Halilović... Is this broken? --Colapeninsula (talk) 12:37, 13 September 2012 (UTC)
:The sorting is deliberate. Template:Proposed deletion/dated contains
. The code produces a leading digit for sorting. The digit should be the last in the day of the month of the nomination. This means editors going through the category can often see how long ago a page was nominated (31 or 1 may cause problems). Post to Template talk:Proposed deletion if you want to suggest a change. PrimeHunter (talk) 13:56, 13 September 2012 (UTC)
Broken image with a file now on commons
{{tracked|39615}}
The image :File:Polygon types.svg has been moved to commons commons:File:Polygon types.svg and the file deleted here. Rather than get the normal redirection to the commons page you get (e.g. :File:Assorted polygons.svg) I instead get "View or restore 11 deleted edits?" with a broken image. The image also appears broken in the article Polygon. Is there a way to fix this so we don't get a broken image in the article?--Salix (talk): 13:57, 13 September 2012 (UTC)
:This is an issue caused by the switch to the new file storage backend. Waiting is all that is required (of users) for this to become fixed. —TheDJ (talk • contribs) 14:12, 13 September 2012 (UTC)
[[Wikipedia:Metadata]] needs help
I think this is a very important page, yet it is just a list. Could somebody try to add some prose to it, and generally make it more presentable? --Piotr Konieczny aka Prokonsul Piotrus| reply here 21:37, 13 September 2012 (UTC)
Protection log entries are obscured when a page is moved
I just noticed in answering a help desk post here that when a protected page is moved and the protection is moved with it, the protection log entry for the new title doesn't show the form of protection, only that the protection was moved. This means that to see form of the protection, you have to look at the log entry for the prior title.
Wouldn't it be cleaner if the log entry said something like "moved protection settings ([move=sysop] (indefinite)) from "Title 1" to "Title 2"..."? (addition in green). I have little experience with Bugzilla searches (to see if this already has been explored) or posting there so I thought I'd lay this out here for comment.--Fuhghettaboutit (talk) 21:48, 13 September 2012 (UTC)
:bugzilla:38123 is closely related. PrimeHunter (talk) 22:03, 13 September 2012 (UTC)
::Thanks. I have posted there and voted.--Fuhghettaboutit (talk) 23:16, 13 September 2012 (UTC)
restricted page needs redirect.
http://en.wikipedia.org/wiki/Pretty_lights has been deleted, and is locked for editing. It should redirect to http://en.wikipedia.org/wiki/Pretty_Lights. I can't add a redirect. --naught101 (talk) 00:55, 14 September 2012 (UTC)
:Boy, was I surprised to see that I was the one who originally deleted that page. Anyway, redirect created. Someguy1221 (talk) 01:28, 14 September 2012 (UTC)
Text wrap for pie chart template
I'd like to use the {{tlx|Pie chart}} template in an article, but it doesn't seem to allow text to wrap around it. Any suggestions? CanadianJudoka (talk) 05:02, 10 September 2012 (UTC)
:Why do you think it doesn't allow text to wrap around it? Ruslik_Zero 07:57, 10 September 2012 (UTC)
:Maybe you're viewing it on a browser where it's not rendering right, like mobles? Honestly I would upload a cropped screenshot or make an .svg file. That really doesn't look ready for prime time. —Cupco 08:38, 10 September 2012 (UTC)
::Ruslik: I'm using the latest version of Chrome on Windows 7, and the template doesn't allow text to wrap around it no matter where I put it. Cupco: I did take a screen shot, but it seems like there should be a better way to do this on Wikipedia. How would you suggest that I make an SVG file? CanadianJudoka (talk) 14:47, 10 September 2012 (UTC)
:::SVG files may be created using software such as Inkscape, or a plain text editor. [http://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands Here] is an example from [http://www.w3.org/TR/SVG11/ Scalable Vector Graphics (SVG) 1.1 (Second Edition) W3C Recommendation 16 August 2011], which shows how a two-slice pie chart may be constructed in SVG. --Redrose64 (talk) 15:21, 10 September 2012 (UTC)
::::Thanks. I really wish that there was a way to do this by just entering values and having the software draw a pie chart for me, which is why I like the idea of the pie chart template. Manually drawing one in Inkscape or taking the time to figure out the right set of instructions to draw one in SVG seems like a poor use of time. CanadianJudoka (talk) 15:46, 10 September 2012 (UTC)
- Put pie in wikitable align=right: Just use the standard alignment technique, to box any item, by putting the pie chart in a wikitable, higher on the page, while adding the wrap-around text below the wikitable. Example:
align=right
| valign=top | {{Pie chart | thumb = | caption = Sizes chart |other = | label1 = BIG | value1 = 55 | color1 = blue | label2 = MEDIUM | value2 = 33 | color2 = red | label3 = SMALL | value3 = 12 | color3 = orange }} |
This text should appear
to the left of the pie chart
and wrap
down the page
while the pie chart remains
at the right-side.
: See page Template:Pie_chart/sandbox, which has the above example, to run it on your browser. Remember anything can be boxed within the wikitable tokens "
align=right" and " |
:: When I wrote the template, I included a thumb
parameter for left- and right- aligning the pie chart, which the {{oldid|User talk:PleaseStand#Pie chart template|511958306|user says works}}. Unless there is something else to align along with the chart, I see no need to wrap a table around it. PleaseStand (talk) 14:50, 12 September 2012 (UTC)
:::Yes, it turns out that the problem was that I had left the 'thumb' parameter blank. Doing this defaults the chart to the left side of the screen and does not allow text wrapping. Setting the parameter to either 'left' or 'right' works fine, however. Thanks for the help. CanadianJudoka (talk) 06:53, 14 September 2012 (UTC)
Two questions
I have two, entirely unrelated questions. I thought I'd ask them together, so I didn't have to open two threads.
- I'm sure this has been asked before, but I couldn't find the JavaScript to do it—how do you add a sidebar link (in this case I want it to be so that I can view all the logs for any given page)?
- When I rollback an edit on a page, the page isn't added to my watchlist, despite having "Add pages and files I edit to my watchlist" enabled in my preferences. Why is this happening?
If anyone can answer either of these questions, that would be great. Thanks, David1217 What I've done 01:24, 14 September 2012 (UTC)
:User:Gadget850/Help:Sidebar is a work in progress. However, if you enable {{myprefs|8|Add page and user options to drop-down menus on the toolbar}}, then you get a Page tab at the top which includes page logs. ---— Gadget850 (Ed) talk 01:32, 14 September 2012 (UTC)
::I like that gadget, but I wish it didn't make the history tab go away. Is there any way to change that? David1217 What I've done 02:16, 14 September 2012 (UTC)
::History is a dropdown under the Page tab. ---— Gadget850 (Ed) talk 16:03, 14 September 2012 (UTC)
:::I know, but I want the history tab to be on its own, like it is without the gadget. David1217 What I've done 23:54, 14 September 2012 (UTC)
::::Never mind, I figured out how to do that (I should have looked at the script description page!) David1217 What I've done 00:11, 15 September 2012 (UTC)
- You can use the addPortletLink function to add links to the sidebar and other menus.
- Rollback bypasses normal editing procedures, including adding anything to your watchlist; if you want to add a page to your watchlist, you'll need to either edit it a different way (such as twinkle's rollback or another script serving that purpose) or manually watch it. -— Isarra ༆ 05:31, 14 September 2012 (UTC)
::Thank you, Isarra, for the link and the explanation. David1217 What I've done 23:54, 14 September 2012 (UTC)
2001:0:0:0:0:0:0:1
Is User:2001:0:0:0:0:0:0:1 a real user, or is it an IPv6 address like me? It appears when I tell Special:Listusers to search starting at 2001:18E8:2:1020:9A4:966F:1021:7F4A, complete with a log entry, but when I look at contributions I get the normal "Please note: these are the contributions from a user editing from an IPv6 address" warning, and the "log" link accessible from that page has no log entries at all. 2001:18E8:2:1020:9A4:966F:1021:7F4A (talk) 16:28, 14 September 2012 (UTC)
:It's a valid IPv6 address. That said, no one has yet edited using that address, as evidenced by the empty log. elektrikSHOOS (talk) 16:48, 14 September 2012 (UTC)
:There is a bit of strangeness there. The [http://en.wikipedia.org/w/index.php?title=Special%3AListUsers&username=2001%3A18E8%3A2%3A1020%3A9A4%3A966F%3A1021%3A7F4A&group=&limit=50 ListUsers] page shows a user named "User:2001::1" created in 2006, long before that syntax meant anything special; but when you try to follow that link, the latest software thinks it has to be clever and takes you to User:2001:0:0:0:0:0:0:1 instead. -- John of Reading (talk) 16:57, 14 September 2012 (UTC)
::That account must be renamed, as it was likely created before IPv6 was recognized by MediaWiki as valid IP addresses.--Jasper Deng (talk) 01:16, 15 September 2012 (UTC)
:::I think it would take a developer to do that. Every attempt to use administrative tools on that account sends me to 2001:0:0:0:0:0:0:0:1. I assume the rename function would face the same issues. So in fact, what has been pointed out here is likely an unblockable account. Did no one screen for IPv6-like account names before it was implemented on Wikipedia? Someguy1221 (talk) 01:32, 15 September 2012 (UTC)
::::No; for now it may be possible to stop the user from editing using an edit filter for such usernames. --Jasper Deng (talk) 01:41, 15 September 2012 (UTC)
:::::I don't think the user can even log in. I get "Login error You have not specified a valid user name" when I enter that name at login with a random password. PrimeHunter (talk) 01:53, 15 September 2012 (UTC)
Sync the time
How can I make the clock below be synchronized with GMT +8?
{{CURRENTDAYNAME}}{{CURRENTDAY}}{{CURRENTMONTHNAME}}{{CURRENTTIME}} PHT
TruPepitoMTalk To Me 00:29, 15 September 2012 (UTC)
:Try this with
{{#time: l|+8 hours}}{{#time: j|+8 hours}}{{#time: F|+8 hours}}{{#time: H:i|+8 hours}} PHT