This page contains discussions that have been archived from Village pump (technical). Please do not edit the contents of this page. If you wish to revive any of these discussions, either start a new thread or use the talk page associated with that topic.
< Older discussions · Archives: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN, AO, AP, AQ, AR, AS, AT, AU, AV, AW, AX · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212
A previous discussion here inspired me to experiment with Javascript. I'd like to toggle the annotations of bulleted list items, without having to add wikicode to them in the page they are on (to avoid making the markup on those pages harder to read).
So that:
Gets presented as:
The experiments explore how aspects of hiding works. I've described my experiments below, with some questions:
My first experiment was to search and replace endashes:
(Note: the N in &Ndash; is capitalized because I didn't know how to escape the actual special character code so it doesn't render as an endash. Which it does even if you use "nowiki".)
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/&Ndash;/g,'');
content.innerHTML = whattohide;
This didn't have any affect. My guess was that it didn't see the code "&Ndash;" on the screen, and therefore it couldn't have been accessing the wikicode.
Question 1: What do I need to put in the above script to have it access the wikicode before the page is rendered?
Next, I tried this:
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/Chess/g,'');
content.innerHTML = whattohide;
Which stripped out all occurrences of the word "Chess" when I viewed the Outline of chess. But something unexpected happened. When I went to edit the script for the next experiment, the script stripped "Chess" out of itself!
Question 2: Why did it strip out "Chess" and not "&Ndash;" ?
I tried escaping the "&" and ";", with no effect.
Question 3: What is the difference between mw-content-text and mw-body-content?
Question 4: What is the sequence of events from the time the script is accessed and the page is displayed on the screen for the user to read?
Question 5: Where in that process can a script access the material for modification?
Question 6: Is there more than one opportunity in the process to do this, and if so, what are they?
Out of curiosity, I tried stripping out all spaces, like this:
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/ /g,'');
content.innerHTML = whattohide;
Which made all pages practically unreadable, and blasted the edit window out of existence, so that I couldn't edit the script to undo the configuration. Fortunately, my connection was slow, and I was able to click on x (stop loading page) after the regular edit page was displayed but before the script was executed. Disaster averted.
That was a close call. I'll be using auxiliary accounts to test scripts in the future.
Question 7: Can admins delete a user's js pages? (For example, to undo an account corruption).
Question 8: How do you affect just the article content and not the edit box and surrounding text?
Next I tried to use regex strings anchored to the bullets in the list items, but I couldn't find a way to select them using the cursor to copy and paste them into the script.
Question 9: How can regex be used to find the bullets in list items?
Nor could I find a way to anchor the regex on the "<li>" string in the html.
Question 10: How could the script access the HTML so it can regex for "<li>"?
I'm hoping you could shed some light upon the mysteries confronting a Javascript newb.
I look forward to your replies. Any and all feedback is welcome. The Transhumanist 15:28, 26 October 2016 (UTC)
&Ndash;
, you should look for –
, because that's what it is in the end result of the page. So, your regex should look like content.innerHTML.replace(/–/g,);
instead of content.innerHTML.replace(/&Ndash;/g,
);
.$(document).ready(function(){
//your code here
});
li
selector. The way we actually call it through jQuery is like this: $("li")
. That will give us an object that contains pointers to all the li elements on the page.$("#mw-content-text li")
. What that means is: "give me all of the li elements that are contained within the element with the id "mw-content-text" ". (The "#" is what tells it that we're looking for an id.) And there's more you can do with it, too.li
selector: How would that fit in to the code below?$(document).ready(function(){
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/–/g,'');
content.innerHTML = whattohide;
});
I'm gonna answer this, because it's always good when people are eager to learn. I want to start by talk about something else that is much more important (and a bit related to question 4). HTML is a markup language in which we write webpages. It is important to realize however, that a browser basically only looks at HTML once, when it loads the page. After that, the browser will turn the HTML into a Document Object Model (DOM), a standardized method to represent a webpage using a definition of objects. For instance, when you write in HTML the <table> element, the browser reads that into HTMLTableElement. Those DOM elements are the webpage, and for this purpose, you can assume that the original HTML document no longer exists after this interpretation by the browser has been made. This model is also what you see, if you open the browser's web inspector and go to the 'elements' tab. If you write Javascript to make changes, then that model is what you change (you can move things around). Any event handlers like button click listeners and what not, also attach to this model. When you apply CSS using selectors, the selectors match the DOM structure (a topic in itself btw).
Now the questions:
if( mw.config.get( 'wgPageName' ) !== 'User:The_Transhumanist/sandbox' ) {
return;
}
Hope that helps a bit. Just keep experimenting, it's the best way to learn. Also, try using a live HTML editor like plunker to improve your HTML and JS basics. You can't use all the MediaWiki/Wikipedia specific stuff there, but it is great for improving your basic skills. — TheDJ ( talk • contribs) 19:27, 26 October 2016 (UTC)
$(document).ready(function(){
var content = document.getElementById('mw-content-text');
var whattohide = content.replace(/–/g,'');
content = whattohide;
});
Here's something like what I was thinking of:
//This selector grabs all of the <li> elements that are within #mw-content-text, and then does something for each of them
$("#mw-content-text li").each( function (ind, el)
{
//first, grab the text from the current li element; we want only the top level text, so filter out all of the other stuff.
var currentText = $(el).contents().filter(function(){return this.nodeType === 3; });
//Don't bother processing if there's nothing to process
if(currentText.text().length > 0)
{
//replace the character
var newText = currentText.text().replace(/–/g,'');
//reinsert the updated string back into the DOM
currentText.replaceWith(newText);
}
});
Again, this is going to be pretty messy; there's nothing distinguishing the lis you want to change from the lis you don't. But that's more like what you'd need to do (though TheDJ will probably have a better yet way of doing it). Writ Keeper ⚇ ♔ 21:44, 26 October 2016 (UTC)
(/ – .*?$/g,'')
The Transhumanist 22:48, 26 October 2016 (UTC)
(/ – .*?\n/g,'\n')
. --
The Voidwalker
Whispers 23:33, 26 October 2016 (UTC)
[[Knight (chess)#Movement|Moving a knight]] <span class="annotation">– knights move two squares horizontally and one square vertically, or two squares vertically and one square horizontally, jumping directly to the destination while ignoring intervening spaces.</span>
. That way, we can access the elements we want to modify directly (through $(".annotation")
in this example), rather than having to traverse the entire body of the page and possibly get it wrong. Then, it's as simple as hiding them all (perhaps through $(".annotation").css("display","none")
, which would keep the information in the page while hiding it from the viewer, which would let us then call it back if we want to via $(".annotation").css("display", "initial")
).
Writ Keeper
⚇
♔ 22:59, 26 October 2016 (UTC)
//first, grab the text from the current li element; we want only the top level text, so filter out all of the other stuff.
var currentText = $(el).contents().filter(function(){return this.nodeType === 3; });
Okay, so. Say we have the following list:
<ul>
<li class="note1">
Testing text
</li>
<li class="note2">
<a href="http://www.example.com">
A link
</a>
more text
</li>
</ul>
This would look something like:
Now, say we want to retrieve the text from these elements, while ignoring the links. (Which is of course what we want to do in your above example.) The usual way of retrieving the plain text within an element is through the text()
function. So, for the first li element (note1), we can retrieve the text simply by calling $(".note1").text()
. This will return us Testing text
, and we can continue to use the same method to modify the text too. All well and good. Things change, though, for note2. We might expect $(".note2").text()
to return more text
, since that's the plain text contained within the note2 element. But it doesn't: it actually returns A link more text
. It included the plain text that's within the <a>
element. We didn't want that, because in the examples you gave, the text within the link was what we wanted to keep unchanged. So what that filter line does is it goes through and takes anything that's not in and of itself plain text--in this case, the <a>
element--and takes it out of consideration, so that we don't even try to modify its text.
Writ Keeper
⚇
♔ 23:54, 26 October 2016 (UTC)
became this:
@
Writ Keeper: Out of curiosity, how do you grab the text from the current li element without filtering it?
var currentText = what goes here?;
/*
Test script by TheDJ
For processing list items:
To hide annotations
*/
if ( mw.config.get('wgAction') === 'view' ) {
mw.hook( 'wikipage.content').add( function ($contents ) {
var listItems = $contents.find( 'li:not([class]):not([id])' );
listItems.each( function( index, li ) {
var nodes = $(li).contents();
var marker = false;
var ul = false;
for ( var i = 0; i < nodes.length; i++ ) {
if ( nodesi].nodeType === Node.TEXT_NODE &&
nodesi].textContent.indexOf(' – ') >= 0)
{
marker = i;
break;
}
}
if( nodesnodes.length-1].tagName === "UL" ) {
ul = nodesnodes.length-1];
}
if( marker > 0 ) {
var wrapper = $('<span>').addClass('myscript-wrapper');
wrapper.append(nodes.slice(marker, ul ? nodes.length-1 : nodes.length));
$(li).append(wrapper);
if ( ul ) {
$(li).append( ul );
}
}
});
$( '.myscript-wrapper' ).hide();
});
}
// //////////////////////////////////////////////////////////////////////////
/* Walk through of above code (with extensive remarks)
// Run only on view (not edit) pages. See [[mw:Manual:Interface/JavaScript#Page-specific]]
if ( mw.config.get('wgAction') === 'view' ) {
// Attach a function to be run once the 'wikipage.content' part of a page is available
mw.hook( 'wikipage.content').add( function ($contents ) {
// Like document.ready, this will run, once that part of the page is
// ready/updated.
// $contents is a jQuery list of DOM elements, that has just become available.
// See also: http://api.jquery.com/jquery/
// Get all the <li> elements from $contents, but skip those with a class or ID,
// because they might have special functionality that you don't want to break.
// We generally avoid things like this, because they will break easily.
// Wikipedia is so diverse and big, that to do anything,
// your content really needs a class or ID.
var listItems = $contents.find( 'li:not([class]):not([id])' );
// Iterate over each of the <li> items
listItems.each( function( index, li ) {
// This part is complicated, because we need to look at text
// and text is not structured. Get the li item, and wrap it with jquery
// Then get all the direct children nodes
var nodes = $(li).contents();
var marker = false;
var ul = false;
for ( var i = 0; i < nodes.length; i++ ) {
// We need to find text nodes, that have our - marker.
if ( nodes[i].nodeType === Node.TEXT_NODE &&
nodes[i].textContent.indexOf(' – ') >= 0)
{
// We found the node which contains our marker
marker = i;
break;
}
}
// Check to see if the last node is an UL, so we don't break nesting
if( nodes[nodes.length-1].tagName === "UL" ) {
ul = nodes[nodes.length-1];
}
// only useful if it's the second element or later
if( marker > 0 ) {
// Use jquery to create a new span
// We use span, because it is an inline element.
// We give it a class so we can find it back later
// This element is already part of the document, but it is not attached to anything visible yet.
var wrapper = $('<span>').addClass('myscript-wrapper');
// Move the node with our marker, and all nodes that follow it into this new wrapper.
// This removes them from the original <li>
wrapper.append(nodes.slice(marker, ul ? nodes.length-1 : nodes.length));
// Append the wrapper to our original list item to make the wrapper visible.
$(li).append(wrapper);
if ( ul ) {
$(li).append( ul );
}
}
});
// Now we have structure, and we can apply our manipulations and functionality
// We simply hide all our elements
$( '.myscript-wrapper' ).hide();
// You would now add controls to show them etc. etc.
});
}
*/
/* Further notes (tutorial)
var i = 0;
i++;
// This runs immediately.
// It is safe to do things like this, UNLESS they need to change something in the page.
// You CAN use it to do data processing, start requests to the api etc.
// An anonymous function block wrapped inside $()
$( function() {
// do stuff to change the page
});
// $() is an alias for jQuery(), the main function of the jQuery library,
// which is always available for script writers on Wikipedia
// When used like this, it is a shortcut for $( document ).ready(), and it will
// execute your anonymous function as soon as the page is ready to be
// manipulated by JS, or immediately if it is ready now.
// See also: http://api.jquery.com/jquery/#jQuery3
// Attach a function to be run once the 'wikipage.content' part of a page is available
mw.hook( 'wikipage.content').add( function ($content ) {
// Like document.ready, this will run once that part of the page is
// ready/updated.
// $content is a jQuery list of DOM elements, that has just become available.
// See also: http://api.jquery.com/jquery/
});
// This is used by many scripts in MediaWiki, because it also works after
// saving with Visual Editor, or when previewing with Live preview tools etc.
// There are several such named hooks like:
// wikipage.diff, wikipage.editform, wikipage.categories
// mw, an alias for mediaWiki, is another javascript libary that is always
// available to MediaWiki and Wikipedia scripters.
// See also: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw
// For the hook specific part of this library, which we use above, see:
// https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.hook
// Note that large parts of this mw library are not ready for usage by default,
// and you might have to load some parts using mw.loader, before they can be used.
// For loading dependencies and guaranteeing order between dependencies,
// use ResourceLoader.
// See also: https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Client-side_.28dynamically.29
*/
The script is a damn good start. Thank you!
So I installed it, by including the following line on my vector.js page:
importScript("User:The Transhumanist/anno.js");
Then I went to Outline of chess and hit "x" (stop loading page) before the script was run to process the page. That gave me an unchanged base page for comparison.
Then I loaded the Outline of chess in another window, letting the script do its thing.
Then I switched back and forth between the two verions of the outline, looking for differences.
The script missed the annotations of list items that don't have bullets (such as the top-level list items in outlines). And it missed annotations in which the marker (" – ") included a no-break space. It also missed hanging en dashes (en dashes in place waiting for annotations to be added after them. They have a preceding space but no succeeding space, which is why the script did not find them).
Functionality for hiding the above should be fairly easy to code.
But, the script was hiding something it shouldn't have: all but the topmost level of bullet items. Bullet items that were children of a bullet item disappeared. I'm not sure yet what is causing that, but I'm looking into it. It'll be slow, because I'm learning Javascript as I go. If you discover what's causing it before I do, please let me know!
I couldn't figure out why it was doing that, so I switched to trying to adding a toggle.
@
TheDJ: I spent several hours trying to adapt code from
User:PleaseStand/hide-vector-sidebar.js, modifying it and pasting it in, in place of the line $( '.myscript-wrapper' ).hide();
. So far, I haven't been able to get it to work. Check out the attempt at
https://en.wikipedia.org/?title=User:The_Transhumanist/anno.js&oldid=746595354 I have no idea why it didn't work.
The Transhumanist 11:35, 28 October 2016 (UTC)
Is there anything wrong with this markup?
Example text.<ref name="number1" /><ref name="number2" />{{efn|name=efn1}}{{efn|name=efn2}} ; Endnotes {{Notelist|refs= {{efn |name=efn1 | Explanatory footnote 1.<ref name="number1" /><ref name="number2" /> }} {{efn |name=efn2 | Explanatory footnote 2.<ref name="number1" /><ref name="number2" /> }} }} ; Footnotes {{reflist|refs= <ref name="number1">Footnote 1</ref> <ref name="number2">Footnote 2</ref> }}
-- Namoroka ( talk) 14:17, 27 October 2016 (UTC)
Example text.<ref name="number1" /><ref name="number2" />{{efn|Explanatory footnote 1.<ref name="number1" /><ref name="number2" />}}{{efn|Explanatory footnote 2.<ref name="number1" /><ref name="number2" />}} ; Endnotes {{Notelist}} ; Footnotes {{reflist|refs= <ref name="number1">Footnote 1</ref> <ref name="number2">Footnote 2</ref> }}
There are two issues with the first form. Firstly (as is an ancient problem in computer programming language parsing) the parser doesn't do enough passes to correctly parse it all. It does enough that references in bare wikitext can reference items defined in lists, but not enough that references in one list can themselves reference items defined through a list. So the linkage from within one list to within another list fails.
Secondly, you get a rather confusing error message. And more confusingly, just the one of them, not two. This is because the processor (after the parser) gives up after just one message (later messages are rarely helpful).
The solution isn't a solution, it's a work-around. It is to define the footnotes in-line, with embedded citations too if needed. This isn't a problem - unlike references, footnotes are very rarely shared, so there's little benefit to defining them in a list. Andy Dingley ( talk) 20:54, 28 October 2016 (UTC)
I've been thinking more lately about how to better manage the watchlist. Until we get expiring watchlist entries, it would be nice if I could take my list of watchlist entries and sort by 1) last edit date; 2) last vandalism date; 3) how many are watching (if over 30). These sorts could help me make up my mind about pages to no longer watch. My watchlist isn't exactly out of control at this point, but I'd like to have better control to prevent that, without having to go through all my entries one-by-one and determining these aspects. Are there any scripts/gadgets that can assist me here? Stevie is the man! Talk • Work 16:25, 24 October 2016 (UTC)
Note that this doesn't have to be a script/gadget that works within the watchlist itself. I can easily generate a list of pages that happen to be on my watchlist. So, basically, what I need is a tool that can sort pages by the above criteria. Stevie is the man! Talk • Work 16:49, 25 October 2016 (UTC)
1)
use enwiki_p; select page_title, rev_timestamp from revision join page on page_latest = rev_id and page_title in ('article_1', 'article_2') order by rev_timestamp
2)
use enwiki_p; select concat("*https://ores.wmflabs.org/v2/scores/enwiki/damaging/", page_latest, "/") from page where page_title in ('article_1', 'article_2')
"Article 1" and "Article 2" are examples of entries in your watchlist. Expand that list as needed. Note that any spaces need to be replaced by underscores. You can run these queries on quarry.wmflabs.org.-- Snaevar ( talk) 19:04, 29 October 2016 (UTC)
About half a year ago, I noticed that one of the pages on my watchlist about the One pound (British coin) had been vandalised by somebody changing the mintage numbers around. Looking through the histories of the other pages, I found similar activity, so they've all been on my watchlist so I can check on them every now and then. Below is a sample of the vandal's edits:
I assume these are all the same vandal with an ever-changing IPv6 address, but I'm not sure how to deal with this, because:
EditorInTheRye ( talk) 19:56, 29 October 2016 (UTC)
blockcalc output
| |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sorted 12 IPv6 addresses:
|
2a02:c7d:bf3c:6f00::/64
) and a contribs link --
samtar
talk or
stalk 20:30, 29 October 2016 (UTC)
Why are standard external link icons not displayed in preview of references on a mobile device? Instead, there is a space between a last character of a title and a dot that separates citation units, for example "Title . Publisher.".
One more thing I've noticed is that links that should be red are blue in preview of references on a mobile device (at least mine). -- Obsuser ( talk) 04:21, 25 October 2016 (UTC)
Why pie charts ({{ pie chart}}) on mobile devices have some vertical line at their right side (next to the cirle itself)? That line is colored in colors used by pie; segments of this line are made as if one drew lines from the center of the pie towards right and where those lines intersect with the line I'm asking about (vertical one, it is thin) – colors change at that place. Was this intentional; problably not, but if it was what is its purpose? -- Obsuser ( talk) 04:21, 25 October 2016 (UTC)
Hello. I am using python replace.py -cat:Β΄_κατηγορία_πετοσφαίρισης_ανδρών_Κύπρου "[[Εθνικός Λατσιών|" "[[Εθνικός Λατσιών (πετοσφαίριση ανδρών)|" -always -pt:0
Greek words. Is it possible to have 2 or more categories to search in to? In parameter -cat: . Xaris333 ( talk) 21:14, 28 October 2016 (UTC)
Its ok. Solved. Xaris333 ( talk) 15:41, 30 October 2016 (UTC)
The suffix "the free encyclopedia" was dropped from the title tag of all articles a couple of weeks ago, per this pump proposal. A/B testing was touched on before the discussion was closed - is there any meaningful way to measure whether inbound Wikipedia traffic might have been affected (specifically on a country-by-country basis) as a result of the title change? -- McGeddon ( talk) 21:50, 30 October 2016 (UTC)
I noticed that if double quotes are used in {{
citation needed}}, the reason ends up displaying malformed (only the first word), like this:
citation needed Escaping it as "
fixes it,
citation needed is it possible to do that on the template's side? — Preceding
unsigned comment added by
Nyuszika7H (
talk •
contribs) 21:51, 30 October 2016 (UTC)
{{citation needed/sandbox|reason=The "quick" brown fox jumps over the "lazy" dog.}}
→
citation needed -
Evad37 [
talk 02:47, 31 October 2016 (UTC)I'm not sure if this is something that goes to Phabricator or not, so I'll post here first. I posted a discretionary sanctions alert using {{ alert}} (substituted). Typically when you use this template it alerts you to check this logs for past notifications. Instead I got a jumble of error code instead of the alert. The text of the error is below:
Error code text; collapsed for readability |
---|
The following discussion has been closed. Please do not modify it. |
Error: {| class="messagebox plainlinks" style="width: 100%; background: #ffdbdb; border: 2px dotted black; padding: 0.5em;" |style="padding-right: 1em; padding-left: 0.5em;"| <img alt="" src="https://upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/50px-Stop_hand_nuvola.svg.png" width="50" height="50" srcset="https://upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/75px-Stop_hand_nuvola.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/100px-Stop_hand_nuvola.svg.png 2x" data-file-width="240" data-file-height="240" /> <img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/50px-Balance_icon.svg.png" width="50" height="41" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/75px-Balance_icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/100px-Balance_icon.svg.png 2x" data-file-width="256" data-file-height="208" /> |A system filter has identified you are trying to <a href="/info/en/?search=Template:Ds/alert" title="Template:Ds/alert">alert</a> <a href="/info/en/?search=User:EvergreenFir" title="User:EvergreenFir">EvergreenFir</a> (<a href="/info/en/?search=Special:Contributions/EvergreenFir" title="Special:Contributions/EvergreenFir">contribs</a> · <a href="/info/en/?search=Special:Log/EvergreenFir" title="Special:Log/EvergreenFir">logs</a> · <a class="external text" href="https://en.wikipedia.org/?title=Special%3ALog%2Fblock&page=User%3AEvergreenFir">block log</a>) to the existence of <a href="/info/en/?search=Wikipedia:Arbitration_Committee/Discretionary_sanctions" title="Wikipedia:Arbitration Committee/Discretionary sanctions">arbitration discretionary sanctions</a>. Special rules govern alerts. You must not duplicate an alert given in the past year. Please now check that this user has not already been alerted: Search logs: <a class="external text" href="https://en.wikipedia.org/?title=User_talk:EvergreenFir&action=history&tagfilter=discretionary+sanctions+alert">in user talk history</a> • <a class="external text" href="https://en.wikipedia.org/?title=Special:AbuseLog&wpSearchFilter=602&wpSearchTitle=User+talk%3AEvergreenFir">in system log</a>. Search elsewhere (optional): <a class="external text" href="https://en.wikipedia.org/?title=Special:Search&search=EvergreenFir&prefix=Wikipedia%3AArbitration%2FRequests%2FEnforcement&fulltext=Search+archives&fulltext=Search">in AE</a> • <a class="external text" href="https://tools.wmflabs.org/sigma/usersearch.py?name=EvergreenFir&page=Wikipedia%3AArbitration%2FRequests%2FEnforcement&server=enwiki&max=100">in AE contribs</a>. Do you wish to alert this user? If so, click 'Save page' again. If not, click 'Cancel'. <a href="/info/en/?search=MediaWiki:Abusefilter-warning-DS" title="MediaWiki:Abusefilter-warning-DS">v</a><a href="/info/en/?search=MediaWiki_talk:Abusefilter-warning-DS" class="mw-redirect" title="MediaWiki talk:Abusefilter-warning-DS">t</a><a class="external text" href="https://en.wikipedia.org/?title=MediaWiki:Abusefilter-warning-DS&action=edit">e</a> Please <a href="/info/en/?search=Template_talk:Ds" title="Template talk:Ds">submit a false positives report</a> if you received this message in error. |} |
Please ping me if this is something that should be reported somewhere else. Thank you! EvergreenFir (talk) 21:58, 27 October 2016 (UTC)
{{subst:alert|ap}} ~~~~
. It's caught by
Special:AbuseFilter/602 which deliberately prevents the save and apparently tries to display
MediaWiki:Abusefilter-warning-DS, but the user sees the above code with visible html. It includes the text: "Do you wish to alert this user? If so, click 'Save page' again. If not, click 'Cancel'." If you click Save again then the save goes through like a normal edit.
PrimeHunter (
talk) 00:38, 28 October 2016 (UTC)
This was reported to Phabricator by Matěj Suchánek a few moments ago. -- Martin Urbanec ( talk) 08:47, 29 October 2016 (UTC)
I am probably at the wrong place...
What just happened to me: I tried to click on one of the "hist" links in my Watchlist, when the browser finished updating the page and inserted the button "Mark all pages as visited" directly under my mouse. I had found the information I accidentally deleted pretty helpful, so I am sure I did not want this to happen.
I think an "Are you sure?" question at this point would be vastly more useful than the unnecessary "Are you sure" question when you add or remove articles from your watchlist. After all, that one is reversible, and I have difficulties imagining a user saying "oh no! I accidentally added this article to my watchlist!". Maybe both questions should have a checkbox in the Preferences, so I could activate the one I want and deactivate the one I don't want? Just an idea. -- Hob Gadling ( talk) 19:38, 30 October 2016 (UTC)
#mw-watchlist-resetbutton {display: none;}
importScript('User:NQ/WatchlistResetConfirm.js');
to your
common.js, it should provide you with a confirmation prompt. -
NQ
(talk) 21:34, 30 October 2016 (UTC)
On an older mac with 10.6.8, and firefox 48, when I re-set preferences to include the 'D' setting to see Data edits - it was great!
But then when the bots started warming up, my watchlist flooded... so tried reverting (disabling in preferences) but it looks like it doesnt want to revert to no "d" - I still keep geting them showing on watchlist. I am on older equipment which support older things which might not want to do things, but curious whether which side this is - mine or the other, so to speak.
Also, sometimes when I am trying to see what is happening the 'save' button on the bottom of the page is not 'live' - maybe this relatesdirectly to the issue. Any clues as to the possible issues would be appreciated, thanks JarrahTree 10:52, 31 October 2016 (UTC)
Thank you both! fixed - thanks again, embarrassing :) 11:48, 31 October 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Changes this week
Future changes
Miscellaneous
Tech news prepared by tech ambassadors and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
16:18, 31 October 2016 (UTC)
moved to
WT:DYK
|
---|
This problem has existed for a few months on Template talk:Did you know. Once you get down to the newest subsection dates, the templates don't transclude very well. We were told back in September that the problem was that page is exceeding Template limits Post expand include size. At that time, we had a large special occasion holding area for various special events. The holding area has very little in it now, and the number of nominations we have are otherwise a lot less. The problem is worse than ever. Regardless of what is causing this, can it be fixed? As the internet expands, so does the size of everything programmed into it, and DYK won't be the only ones this happens to. How do we fix it for the future? — Maile ( talk) 21:52, 30 October 2016 (UTC)
|
So I was curious the other day as to whether or not the system would allow creation of usernames with emoji, and it turns out it does (but only when you click the checkmark to bypass anti-spoofing features). Now that I'm stuck with User:🌪, I kinda want to use it as my main alternate account, but I hesitate because I know emoji show up differently across different platforms and I'm unsure of how they would work technically with the MediaWiki software, gadgets, etc. Is there any policy or technical reason that I shouldn't use 🌪 as my alternate account, or would I be in the clear to go ahead and do that? Ks0stm ( T• C• G• E) 00:36, 31 October 2016 (UTC)
Hi, yesterday I created a new article, but overnight, my computer updated and restarted. I was logged in when I created it, but now I can't find it anywhere! HELP! It was a lot of work! — Preceding unsigned comment added by Ophelia550 ( talk • contribs) 17:25, 1 November 2016 (UTC)
Hi - thanks for the reply. It's really odd. I worked for several hours on a new article, and I know I hit "save changes" dozens of times. It was previewing normally. I didn't move it yet, because I had to get going somewhere else. But this morning, I found that my computer (iMac, Chrome) had updated and restarted, and now I can't find any evidence at all of it. It's odd and frustrating.
Ophelia550 ( talk) 18:47, 1 November 2016 (UTC)ophelia550
Per this discussion, does anyone know why nothing appears on this page in mobile view? I presume it is caused by one of the templates used... Hawkeye7 ( talk) 00:51, 1 November 2016 (UTC)
metadata
class, which in mobile view has the declaration display:none;
- there's plenty on this matter in the VPT archives. --
Redrose64 (
talk) 02:36, 1 November 2016 (UTC)
metadata
class by looking at the first two lines on
this page, and clicking the link. We could change the rule - this is what it presently looks like: .content .tmbox,
.content .ambox,
.content #coordinates,
.content .navbox,
.content .vertical-navbox,
.content .topicon,
.content .metadata {
display: none !important;
}
.content .metadata
selector, or changed its specificity so that it no longer applied to a <div>...</div>
that belongs to one or more of the other classes set by {{
subst:fa top}}
(that is, boilerplate afd vfd xfd-closed
), then the boxes would be unhidden in mobile without breaking any bots. --
Redrose64 (
talk) 11:58, 1 November 2016 (UTC)
.content .ns-0 .metadata
. Unfortunately the mobile skin right now does not support .ns classes, I have submitted a patch for that, but that will take a bit. —
TheDJ (
talk •
contribs) 12:55, 1 November 2016 (UTC)Comments and proposals are requested at Template talk:Query web archive § Future of this template – Allen4 names ( contributions) 01:09, 2 November 2016 (UTC)
Hello all, I've been doing some clean up on rowiki and have gotten stuck - there are some pages (example: w:ro:Graham_Booth) that are getting classified as having invalid self-closing HTML tags. These only seem to appear when there is mapped wikidata information that is processed by their templates/modules (e.g. w:ro:Format:Infocaseta_Om_politic , w:ro:Modul:InfoboxPolitician). Would someone familiar with this syntax take a look at let me know if you see what is going awry? Thank you, — xaosflux Talk 15:02, 1 November 2016 (UTC)
[http://www.thisisdevon.co.uk/Party-leader-mourns-UKIP-s-greatest-servants/story-14209199-detail/story.html ''Party leader mourns 'one of UKIP's greatest servants'<span />'']
. The data is pulled from a reference in
wikidata:Q4405632 but one of the ro modules must be adding the selfclosing span tag.
PrimeHunter (
talk) 19:21, 1 November 2016 (UTC)
I haven't seen this announced, so... On November 14, WMFLabs could be down for upto 48 hours in order to work on the file servers. This does not mean Labs will be down 48 hours. It should be a shorter time frame if everything goes well. Most tools should be down during this period. Here is the original announcement. The downtime has been postponed from an earlier date. Bgwhite ( talk) 05:44, 2 November 2016 (UTC)
This edit, creating CountrY on 22 January 2001, says that it was performed by LinusTolke, and it shows up properly in his contributions. However, no such account exists! There once was such an account until it was moved to LinusTolke~enwiki during the SUL finalisation process, but in that case, this and all of LinusTolke' other edits should be credited to LinusTolke~enwiki. Any idea why a nonexistent account is credited with edits, why Special:Contributions says that an account doesn't exist simultaneously with providing a list of edits by that account? Nyttend ( talk) 22:51, 1 November 2016 (UTC)
I made User:White Arabian Filly/Infobox Standardbred horse per the request of a user who creates many articles about notable harness racing horses. They want the wins, honors and awards parameters to be in their own little "boxes" with the header on top like Template:Infobox horse person but for the life of me I can't figure out how to make it work right. Can anybody look at it and tell me what I'm doing wrong? (By the way, I'm not keeping them that weird green color that looks like tree fungus. That's just for the development process.) White Arabian Filly Neigh 21:01, 1 November 2016 (UTC)
|thumb
for images inside infoboxes. You get two extra borders; see
WP:INFOBOXIMAGE. --
Redrose64 (
talk) 23:14, 1 November 2016 (UTC)
I know the issue with receiving emails sent via Special:EmailUser has been ongoing for a while, but until yesterday that didn't seem to affect gmail users. I've now not received two of the emails I got notifications of being sent to me - just thought I'd drop a message here in case anyone else is having new problems. These new issues have been reported to the phab task -- samtar talk or stalk 20:04, 2 November 2016 (UTC)
When I view Wikipedia in Safari on OS X, it says "Safari can't verify the identity of the website 'www.wikipedia.org'." 63.251.215.25 ( talk) 16:00, 3 November 2016 (UTC)
at the bottom of ZiL#External_links, the last navbox says "parent" next to the title. but, when I look at Template:ZIS/ZIL timeline 1930-1960, I don't see the same thing. It seems like a LUA problem? @ Jackmcbarn and Mr. Stradivarius: thank you. Frietjes ( talk) 14:27, 4 November 2016 (UTC)
Talk:Yohannes IV has "WikiProject Ethiopia| class=C" but it displays as "has not yet received a rating on the project's quality scale". Any ideas? Nurg ( talk) 09:48, 4 November 2016 (UTC)
c=no
means that this WikiProject doesn't grade articles as C class. --
John of Reading (
talk) 09:59, 4 November 2016 (UTC)
I am copying the footnote syntax used in United States v. Progressive, Inc., in which if you click on the link in the Notes section you jump to the relevant highlighted entry in the References section. In the Doris Grumbach bio I am working on in my sandbox, User:HowardMorland/Sandbox-6, the link from Notes to References fails to work. What am I doing wrong? Thanks. HowardMorland ( talk) 19:48, 4 November 2016 (UTC)
QUESTION: Seems some of my imagemap work may have gone well - esp " Template:Features and artificial objects on Mars" and my newly created template " Template:Features and memorials on Mars" (imagemap image for each = " File:Mars Map.JPG"; imagemap coordinates determined via http://imagemap-generator.dariodomi.de/) - However - adapting another image (" File:Pierre-Auguste Renoir - Luncheon of the Boating Party - Google Art Project.jpg") (related to the article => " Luncheon of the Boating Party") does not seem to work at all - ie, coordinates related to people pictured in the painting (via http://imagemap-generator.dariodomi.de/) do not seem to be noticed on a newly created template page similar to the templates mentioned earlier - what might I do to make this imagemap effort work with this Renoir image? - in any regards - Thank you for considering the issue - and - Enjoy! :) Drbogdan ( talk) 21:06, 4 November 2016 (UTC)
How plausible and helpful would it be to set up ref's in such a way that upon putting a cursor over the number of the ref, it would highlight anything in the section that it was verifying. This would likely be achieved by putting certain words, perhaps <startref"something">
and then <endref"something">
before and after (Respectively) the sentences the ref pertained to, it would pull from the ref (one of the main weaknesses I can see in my proposal is that it would likely require that all refs use a refname=
format.) What do you guys think?
Iazyges
Consermonor
Opus meum 23:44, 4 November 2016 (UTC)
Inside Special:SpecialPages, the link to the Special:ContentTranslation seems to have something wrong. Maybe it should be fixed. -- Stang 01:47, 5 November 2016 (UTC)
Hello! Per the discussion at
Template talk:Infobox television#Proposal: Add "native_name" parameter could someone please lend a hand to add |native_name=
to
Template:Infobox television underneath |show_name_2=
? I'm not sure what it all entails to do this, but the idea was to duplicate
Template:Infobox film's |film name=
parameter. So for instance at the film article for
Drishyam:
produces:
in the infobox. We want that same thing to be possible for TV articles, but we're changing the parameter to |native_name=
. Thanks in advance for the help,
Cyphoidbomb (
talk) 02:41, 5 November 2016 (UTC)
Is it just be, or does WP:DYKN not display properly after November 1 (the nomination templates no longer transclude)? Satellizer el Bridget (Talk) 05:01, 5 November 2016 (UTC)
Given this URL:
The "http%3A%2F%2F" has been percent-encoded because it's in the query portion of the URL (the part following the "?"). This is in accordance with RFC 3986, which states in section 2.2 that : and / are reserved characters, meaning they should be encoded in the path and query strings.
There is also a special rule in section 3.4 that in the query string for characters / and ?, because they are frequently used in URIs "it is sometimes better for usability to avoid percent-encoding those characters". Thus this would also be acceptable:
However the question is, why don't we do this?
Drop the percent encoding of the colon %3A. According to section 2.2, percent encoding is needed only if there is a possibility of conflict with interpreting its meaning.. and the only purpose of the colon is in the protocol and port strings. Once we get to the path and query strings there is no possibility of conflict and so it's safe not to encode it. Certainly we do stuff like this all the time:
Any thoughts on not percent-encoding the : and / in the path and query strings? -- Green C 04:50, 5 November 2016 (UTC)
I use Opera v.30 on a Samsung Android 5.1.1 device to read most articles on here. But, whenever I get to the math equations, they virtually atomise. I can only see them after zooming so far in or switching to desktop. The mobile view is a lot more convenient on a phone for me. Please, what can be done? — Preceding unsigned comment added by Daimler Ben ( talk • contribs) 02:17, 6 November 2016 (UTC)
Is it possible to use
custom bullets in an hlist?
Jc86035 (
talk) Use {{
re|Jc86035}}
to reply to me 05:37, 6 November 2016 (UTC)
Apparently, category sorting now groups numbers 0–9 in one single caption. (Used to be ten captions: 0 ... 9). Does anyone have a link for the background ratio of this? - DePiep ( talk) 12:17, 2 November 2016 (UTC)
{{DEFAULTSORT:2000 dollars}}
which is why it doesn't sort
with $1 etc. but between
2000 Continental Championships and
2000 Emmy Awards. The thing to do is to look at pages where there isn't a {{DEFAULTSORT:...}}
- such as
$1000. --
Redrose64 (
talk) 00:36, 6 November 2016 (UTC)
How come Yahoo isn't showing up in the Finance links at Goldman Sachs#External links? The template doc says you can put in the Finance ID, but not to include it for public companies. Kendall-K1 ( talk) 18:52, 6 November 2016 (UTC)
yahoo
parameter is set to a non-empty value. The value is ignored. The link will always be decided by the symbol
paramter: http://finance.yahoo.com/q?s={{{symbol}}}.
PrimeHunter (
talk) 21:44, 6 November 2016 (UTC)
In Wikipedia:Village pump (technical)/Archive 144#Can't always access "Cite" in the wikitext edit window, I mentioned a problem I was having in able able to use the Cite function in the wikitext edit window, so as to use the pop-up forms for the "cite web", "cite book", and other cite templates. Well, the problem has recurred. Not only do I only get the "Cite" function to appear above the edit window only occasionally, but when it does appear, clicking on "cite web", "cite news", "cite book", or "cite journal" has no effect at all; no form pops up to enable me to supply the author, title, etc. This problem appears to apply to all articles I have been trying to edit today, but in case anyone is wondering, the first one I noticed it on was Leopold Frankenberger, Jr. -- Metropolitan90 (talk) 02:43, 6 November 2016 (UTC)
Extended content
|
---|
|
RefToolbar 2.0a
with {{}} icon in middle
. Instead, I get "RefToolbar 2.0b"
with Cite button on right
but no working popup. -
NQ
(talk) 20:08, 6 November 2016 (UTC)importScript('User:Mr.Z-man/refToolbar.js');
from your
monobook.js and see if that solves it? -
NQ
(talk) 19:13, 6 November 2016 (UTC)
Please see this discussion at Help Talk:CS1. It appears that somewhere, the language code "bn" has been changed to return " Bangla" instead of " Bengali". These are two names for the same language, according to Wikipedia, but most other parts of en.WP use "Bengali" as the name for this language.
Please respond at the original discussion. Thanks. – Jonesey95 ( talk) 04:24, 7 November 2016 (UTC)
would appreciate any help w/ Wikipedia_talk:RefToolbar#Autofill_2, thank you -- Ozzie10aaaa ( talk) 15:13, 7 November 2016 (UTC)
To the outsider, one of the harsher aspects of MediaWiki is that, ignoring cases appropriate for Oversight, page deletion hides the page history. One can ask an admin for temporary undeletion to gain access to the history, but that seems odd and inconvenient. Has there ever been a discussion about separating the two functions? Perhaps an option could be added to the delete function to the effect of "page history visible". If it takes many years to schedule such software modifications, perhaps Wikipedia could change its ways. For instance, in closing an AfD, admins could be encouraged to move to draft namespace. Perhaps better than that, a new namespace pair called "Deleted" and "Deleted talk" could be created to move pages to. Such a change might encourage a few more experts and professionals to participate as editors.-- 172.56.33.76 ( talk) 11:17, 7 November 2016 (UTC)
Hi! Just by chance if anyone has a clue and answers to this it would be really appreciated. Is there any way to alter the section order in the general layout of articles for a specific WP project (Basque WP), I mean automatize it? Regards Iñaki LL ( talk) 12:01, 5 November 2016 (UTC)
I would like to upload a photograph of a group of physicists taken at the Dublin Institute for Advanced Studies 1942. I have no idea what the copyright status is. However, the photo (and parts of it) is found in quite a few places on the internet including the 5 different URLs below. Is this an indication that the photo is open source and may be used in WP, say in the article about the Dublin IAS? OTH, If someone is sure that it is hopeless to use this photo, just say so and I will move on to other things.
Thanks for taking a look.-- Toploftical ( talk) 20:58, 7 November 2016 (UTC)
Thanks for the great advice. I will try that.-- Toploftical ( talk) 22:27, 7 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
.gitreview
for MediaWiki branches and extensions switched from targeting a specific branch to using track=1
.
[24]Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
23:01, 7 November 2016 (UTC)
Hi all. I'd like to know how to search for articles whose titles contain N' - e.g. Charles N'Zogbia.
The trouble is, if I search with the apostrophe, the results contain N-, N_ & all manner of not quite N'!
So, is there a way to restrict results to articles containing strictly N'?
Many thanks, Trafford09 ( talk) 20:08, 7 November 2016 (UTC)
/.*n'.*/gi
suffice? Could whip up a
Quarry query? --
samtar
talk or
stalk 20:42, 7 November 2016 (UTC)
/g
is the 'global flag' - find all matches in string (
linky) - wouldn't be needed here though, so apologies for including it.
Special:Search doesn't support regex by the looks of it (though
CirrusSearch does) so I'm running a
quarry query --
samtar
talk or
stalk 20:58, 7 November 2016 (UTC)N'
at
https://tools.wmflabs.org/grep. I get 543 mainspace results.
PrimeHunter (
talk) 20:55, 7 November 2016 (UTC)
Thanks, Iridescent and all. I was referring to articles whose titles contain N', so I'll follow up your very helpful links. Trafford09 ( talk) 00:10, 8 November 2016 (UTC)
Is there a way to find the files that are Unused and Fair use. Xaris333 ( talk) 20:39, 7 November 2016 (UTC)
I have often had problems with notifications through email. When I had it set to send by email they often did not come. For ages I got none. So, I started just using the Wikipedia website and I unchecked all email notifications, which is how it is now. That was quite some time ago, but a few months back some started to trickle through in the email, about one in seven? Jed Stuart ( talk) 02:56, 8 November 2016 (UTC)
I have just got logged out several times, "automatically", after just changing to other browser window. Once I couldn't log in even with correct password (after that, in second try, login was successful).
After third logout and reloading page notification came that I am logged in centrally and it logged me in automatically. Very weird... /WB: latest Chrome, OS: Win7/ -- Obsuser ( talk) 13:41, 8 November 2016 (UTC)
Hi everybody! Google Code-in (GCI) will soon take place again - a seven week long contest for 13-17 year old students to contribute to free software projects. Tasks should take an experienced contributed about two-three hours and can be of the categories Code, Documentation/Training, Outreach/Research, Quality Assurance, and User Interface/Design. Do you have an idea for a task and could you imagine mentoring that task? For example, do you have something on mind that needs documentation, research, some gadget or template issues on your "To do" list but you never had the time, and can imagine enjoying mentoring such a task to help a new contributor? If yes, please check out mw:Google Code-in 2016 and become a mentor! Thanks in advance! -- AKlapper (WMF) ( talk) 14:44, 8 November 2016 (UTC)
Hi, User:Ms Sarah Welch emailed to inform me that she is having logging in problems. "No active login attempt is in progress for your session." is coming up. Can somebody look into it?♦ Dr. Blofeld 15:44, 8 November 2016 (UTC)
Can someone finish the job and code \csch \sech \arsinh \arcosh \artanh \arcsch \arsech \arcoth
?
יהודה שמחה ולדמן (
talk) 14:38, 9 November 2016 (UTC)
Why does the embed function at John Bingham, 7th Earl of Lucan create a box within a box for the "person" embed and form properly for the previous "military" embed? Is it that I am not nesting them properly? Please ping me so I see the answer. -- Richard Arthur Norton (1958- ) ( talk) 21:53, 9 November 2016 (UTC)
{{
Infobox officeholder}}
sets the |headerstyle=
parameter of {{
Infobox}}
, essentially to the value background:lavender
- this is non-standard; whereas {{
Infobox military person}}
doesn't set the |titlestyle=
parameter of {{
Infobox}}
, which is standard behaviour. So for the sake of consistency, it's the coloured background that should be removed. --
Redrose64 (
talk) 00:37, 10 November 2016 (UTC)It used to be that I could save a version of my sandbox as a simple test for work to be done in a Lua module. I could then make an edit in the Lua module, put the name of my sandbox in the Page title box and click the Show preview button. Very handy, that. If the module change that I had made was not quite right (not at all uncommon), I could tweak the module and again click Show preview. Repeat ad nauseum.
That worked well because my browser remembered the value in the Page title box so I only had to enter it once (the browser also remembered it session-to-session so on the first module edit preview of a new session, a couple of letters was enough to get the browser to show the full name of my sandbox, thereafter retaining it until I was done.
Now, every time I want to preview a module change, I have to type user:trappi
at a minimum to get to my user pages and then scroll down the list to my sandbox. Every time. Who thought that this would be a good idea?
Is there any way to get around this 'improvement'?
— Trappist the monk ( talk) 14:11, 5 November 2016 (UTC)
Hi,
I've just wanted to try out the new Visual Editor "wizard", which suggests new users some page to edit. Sadly, the incomplete translation catched my eye. May you please fix the field [vector-view-edit]?-- Kopiersperre ( talk) 17:54, 10 November 2016 (UTC)
guidedtour-tour-gettingstartedtasktoolbar-edit-article-description-wikipedia
. Not quite sure what's going wrong here — @
Mattflaschen-WMF:, might
this change have broken it? Did we need to do a change in WikimediaMessages too?
Jdforrester (WMF) (
talk) 18:45, 10 November 2016 (UTC)In the periodic table of chemical elements, we have character/symbol "I" for iodine. How can I widen the clickable space? So I better → I , but of course we won't use spaces-to-format (and it copy/pastes badly). Any ideas, css maybe? - DePiep ( talk) 00:16, 6 November 2016 (UTC)
<span>...</span>
inside the link (with suitable styling) does work:
I. --
Redrose64 (
talk) 00:21, 6 November 2016 (UTC)<div>
inside the [[ ... ]]
in
Template:Element cell-named. That would expand the clickable area to the width of the table cell. It would need a bit of testing, considering how many pages use it. --
Unready (
talk) 01:18, 6 November 2016 (UTC)
<div>
through the [[ ... ]]
. Forcing it with $('a[title="Iodine"]').contents().wrapAll('<div></div>');
abc[[iodine|<span style="margin-left: 1ex; margin-right: 1ex">I</span>]] xyz
→ abc
I xyz<span style="display: block;">I</span>
. It makes the span
into a div
and gets it through the parser. It doesn't inflate the element artificially, but lets its width expand to 100% of its containing block. --
Unready (
talk) 02:07, 6 November 2016 (UTC)
display: block
gives:abc[[iodine|<span style="display: block;">I</span>]] xyz
→ abc
I xyz|3=
parameter naming, obviously). -
DePiep (
talk) 14:18, 7 November 2016 (UTC)
3=
, you could also use {{=}}
for =
in style=
. Even better IMO would be to put the span
in
Template:Element cell-named for all the symbols. I'm not certain if that'll break any other pages, though, so it would need testing. --
Unready (
talk) 07:09, 8 November 2016 (UTC)
I've edited sandbox2 for what I think is a simpler HTML document. See what you think. -- Unready ( talk) 11:37, 10 November 2016 (UTC)
Here's a Petscan which takes a wee while to run, and looks for the intersection of articles in Category:Women to 8 levels with Category:20th-century births to 3 levels (and where there's no wikidta item). And guess what? It's full of stinking men. wtf. Do we have any tools which would assist in working out just where our category hierachies go so badly wrong that we get this sort of result? -- Tagishsimon (talk) 12:24, 10 November 2016 (UTC)
Can anyone tell me where the system message (or whatever it is) is stored, that gives shortcuts to commonly needed unicode glyphs, wiki markup, and so on while you're editing a page? I know I edited it on la: once a long, long time ago, but I can't find it now, and for all I know it's kept somewhere else now anyway. In case I'm no being clear, I mean the thing that currently says
directly beneath where I'm writing. -- Iustinus ( talk) 01:48, 10 November 2016 (UTC)
The link http://geoiplookup.wikimedia.org/ has gone dead - does anybody know if there is a replacement? -- Redrose64 ( talk) 16:04, 10 November 2016 (UTC)
Is there some bit of script that I can drop into my common.css page that gives me a red dot ping (the same as if an edit is reverted, etc) if someone makes an edit to my userpage? Thanks. Lugnuts Precious bodily fluids 08:36, 11 November 2016 (UTC)
Hey all, if you're good with tables, can you donate a few minutes to List of highest-grossing Indian films#Highest grossing Indian franchise and film series, please? I'm having trouble making head-or-tails of the formatting...it's very confusing. It looks like some attempt was made to jury rig the column widths so that the table works on smaller devices, but the columns do not line up on my large monitor. The double-border of the table is inconsistent with the other tables. We need a Source column which should contain the references for consistency with the other tables, etc. Many thanks in advance, Cyphoidbomb ( talk) 19:21, 8 November 2016 (UTC)
We have a number of records which appear to be damaged in some way ... I'm wondering if anything could be done about them.
thanks -- Tagishsimon (talk) 23:18, 12 November 2016 (UTC)
We still have so many (dead) toolserver links as part of full urls, or using tools: from the interwiki map, and we should really doing better, especially in templates and in more important parts of the site. I encourage users to look to see what makes sense to clean up, especially if there is a replacement tool at toollabs:.
To note that I have a phabricator:T150598 request with suggestions with how we can manage the dead interwiki_map components, so feel free for those with a technical/environmental nouse to express your opinion there. — billinghurst sDrewth 04:35, 13 November 2016 (UTC)
SELECT COUNT(*), REGEXP_REPLACE(el_to, "^(https?:|)//([^?]*).*","http://\\2") AS BaseUrl
FROM externallinks
WHERE (el_index LIKE "http://org.toolserver.%/_%" OR el_index LIKE "https://org.toolserver.%/_%")
AND el_index REGEXP "https?://org\.toolserver\.[^/]*/(%7E|~).*"
GROUP BY BaseUrl
ORDER BY COUNT(*) DESC
LIMIT 100;
List of top 100 most linked base URL. The toolserver.org minihost craps out (Labs' "better infrastructure"). Used httpstatus.io for the HTTP status. — Dispenser 18:25, 13 November 2016 (UTC)
SELECT iwl_from, COUNT(*), REGEXP_REPLACE(REGEXP_REPLACE(iwl_title,
"(dispenser/cgi-bin/[a-z_.]+\.py)/(.*)", "\\1?page=\\2"),
"^([^?]*).*","http://toolserver.org/\\1") AS BaseUrl
FROM iwlinks
WHERE iwl_prefix="tools"
GROUP BY BaseUrl
ORDER BY COUNT(*) DESC
LIMIT 100;
Similar query for the interwikilink. Basically 139,000 links left by User:DPL bot on talk pages. — Dispenser 20:02, 13 November 2016 (UTC)
In this diff I corrected "access date" to "accessdate", yet when I saved, Wikipedia decided to re-spell "Urbana-Champaign" to "Urban-Champaign", thus re-instating a typo which I had corrected in my previous edit. Is there any way to stop Wikipedia introducing errors like this? Thank you, DuncanHill ( talk) 19:53, 13 November 2016 (UTC)
Example: ( File:Close central unrounded vowel.ogg)
STR:
It can be reproduced on both Chrome and Firefox. If I use their native players (i.e. play this directly: https://upload.wikimedia.org/wikipedia/commons/5/53/Close_central_unrounded_vowel.ogg), no such problem.
-- fireattack ( talk) 00:10, 14 November 2016 (UTC)
I apologise that this message is in English. ⧼Centralnotice-shared-help-translate⧽
We are having a problem with attackers taking over wiki accounts with privileged user rights (for example, admins, bureaucrats, oversighters, checkusers). It appears that this may be because of weak or reused passwords.
Community members are working along with members of multiple teams at the Wikimedia Foundation to address this issue.
In the meantime, we ask that everyone takes a look at the passwords they have chosen for their wiki accounts. If you know that you've chosen a weak password, or if you've chosen a password that you are using somewhere else, please change those passwords.
Select strong passwords – eight or more characters long, and containing letters, numbers, and punctuation. Joe Sutherland ( talk) / MediaWiki message delivery ( talk) 23:59, 13 November 2016 (UTC)
Please accept my apologies - that first line should read " Help with translations!". Joe Sutherland (WMF) ( talk) / MediaWiki message delivery ( talk) 00:11, 14 November 2016 (UTC)
When I transcluded {{ edit fully-protected}}, the template displays the other template, {{ edit semi-protected}}. Is the template broken or something? -- George Ho ( talk) 06:07, 14 November 2016 (UTC)
Hye. I wrote the article Irina Nevzlin a long time ago, butfor some reason it wouldn't show in Google. Is there an explanation for it? Sloewn ( talk) 07:18, 14 November 2016 (UTC)
What I'd like to do is create a script that hides annotations in the list items in lists, without having to change the source text of articles in any way. The annotations I'm interested in start with an en dash surrounded by spaces. Like in the list items below:
I found some sample code that homes in on elements with one's desired text in them, and altered it to do a test to find all list items with an en dash surrounded by spaces, and color them orange:
$(document).ready(function(){
$("li:contains( – )").css("background-color", "orange");
});
(I then looked around with the script active to see how well it found annotated list entries, and it does so very well. The list above, for example, turns orange.)
Now I'd like to do a test of text replacement. How can the above script
be changed with a regex to replace the " – " and all text that follows it, with nothing?
I look forward to your reply. The Transhumanist 04:18, 9 November 2016 (UTC)
.css("display", "none")
to hide the cells from view.$(document).ready(function(){
$("li:contains( – )").css("display", "none");
});
.remove()
to remove the cells from the DOM entirely.$(document).ready(function(){
$("li:contains( – )").remove();
});
<span foo="bar – baz">some text</span>
, and that can lead to security holes. The proper way to do this is to iterate over all the elements recursively, and remove everything after the dash. I have put some code together that does this, although it is probably not very efficient; others might know of better ways to do it.$(document).ready(function() {
function walkTheDOM(node, func) {
// Walk the DOM recursively, applying func to each node.
// Nodes can be any node in the DOM, including elements,
// text nodes and comments.
func(node);
node = node.firstChild;
while (node) {
walkTheDOM(node, func);
node = node.nextSibling;
}
}
$("li:contains( – )").each(function (index, elem) {
// For each li element found by the selector, walk the DOM to
// find the first dash. Once we have found it, remove
// everything after it.
var foundDash = false;
walkTheDOM(elem, function (node) {
if (foundDash) {
// We found the first dash already, so remove the node
// if it is of an appropriate type.
if (node.nodeType === 1) {
// The current node is an element
$(node).remove();
} else if (node.nodeType === 3) {
// The current node is a text node
node.nodeValue = "";
}
} else if (node.nodeType === 3) {
// The current node is a text node, and we haven't found the
// first dash yet, so check whether it is there.
var dashIndex = node.nodeValue.indexOf(" – ");
if (dashIndex >= 0) {
// We found the first dash, so split the text node in two
// where we found it, and blank the second one.
var nodeToRemove = node.splitText(dashIndex);
nodeToRemove.nodeValue = '';
foundDash = true;
}
}
});
});
});
.remove
is being used right there..remove()
is necessary because annotations are not necessarily just text; they might include links or references too, and it would be strange if you removed all the text but left link and reference elements intact. Having the script remove everything after the dash but leave sublists alone is not easy, though, and would require more complex code than the example above. It also wouldn't work in edge cases such as the table in
Outline of domestic violence#Forms, as those outline items are not in HTML lists at all. For your proposed script to be robust, I think you would need to add markup to all of the outline articles. For example, you could have a template call like {{outline item|[[Dendrology]]|involves the study and identification of economically useful tree species}}
, which would expand to <span class="outline-link">[[Dendrology]]</span><span class="outline-separator"> – </span><span class="outline-annotation">involves the study and identification of economically useful tree species</span>
. Then hiding the annotations would be as simple as $('.outline-separator, .outline-annotation').css('display': 'none');
. Also, yes, it is possible to use regex with the contents of an element (you can get/set the HTML as a string using
innerHTML), but please don't, because it is a
really bad idea; doing so is liable to break and/or introduce security flaws into your script. —
Mr. Stradivarius
♪ talk ♪ 11:26, 11 November 2016 (UTC)
Are you trying to make it possible to transclude a list (that contains descriptions of items) into an outline (without those descriptions)? Whatamidoing (WMF) ( talk) 15:35, 9 November 2016 (UTC)
I need to talk to someone who actually has one up and running, and who wouldn't mind sharing the details on how they did it. The Transhumanist 18:45, 14 November 2016 (UTC)
{{ Check mark}} template is constantly getting repeated use in a single page such as a large list like this (I know this page suffers not only from checkmark template, but this still doesn't overshadow the shortcoming of #ifexist from this single template). Even if the whole page only checks for one non-green tick image file, the expensive parser function count still accumulates per usage. Without #ifexist the page will load slightly faster and score smaller preprocessor visited node count which means a lot in large lists. Please consider my sandbox version. -- Sameboat - 同舟 ( talk · contri.) 05:27, 14 November 2016 (UTC)
{{#switch:lc:{{{color|{{{colour|green}}}}}}|green|red|black|light green|olive green|yellow|orange|blue|cornflower blue|purple=assume color exists...|default=check if color exists...}}
.
PrimeHunter (
talk) 10:57, 14 November 2016 (UTC)
A reader reported ticket:2016110310003941 that they were blocked while trying to use the "cite this page" link. They are not a registered user and I think I've tracked down that they were using an IP address, probably dynamic, which is blocked for other reasons, but I'm unclear why clicking the "cite this page" link would trigger a message that they are blocked. While I'm not a regular user of that feature it appears to generate some information but doesn't trigger an edit of the page so why would it be unavailable even if the IP is blocked?-- S Philbrick (Talk) 18:48, 11 November 2016 (UTC)
Would it be possible to create a list of all Redirects created by User:Neelix which do not appear on this list [34], or almost equivalently, a list of redirects created by Neelix, and then subsequently edited by a different editor (including bots)? If both are practical, the former is preferable. The list should contain approximately 30,000 redirects. Thanks. Tazerdadog ( talk) 08:37, 14 November 2016 (UTC)
58689 new pages (created by Neelix) 48272 redirects (at creation) 28213 titles (have only Neelix as an editor)
58689 new pages (created by Neelix) 48272 redirects (at creation) 20059 titles (have at least one other editor)
One of the major reason I hate mobile view is that when the site decides to switch from the desktop view of special:watchlist to mobile view automatically, it is not redirected to the exact counterpart which shows the recent changes of my watching pages, but actually the special:editwatchlist page. If I want to go back to my usual watchlist, I have to click the counter-intuitively named "modified" button and in case I want to access the desktop view, I need to switch 2 pages in total from the mobile editwatchlist page which I rarely use. If you can fix this I will be happy. If you can provide an option in the preferences to disable mobile view altogether for registered users, I will be deeply grateful. -- Sameboat - 同舟 ( talk · contri.) 07:54, 15 November 2016 (UTC)
Can somebody please revert File:Grand Theft Auto logo series.svg to the previous version because the new version represent the logo of one of the games of the series, but not all series? -- Tohaomg ( talk) 10:23, 15 November 2016 (UTC)
Please see this discussion. The RedBurn ( ϕ) 15:59, 15 November 2016 (UTC)
There was a problem with template lang-fa at the article Ahmad Khomeini ( | talk | history | protect | delete | links | watch | logs | views), which was subsequently fixed by HyperGaruda. My question is, can there be a global fix of this problem at the template level instead of patching it up at the article level? It seems ironic that the problem is generated due to the right-to-left writing of the Persian language, since the template is designed for that language. Dr. K. 22:22, 12 November 2016 (UTC)
{{lang-fa|سید احمد خمینی}}
generates: [[Persian language|Persian]]: <span lang="fa" dir="rtl" >سید احمد خمینی</span>‎‎
. Here dir="rtl"
marks text as
right-to-left. Note the template adds two ‎ (left-to-right) markers after the text. I find it odd that HyperGaruda apparently had to add a third in
[35]. My Firefox 49.0.2 had no display problems with the former version but such things can be browser dependent. Browsers can try to guess whether numbers and special characters should also be displayed right-to-left next to right-to-left text. We could add a third ‎ in {{
Lang-fa}} and similar templates if that helps some browsers but three sounds a little excessive to me.
PrimeHunter (
talk) 23:18, 12 November 2016 (UTC)
</span>
anyway? But I'd agree that three lrm markers are a bit much.
De728631 (
talk) 23:27, 12 November 2016 (UTC)
Hello. I am trying to fetch data from Wikidata to Wikipedia, using a template. I have some problems with qualifiers and other things. Does anyone can help me? Xaris333 ( talk) 10:58, 13 November 2016 (UTC)
--get current page's Wikidata entity
local wde = mw.wikibase.getEntity()
--get raw value of P115
local p115 = wde"claims"]["P115"][1]["mainsnak"]["datavalue"]["value"]["id"
--get Wikidata entity for venue. Note that this step counts as expensive.
local venueEntity = mw.wikibase.getEntity(p115)
--get capacity value for venue
local capacity = venueEntity"claims"]["P1083"][1]["mainsnak"]["datavalue"]["value"]["amount"
--format the capacity value according to the local language rules
local capacityString = mw.language.getContentLanguage():formatNum(tonumber(capacity))
capacityString
somewhere. {{
Nihiltres |
talk |
edits}} 22:46, 15 November 2016 (UTC)There seems to be a bug in the display of links in image captions. The first image above illustrates it at
Lydian mode#Ancient Greek Lydian (
current version). I thought it might have something to do with the CSS display
property, so I thought to force display: inline
by wrapping the entire caption in <span>...</span>
. I don't know how to inspect elements on this browser (Firefox for Android 49) so I don't know if this is actually the issue, but the hack certainly fixes the display, as shown in the second image.
Hairy Dude (
talk) 22:52, 14 November 2016 (UTC)
In this edit, I only added the new comment. I did not modify the existing comment. I and others easily could have missed it, and it could have been in an article instead of an article talk page. I know we have been aware of this for awhile, but I'm really surprised it has persisted for this long. What is the status? Can anybody point me to an existing phab ticket? ― Mandruss ☎ 08:42, 16 November 2016 (UTC)
Dear Wiki DEVs, please add this HMTL5 code to make the cursor auto focus on the search bar as soon as the search text field finished loading:
https://davidwalsh.name/autofocus
This will make it a lot easier to search articles in Wikipedia.
Thank you. 77.180.36.32 ( talk) 14:07, 16 November 2016 (UTC)
RfC is at MediaWiki talk:Common.css #RfC to regularise spacing between paragraphs on talk pages. All comments appreciated. -- RexxS ( talk) 22:57, 16 November 2016 (UTC)
The gadget to give green text on a black background is still malfunctioning. This was raised in this thread a month ago. Does anyone know of a fix or if anything is being done to create one? Thanks, DuncanHill ( talk) 13:30, 12 November 2016 (UTC)
Oyveh. Try the night mode on the official Wikipedia android app. -- Atlasowa ( talk) 22:59, 16 November 2016 (UTC)
For putting the reference section in a box with a scrollbar Help:Reference display customization says to put the following in your skin.css:
/* Reference list in a box with a scrollbar */
@media screen {
div.reflist {
overflow-x: hidden;
overflow-y: auto;
padding-right: 0.5em;
max-height: 320px;
}
}
The thing is, it doesn't work. It seems to want to scroll horizontally and not vertically. And the entire webpage has a horizontal scrollbar. I've tried disabling columns/column width, setting a max-width, and playing around with the overflow values. I imagine that the above is outdated (indeed, Help:Reference display customization edited last over two years ago). Can anyone offer a solution? I'm on Chrome version 54.0.2840.99 m. Brightgalrs (/braɪtˈɡæl.ərˌɛs/) [1] 23:25, 16 November 2016 (UTC)
On 3 November, I received notification that an e-mail had been sent to me, but that e-mail never arrived. I had forgotten about this until today, when I received notification about another e-mail, which 90 minutes later has not arrived either. This feature has previously worked, I have not changed the "Enable email from other users" under Preferences, and I still receive e-mails telling me that there have been changes to my talk page - so Wikipedia has the right e-mail address, Is this a known problem, and/or is there a cure? - Arjayay ( talk) 11:12, 17 November 2016 (UTC)
I get
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.
Going back and reloading doesn't help. It happens here and on Meta. No problems logging in with my Dell laptop running Windows 10 or my Samsung Galaxy 5. Any thoughts? (I first noticed this about 12 hours ago, and I'm pretty sure I haven't changed any settings.) -- Anthonyhcole ( talk · contribs · email) 01:27, 17 November 2016 (UTC)
So, this is still happening. I'm on my iPad and can't log in. Is there someone at Wikimedia technical who I can ask about this? (Anthony) --— Preceding unsigned comment added by Anthonyhcole ( talk • contribs) 13:46, 17 November 2016 (UTC)
Not 100% sure whether this was raised before, but I think it could be worthy to make edit summaries correctable after saving. There are several issues with this. First, obviously when you mistyped something your error becomes permanently and irreversibly logged (particularly during common tasks, like "wikilink" instead of "italics", etc). Secondly, at least Firefox by default uses auto-filling in edit summaries, so when you enter letter "w" for example, the browser may suggest "wikilink" or "wl" (I accidentally got this recently). Third, canned edit summaries probably may cause similar accidental errors on mobile devices. So overall such feature could be useful and handy, unless there are technical limitations. Brandmeister talk 12:46, 12 November 2016 (UTC)
I am a major contributor with serveral thousand new articles who's coming up to my 15th year. Today while playing Tuesday trivia at a local pub I received several emails from the wiki, which is highly unusual. I opened them to find I had been globally banned from the wiki for something trump and something namespace, neither of which I have any idea about. In spite of limiting my edits mostly to WWII UK radar, nuclear fusion, and 1960s ABM systems, other editors apparently felt I was responsible for this, and immediately universally banned me.
There are instructions about how to appeal a block, but these require you to log in, which I cannot do. So can anyone help me out? I have an FA in progress.
Maury Markowitz
PS posting from my iPhone,please forgive any spelling issues.
This whole process was sub-optimal and needs fixing:
This was a heap of fail. And before anyone smugly tries to blame me for this, I should point out I am the victim here. So my suggestions:
Maury Markowitz ( talk) —Preceding undated comment added 12:46, 16 November 2016 (UTC)
Hi all, I've been looking at last years security review RfC with the view to launch a specific RfC to implement password audits. The 2015 RfC established consensus to perform these audits on administrator and functionary accounts, with a view to discuss the technical implementation in the near future - I hope to get the community to decide which method to use and have been drafting the RfC at Draft:Security review RfC 2016, but I can only think of one feasible method of checking. Does anyone else have any other suggestions for methods of auditing specific user groups' passwords? (Not which one we should use (that's for this RfC) or if we should audit passwords (consensus was made here)). -- samtar talk or stalk 11:05, 17 November 2016 (UTC)
I've seen this...thing on Template:Charlton-trademark-copyright. No parameter named DC is part of the calling structure so I think this is a parser function. Unfortunately all the materials on WP, Meta and MediaWiki said nothing about this. What does it do? — Preceding unsigned comment added by T3h 1337 b0y ( talk • contribs) 07:08, 18 November 2016 (UTC)
No parameter named DCis documented. It's still a parameter. Looking at the template source, setting DC to anything non-null makes the template omit the
blah blah defunct blah blahstatement. -- Unready ( talk) 07:52, 18 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
meta
+ shift
+ k
to add a reference. The meta key is often the control key or command key.
[39]Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
19:17, 14 November 2016 (UTC)
?uselang=uk
or ?setlang=uk
. (But not very much, because >98% of the UI is already translated into Ukrainian.
Whatamidoing (WMF) (
talk) 07:37, 16 November 2016 (UTC)
If anyone with template experience is interested in doing mildly boring and repetitive things, you could help out with
the conversion of coordinates-related infobox template parameters by editing infoboxes so that they can have superfluous parameters removed. Thanks,
Jc86035 (
talk) Use {{
re|Jc86035}}
to reply to me 09:36, 19 November 2016 (UTC)
The main page appeared in my watchlist despite me not adding it to the watchlist. Does this have anything to do with the recent hack and subsequent edits to the main page? SwineHerd ( talk/ contribs) 15:14, 18 November 2016 (UTC)
As the title suggests, the Page Curation toolbar is not appearing for me as it should, and in fact never has. I was told you not need to add any JS for it to work, and I have the latest Java update, as well as the new NPP permission. Tried on 2 laptops & mobile using Chrome & Firefox, so guessing it's an account-related issue. Does it have to be enabled in some way? Joseph 2302 10:55, 19 November 2016 (UTC)
About Chemistry, 3D images. By {{
Infobox drug}} and {{
Chembox}} (17K transclusions), we have input ACII string |SMILES=
that can be fed to an external link, to show a 3D model called
Jmol or JSmol, interactive eg by mouse. Example:
|SMILES=Clc1ccc(cc1)C(c2ccc(Cl)cc2)C(Cl)(Cl)Cl
,
Jmol interactive 3D model (worth trying)This is what I know. (from here: my projection only). Now for a long time people have suggested we could incorporate the code into mw. So that we can have an interactive 3D image right in the infoboxes (not an el any more). See this and this talk. Is this worth a Phabricator id? - DePiep ( talk) 23:26, 17 November 2016 (UTC)
System.out.println("Jsmol.js Jmol._loadImage using data URI for " + id)
inside the Javascript... —
TheDJ (
talk •
contribs) 09:40, 18 November 2016 (UTC)
I'm looking specifically for tools that will let me figure out what the true range is of a series of IPs, as well as find all anonymous edits on that range. This would all be for the purpose of guessing the collateral damage caused by an IPv6 rangeblock. How do other admins handle these? Thanks. Someguy1221 ( talk) 07:56, 20 November 2016 (UTC)
Is there a script or bot that can clean up the refs at History of Cleveland Clinic? This is a new article that was written by somone who used an awkward ref format. In particular I find all those urls hard on the eyes. Even just putting them all inside brackets would be an improvement. Kendall-K1 ( talk) 20:34, 20 November 2016 (UTC)
At
Wikipedia talk:Password strength requirements#Password testing tools, in the post by
^demon (
talk ·
contribs) timed at 06:30, 18 November 2016 (UTC) there is a character before the signature which looks like a yellowish circle. I assumed an image, but on going into edit mode, I saw that it is yellow there as well - an anomaly amongst the otherwise black text on white. It even shows up yellow in
the diff. Using
Unicode code converter I see that when pasted into the first green box it is yellow there too, and may be encoded as 😖
or U+1F616
. When did fonts start having inherent colour? Note: I updated to Firefox 50.0 overnight, which may or may not be coincidence. --
Redrose64 (
talk) 08:42, 18 November 2016 (UTC)
<span style="color:blue;">❤️</span>
which displays as ❤️ which is clearly not blue), use of such characters in links constitutes an accessibility violation. --
Redrose64 (
talk) 11:02, 20 November 2016 (UTC)
I sometimes use mw:API:Purge to purge page caches, using the option to update categories. That can be useful when investigating error tracking categories. Even using the example in the API:Purge documentation shows a warning: "Use of action=purge via GET is deprecated. Use POST instead."
Following is a URL I used a few minutes ago to remove some fixed pages from articles with script errors. I have split up the URL to make it easier to follow:
https://en.wikipedia.org/w/api.php ?action=purge &forcelinkupdate=1 &titles=207109_Sturmenchopf|Dasher_High_School|Davidson,_Indiana|Port_Julia,_South_Australia
Presumably the warning is related to the changes a few weeks back which mean that adding ?action=purge
to a URL requires a manual confirmation. I understand the slightly
WP:BEANSy reason for requiring POST, but what is going to happen to the API? How can a POST equivalent to the above be done?
Johnuniq (
talk) 09:35, 20 November 2016 (UTC)
/**
* For action=purge GET, change it to POST, then reload the page
* Restores pre-1.28 behavior to MW 1.28+
* Based on meta:User:Glaisher/autoPurge.js, 21 Aug 2016
*/
if ((mw.config.get('wgAction') === 'purge') &&
($.inArray('user', mw.config.get('wgUserGroups')) + 1)) {
$.post(mw.config.get('wgScriptPath') + '/api.php', {
format: 'none',
action: 'purge',
titles: mw.config.get('wgPageName').replace(/_/g, ' ')
}, function () {
// remove action=purge, but keep the rest
location.replace(
location.pathname +
location.search
.replace(/(?:\?|&)action=purge$/i, '')
.replace(/(\?|&)action=purge&/i, '$1') +
location.hash
);
});
}
.post()
method in your framework instead of .get()
.
Anomie
⚔ 20:32, 20 November 2016 (UTC)
I have regularly used the SpamUserPage script in SD patrolling, but the button seems to have disappeared. Script reads importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js');. Also pinging Mr. Stradivarius Jimfbleak - talk to me? 14:32, 20 November 2016 (UTC)
Anyone looking for a project? My kingdom for an external text editor with a live preview. I sometimes use GhostText to get syntax highlighting and general external text editor benefits, but it could use a few tweaks, namely some live preview option while the Wikipedia window's editable text area is not in use. Even some small script that periodically toggled the live preview function (from Preferences > Editing > Preview > Use live preview) would be great, but even better would be previewing the specific section active in the external editor. Something like this would make editing much more productive ( Bret Taylor would agree). czar 08:18, 21 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Problems
Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
15:32, 21 November 2016 (UTC)
It appears that recent updates to the software are causing a minor issue with image captions on the mobile site. Ordinarily, the captions would be spaced to the width of the image, but now they are being forcibly stretched across multiple lines. It's like a paragraph typed in Microsoft Word where the margins are justified and you press shift and enter halfway through a line; you end up with three or four words in a line. Prisonermonkeys ( talk) 02:32, 21 November 2016 (UTC)
Here is a screencap of what the issue looks like:
However, some captions—such as the boy scout one in the above section—do appear properly, though I have no idea why. Prisonermonkeys ( talk) 02:40, 21 November 2016 (UTC)
@ TheDJ — it's all good now, thanks. Prisonermonkeys ( talk) 00:45, 22 November 2016 (UTC)
I cannot log in or reset my password. I have been a registered Wikipedian since 3 September 2003. I am a system administrator. /info/en/?search=User:Hawstom The system will not email me. — Preceding unsigned comment added by 72.201.76.62 ( talk) 17:47, 7 November 2016 (UTC)
sysop
, which is short for
system operator. Given the other things on that user page which indicate its age, that it should refer to the permission as "system administrator" isn't particularly bothersome. --
Izno (
talk) 05:12, 8 November 2016 (UTC)
Please see above
this discussion.
Thanks, PrimeHunter. What's happening is that I am simply not getting a message (including spam) at the address I believe I have been using since before 2001. Since it is a gmail address, I could have done some sort of cutesy when I registered at Wikipedia like added ****+wikipedia@gmail.com to my address. I don't know. But thst should not prevent the message from getting to me assuming I wasn't using some sort of obsolete alias like *****@despammed.com or *****@spamgourmet.com. Anyway, what are my options at this point? I am happy to register a different account, though I am sorry to see my vintage account go by the wayside. I do have many old Wikipedian friends who could vouch for me, if that's an option. I also can demonstrate I control the web sites that I have claimed as my own at User:Hawstom#Personal_Point_of_View_Disclosure for the past 15 years or so. There's a 2006 version of User:Hawstom about 15 edits ago at [53] 72.201.76.62 I guess it would also be very easy to show in the usual ways (driver license, passport, etc.) that I am really Tom Haws, whom I have identified myself as on Wikipedia in my talk signatures. Thanks again. No rush. 72.201.76.62 ( talk) 20:36, 15 November 2016 (UTC)
I am only a Wikipedia administrator (sysop was the term back in the day when they dubbed me an admin (broom, dustpan, and hand grenade)). In any case, the login problem persists. Sorry. I don't edit much in the past ten years or more. 72.201.76.62 ( talk) 20:23, 15 November 2016 (UTC)
And yes, it's a drag to be using an IP address to be discussing this. I could have created a sock puppet, but oh well. 70.167.218.19 ( talk) 23:27, 15 November 2016 (UTC)
Thanks for looking into that for me. I don't have access to anything at thaws@kwhpe.com or thaws@hubbardengineering.com anymore (that is where I was working 1999 to 2010). But I still do control hawsedc.com and constructionnotesmanager.com. I thought that Wikipedia used to have a private messaging system, but I do not see that at the moment. If it's one of the latter, I can go into the mail system at my web site and get the mails. If the account email is one of the former, I possibly could ask Hubbard to look into it for me. Or you could just point the email to something at hawsedc.com like tom@hawsedc.com since that is obviously a web site that belongs to User:Hawstom based on the status of User:Hawstom since 2006 I referenced above. 70.167.218.19 ( talk) 00:28, 16 November 2016 (UTC)
Thanks, Max. I did research and find that perhaps my gmail account only goes back to 2005 (???) and before that I did use hawstom@sprintmail.com. I don't have access to that anymore. If it's not too much trouble, can you let me know if any of the following would be suitable trusted Wikipedians? Alternately, couldn't I just put a breadcrumb at one of my (Hawstom's) personal web sites, like a message to you? -Tom
Also, the plot thickens. Not only can I not access this account, I also cannot access my es account es:Usuario:Hawstom. Hmm. Maybe I really am not myself!?! Whoa! -Tom — Preceding unsigned comment added by 70.167.218.19 ( talk) 19:56, 18 November 2016 (UTC)
News flash. I just found out I am logged in on my smart phone on en. I am going to see if I can resolve the issue for en from my smart phone. Yay! Tom Haws ( talk) 17:07, 20 November 2016 (UTC)
Follow-up: As I suspected, the smart phone interface is not robust. I will keep trying. In any case, I do confirm that the anon claiming all the above is really me. Anything you can do to help is still appreciated. My real world identity on this account has never been hard to guess. I am Arizona Registered Civil Engineer #30503, Thomas Gail Haws, and I am the sole author of [tomsthird.blogspot.com] and [hawsedc.com]. Tom Haws ( talk) 17:23, 20 November 2016 (UTC)
Here are some links that may help from smart phone. Special:ChangeEmail Special:Preferences. 72.201.76.62 ( talk) 17:37, 20 November 2016 (UTC)
Well, that didn't work. The system asks me to verify my identity with a password. I am starting to think my account was hijacked even though I don't see any surprising activity yet. Consider the following facts:
Is it possible for a person with sufficient rights to change my email to tom.haws@gmail.com? Tom Haws ( talk) 17:59, 20 November 2016 (UTC)
Since MediaWiki 1.27 (~6 months) users must log in again before accessing ChangeEmail or the like, to make it harder for attackers who obtain a session somehow (stolen phone, copied session cookie via XSS etc) but don't know the password.
Changing the email for an account with such a clear link to an IRL identity is probably fine, but I'd like to see community consensus on it first. -- Tgr (WMF) ( talk) 00:10, 22 November 2016 (UTC)
Is there a problem with user-creation logs? I cannot seem to be able to find mine. Shyamal ( talk) 03:57, 22 November 2016 (UTC)
I have two issues on the same template, am no good at coding myself, and have asked several places with no positive response.
File:WikiProject_Scouting_uniform_template_male_male_head.svg
File:WikiProject_Scouting_uniform_template_male_longshirt.svg
File:WikiProject_Scouting_uniform_template_male_bermudas.svg
File:WikiProject_Scouting_uniform_template_male_boots.svg if you need a bitmap let me know.
Thanks anyone who can help!-- Kintetsubuffalo ( talk) 02:20, 21 November 2016 (UTC)
While it is easy to find what an article look like at any point in time in the past, I don't know how to do that with categories. I haven't really had a need other than idle curiosity but I'm feeling an email sent to Wikimedia in which someone states that the category Category:Human proteins, now with 837 entries, had over 11,000 at one time. Can anyone tell me how to see the history of a category?-- S Philbrick (Talk) 21:01, 22 November 2016 (UTC)
I see that User:Pppery recently edited {{ Testcases notice}} to prompt a G8 under certain conditions.
I've looked at a few, e.g. {{ Abbr/testcases}} and don't think it is correct. Am I missing something? This has dumped about 250 templates into CSD, which I think are in error. (and yes, I have asked User_talk:Pppery#G8)-- S Philbrick (Talk) 22:02, 22 November 2016 (UTC)
{{
Testcases notice}}
, {{
Template sandbox notice}}
and at {{
Rfcquote}}
. Points (b) and (c) are covered at
WP:TESTCASES, and you are clearly aware that such things as testcases exist, otherwise you would not have gone near {{
Testcases notice}}
. --
Redrose64 (
talk) 00:18, 23 November 2016 (UTC)Interwiki links for Minute and second of arc shows only two other links from en., instead of 39, needs fixing, please. -- Mpj7 ( talk) 19:28, 21 November 2016 (UTC)
Hi y'all! I've started an RfC on adding a CentralAuth link to the sidebar when viewing user or user talk pages. Please chime in at MediaWiki talk:Sidebar#Add CentralAuth link to toolbox section in userspace. Ks0stm ( T• C• G• E) 19:25, 23 November 2016 (UTC)
I seem to have screwed up my account royally by this edit to my common.css page. I know; I should be wheeled out & shot. Is anyone able to revert the edit? ... I now see only the headings of pages and none of the content, so I don't seem to be in a position to do anything. (And it follows that I'm having to make this edit from my ip addy ... anyone familiar with css will probably confirm, from the diff, that I'm an idiot and that the probability is that this request is indeed from Tagishsimon). thanks -- 164.215.104.187 ( talk) 05:41, 24 November 2016 (UTC)
Category:Pages containing cite templates with deprecated parameters I'm unable to select anything in this category up to H. Select any letters A to G causes results to start at H. CV9933 ( talk) 11:16, 24 November 2016 (UTC)
Sorry if this is a duplicate. I have the "Send me copies of emails I send to other users" option set in my preferences. I also have the "Email me a copy of my message." option set when I send mail to another user. However no copy arrives even though the mail is sent to the other user (as best as I can check). I tried about 6 times to 3 different destinations. Are other people having this problem? Zero talk 04:57, 24 November 2016 (UTC)
There was a discussion at Commons that got plenty of support but ended up archived with no action. I reposted but nobody seems to want to handle it.
Can anything be done on this end? Anna Frodesiak ( talk) 17:25, 22 November 2016 (UTC)
<gallery>
tag (which is probably everything that isn't a redirect), you want an extra link to every category for every [[Category:]]
link? So once that would be done, every time a category is added or removed from any page, it would have to be added or removed two places? That sounds suboptimal. Perhaps a slightly better solution would be something in JavaScript that duplicates the links. Lua isn't smart enough to figure out a page's categories while the page is being generated. I think it would have to be JavaScript, which runs after the page is generated. --
Unready (
talk) 18:14, 22 November 2016 (UTC)
( function ( mw, $ ) {
'use strict';
var
cats = mw.config.get( 'wgCategories' ),
path = mw.config.get( 'wgArticlePath' ),
len = cats.length,
see = $( '<div style="border: 1px solid #aaa; padding: 5px;">' +
'For more images, you may want to see:<ul></ul>and subcategories.</div>' ),
i;
function makeAnchor( cat ) {
var
a = $( '<a></a>' ),
text = 'Category:' + cat;
a.text( text );
a.attr( 'title', text );
a.attr( 'href', encodeURI( path.replace( '$1', text.replace( / /g, '_' ))));
return a;
}
if (( mw.config.get( 'wgNamespaceNumber' ) === 0 ) && $( '.gallery' ).length && len ) {
for ( i = 0; i < len; ++i ) {
$( 'ul', see ).append( $( '<li></li>' ).append( makeAnchor( catsi )));
}
$( '#mw-content-text' ).prepend( see );
}
}( mediaWiki, jQuery ));
( function ( mw, $ ) {
'use strict';
var
a = $( '#mw-normal-catlinks > ul > li > a' ).clone(), // main a only, not the added cruft
see = $( '<div style="border: 1px solid #aaa; padding: 5px;">' +
'For more images, you may want to see:<ul></ul>and subcategories.</div>' );
if (( mw.config.get( 'wgNamespaceNumber' ) === 0 ) && $( '.gallery' ).length && a.length ) {
$( 'ul', see ).append( a );
a.wrap( '<li></li>' ); // wrap after append, because the elements need parents
$( '#mw-content-text' ).prepend( see );
}
}( mediaWiki, jQuery ));
Hello World: What do you think of this? Isn't this a pressing issue? Why no input from others? Anna Frodesiak ( talk) 00:51, 25 November 2016 (UTC)
Not sure what's happened here - I used the {{ orphan}} template on an article ten minutes ago and it was fine, but it's now no longer appearing when added to articles. (From the HTML source, it's there but with a "display: none" CSS style.) Other amboxes still seem to render okay. What changed? Neither the {{ orphan}} nor {{ ambox}} templates have been directly edited in months. -- McGeddon ( talk) 11:09, 25 November 2016 (UTC)
I'm sure this used to work, but I keep coming across pages recently where the "hide transclusions" button does not do anything on Special:WhatLinksHere. For instance Ethics committee has only one or two "real" incoming links, but after I added the article to Template:Research participant rights there are many more due to the template transclusions. They don't disappear when the hide transclusion button is pressed. Spinning Spark 14:14, 25 November 2016 (UTC)
For some reason, there are a large number of articles about parliamentary constituencies appearing in Category:Interwiki link templates; I can't work out why. Could someone more adept with these things than I take a look? Josh Milburn ( talk) 23:02, 23 November 2016 (UTC)
User:Black Kite is a bluelink, but clicking on it brings up a notice saying the page does not exist. Why is this? 86.147.228.21 ( talk) 14:29, 25 November 2016 (UTC)
__NOINDEX__
, it won't be shown on other wikis." It's confusing that the link is blue when the meta page is blank and not shown or linked. See
User:Harej for an example where it's not blank and the bottom displays
MediaWiki:Globaluserpage-footer: "What you see on this page was
copied from
//meta.wikimedia.org/wiki/User:Harej."
/info/en/?search=User:Black_Kite?uselang=qqx does not show any MediaWiki message for a blank meta page.
PrimeHunter (
talk) 15:13, 25 November 2016 (UTC)
<noinclude>...</noinclude>
- compare
m:User:Redrose64 with
gd:User:Redrose64; the latter doesn't exist, so what's displayed there is transcluded from meta - minus the noincluded portion. --
Redrose64 (
talk) 09:57, 26 November 2016 (UTC)Cross-posted from Template talk:Infobox software for better visability.
Can anyone figure out why pages are added to
Category:Articles which use infobox templates with no data rows if |latest preview version =
isn't set in {{
Infobox software}}? After a quick glance myself, I'm not sure what the issue is, but I
know it's related to this row. There are 2339 pages that are in both this category and use {{
Infobox software}}, and I'm betting it's related to this bug.
Avic
ennasis @ 09:44, 25 Cheshvan 5777 / 09:44, 26 November 2016 (UTC)
I need some one to help me with Lua about taking data from Wikidata to Wikipedia through template. Xaris333 ( talk) 14:22, 25 November 2016 (UTC)
It looks like my department is searching for a Technical Intern. Regular editors/contributors are preferred. In fact, (current or former) regular editors may be the only people who are actually qualified, so I'm hoping you all can find some good applicants for this job.
The technical skills needed include:
You'd be working on the creation of the Wikimedia Resource Center, redesigning the Evaluation Portal on Meta, and moving the Learning and Evaluation portal pages to new a namespace, among other tasks.
This will be a 12-week position for up to 20 hours/week. The complete job description is here: https://boards.greenhouse.io/wikimedia/jobs/488570#.WBE6X-ErKRs
This is remote work. I'm guessing from the North/South America restriction that they want someone whose work hours will overlap with San Francisco. Very few remote jobs at the WMF have an absolute requirement for your location. So if you're not in the Americas, but you'd be happy working when California does, then please consider applying anyway and explain your preferred working hours in your application.
Also, all WMF staff need to speak/write English well enough to talk to other staff, but being proficient in any other language is always a benefit. Always. Even if it's not mentioned in the job description and doesn't seem relevant. Ditto for being an established editor.
Please share this information with people that you think would be good matches for the position. Whatamidoing (WMF) ( talk) 18:13, 26 November 2016 (UTC)
I'm getting a lot of "Sorry! We could not process your edit due to a loss of session data. Please try saving your changes again. If it still does not work, try logging out and logging back in." ... any advice? It's making me v.sad. (I'm trying this report whilst logged out, lest this is something to do with my account) -- 164.215.104.187 ( talk) 16:41, 26 November 2016 (UTC)
Hello. I need help for Module. el:Module:Περισσότερεςκατακτήσεις (is in English).
See Cypriot First Division (Q155965), property 1346, qualifier P1355. I want to show the item of P1346 if it has the largest qualifier P1355. Xaris333 ( talk) 23:58, 26 November 2016 (UTC)
Talk:Coldharbour Mill Working Wool Museum
{{WikiProjectBannerShell|1= {{WikiProject Mills|class=B|importance=Mid}} {{WikiProject Energy|class=B|importance=low}} {{WikiProject Architecture|class=B|importance=mid}} {{WikiProject Devon|class=B|importance=low}} {{WikiProject Historic sites|class=B|importance=high}} {{WikiProject Museums|class=B|importance=mid}} {{WikiProject Technology|class=B|importance=low}} {{WikiProject Textile Arts|class=B|importance=mid}} }}
is the code but when it renders (Chromium on Linux Mint) two of the projects show class=C. I think it is the first time I have visited the page. -- ClemRutter ( talk) 10:19, 26 November 2016 (UTC)
|b1=yes |b2=yes |b3=yes |b4=yes |b5=yes |b6=yes
to the Mills and Technology assessments and previewed, they were shown as "B" class. --
John of Reading (
talk) 10:46, 26 November 2016 (UTC)
{{
WikiProject Mills}}
and {{
WikiProject Technology}}
mentions the B-Class checklist (I added this to the doc pages myself, some years ago), although it didn't stress that all six criteria need to be satisfied in order for |class=b
not to be reduced to C. I've
rectified that. --
Redrose64 (
talk) 22:54, 26 November 2016 (UTC)
User:AnomieBOT notifies on the talk page of a recently created article; if the article was deleted through a deletion discussion in WP:AFD. Since the bot also makes other maintenance edits, when I was once trying to find deleted articles by looking at the bot's contributions, I had to spend more time.
I found some articles tagged through AFD tagger. Most recreated articles had extra sources, some AFDs were years old, though there were some which didn't have any development.
If the bot is separated into two parts, then I can find these articles in less time. -- Marvellous Spider-Man 01:06, 27 November 2016 (UTC)
, @ Anomie: Recreation of deleted articles is very important edit. JJMC89 the edit summary search is very slow. Marvellous Spider-Man 02:51, 27 November 2016 (UTC)
Hi ppl. I am just a gnome. I happened upon the page J.John, and reference 37 stunned me. The reason I brought it here is 'cos the con is far too sophisticated for me. Ref 37 pretends to link to Huffpost; it even sports Huffpost's banner and links - but the article itself is cut&paste. Just so we're clear - I have a folder on my bookmarks bar named "P's", the contents of which are 21 links to the most recognized newspapers on the planet, and top of the list is Huffpost. So when I clicked on link 37 of the J.John article - it was obviously not Huffpost. Of course I had to double check that I was observing trash so I clicked on my own Huffpost link and manually typed in "J.John", "Canon J.john" - every permutation of J.John takes you to this site - canon J. John site:www.huffingtonpost.co.uk- and that site lists innumerable supposed Huffpost articles that just aint real - THEY ARE NOT REAL.
At this point I expect you might be persuaded of the view that I'm munching the wrong mushrooms - so I went amining.
Reference 25 - Mass annointing Will Follow - it seems thefreelibrary is now extolling the virtues of this J.John - the page ends "Tonight's sermon begins at 7.30pm".
Reference 34 - http://www.bbc.co.uk/news/10318089 - titled "Preacher attracts thousands". The site at bottom says, quote, "The BBC News Channel is available in the UK only" - and then says - "You can send comments and pictures to the BBC News Channel by texting 61124, or emailing yourpics@bbc.co.uk". THIS IS NOT THE BBC.
Reference 35, (fish in a barrel), interview with Justin Welby - https://www.canterburydiocese.org/archbishop/philotrustinterview/ - does anyone actually believe that Justin Welby gave an interview to J.John??? The site is a sham. The Coat of Arms on the site is a cartoon compared to the real coat of arms, as seen on Justin Welby.
In my view the tech wing of Wikipedia have a legal and moral responsibility to inform Huffpost, BBC, and any other efficacious body who might have been injured by this sham, of the extent of the misinformation perpetrated on this site.
Get to it folks - delete J.John forthwith - and then work out how something so disingenuous as J.John could have infected our space.
And now I've said my piece I'm just gonna go back to mining. Let me know what transpires, or, at least, delete J.John Mark Dask 01:53, 25 November 2016 (UTC)
Thanks all for your responses. Be assured no 'shrooms were harmed in the creation of this post. So maybe I was a tad judgemental, but I would still like it explained why a Huffpost search redirects to AOL, (try it - type J.John into the Huffpo search and you will get AOL). I have emailed Huffingtonpost.co.uk for an explanation and await their response. Meanwhile, move along everyone - nothing to see here, (other than me with my pants around my ankles :) Mark Dask 02:02, 27 November 2016 (UTC)
example
in the "Search The Huffington Post" box at
http://www.huffingtonpost.co.uk/?country=UK then I get
http://search.aol.co.uk/aol/search?s_chn=cha_huffpo&s_it=aoluk-vertical-HuffPost&q=example which searches the whole Internet. They are probably trying to do something similar to
http://search.aol.co.uk/aol/search?s_it=sb-home&v_t=na&q=example+site%3Ahuffingtonpost.co.uk, but without placing extra code like site:huffingtonpost.co.uk
in the search box. Maybe their approach worked earlier but aol.co.uk changed something.
PrimeHunter (
talk) 15:32, 27 November 2016 (UTC)
<div class="search-huffpost">
<script>
function addText(){
document.getElementById("q").value += " site:www.huffingtonpost.co.uk";
return true;
}
</script>
<form action="http://search.aol.co.uk/aol/search?" method="get" class="" onsubmit="return addText()">
<input type="hidden" name="s_chn" value="cha_huffpo" />
<input type="hidden" name="s_it" value="aoluk-vertical-HuffPost" />
<input type="text" id="q" name="q" class="inp-text" onfocus="if(this.value=='Search The Huffington Post')this.value=''" value="Search The Huffington Post" />
<input type="submit" value="" class="search-submit" />
</form>
</div>
For some months now, {{ GeoGroupTemplate}}'s results with Google have been messed up. For example, go to National Register of Historic Places listings in Richmond, Virginia and bring up each of the three basic options in a new tab. OpenStreetMap and Bing both bring up full-size maps of the city with all of this page's {{ coord}} locations marked. Google, however, brings up just a little square (not located in Richmond, either) with the spots marked. And as I note, this has been happening for several months for every page that uses {{ GeoGroupTemplate}}, both when I use IE and when I use Firefox; I don't have Chrome to check it in there. Any idea why? Presumably it's a problem with the template or with Google Maps, but I don't know how to determine which one, let alone how to determine more precisely what elements have caused the problem. Nyttend ( talk) 01:49, 26 November 2016 (UTC)
A^-_x
This is rendered very badly when using the SVG fallback: the minus sign (which is supposed to be a superscript) is practically on the verge of colliding into the subscript x. I tested this on MathJax and LaTeX and it doesn't render it like that, so I suspect this is a bug specific to Wikipedia's math renderer. I am using Chromium 54.0.2840.100 (64-bit) on Linux. -- Fylwind ( talk) 10:38, 25 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Changes this week
[rights=hidden]
. You should now use [hidden]
instead. [rights=hidden]
in old gadgets should be changed to [hidden]
.
[62]
[63]Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
21:16, 28 November 2016 (UTC)
I get this when accessing Wikipedia from Firefox. Tgeorgescu ( talk) 21:45, 28 November 2016 (UTC)
Apparently solved by a NoScript update. Tgeorgescu ( talk) 23:17, 28 November 2016 (UTC)
I was looking over the edit filter log and saw that lowercase sigmabot III keeps tripping Special:AbuseFilter/702 when trying to archive Talk:Economy of Brazil. I've set up ClueBot III to archive the page. If anyone knows what's wrong, that would be great. — MRD2014 ( talk • contribs) 00:21, 29 November 2016 (UTC)
I know someone here must know how to put an inline Wiktionary link into a Wikipedia article. I have just spent about 10-15 minutes poring over various instructional pages - like Template:Wiktionary pipe, Template:Wiktionary-inline, Wikipedia:Wikimedia sister projects#How to link, etc., trying to figure out exactly which template to use. Please, post instructions/helps here, along with examples. (I've got to have examples - please.) Thanks, Shearonink ( talk) 23:44, 28 November 2016 (UTC)
When I start typing the name theresa villiers in the search box, Theresa Villiers does not come up as expected as a suggestion, giving the false impression that the article does not exist. By the time I get as far as theresa villie, the suggestion list is empty. Also, when I start typing theresa may, the suggestion that comes up is Theresa may, not Theresa May as expected. While the former redirects to the latter, the behaviour seems undesirable and contrary to what happens with other names. E.g. when I start typing donald trump, I get a suggestion of Donald Trump not Donald trump. (You may presume that even people who understand how to use capital letters correctly do not bother to use them when typing names into a search box.) 81.136.6.92 ( talk) 21:38, 22 November 2016 (UTC)
"wgHostname":"mw1269"
at the end of the html but the number of servers makes it hard to investigate. Is there a way to request a specific server? Note your browser may retrieve the page again when you view the html so the result may be from another server than the rendered page you were watching.
PrimeHunter (
talk) 15:12, 24 November 2016 (UTC)
Hello. Is there a way to find which templates are using a parameter named "level"? Xaris333 ( talk) 18:32, 28 November 2016 (UTC)
Thanks. Xaris333 ( talk) 11:44, 29 November 2016 (UTC)
Twinkle is not working correctly for me. I tried to make an AIV report and it gave me an error (the user wasn't already reported). Tagging a page for speedy deletion did not mark the page as patrolled (I am a new page reviewer), did not notify the user, and did not log the nomination automatically. I've also had trouble with the AFC helper script loading on certain drafts. Is anyone else having these issues? — MRD2014 ( talk • contribs) 03:29, 27 November 2016 (UTC)
I unwatched Lomography and was told: The page "Lomography" has been removed from your watchlist. I then dropped down my alerts list (the bell icon) and wanted to mark the topmost item as read (by clicking the blue ball, which does this). I could not click the ball because it was still covered by the unwatch message. I also could not find any way to clear/remove the unwatch message without reloading the page: clicking it, or outside it, or pressing Esc, does nothing. Equinox ◑ 07:14, 26 November 2016 (UTC)
Hello. I was an IP who landed on the main page and saw the large black and white text fundraising banner. I closed it. Then I clicked on "view history" and a second, smaller green and white text fundraising banner appeared. Are people supposed to be solicited once more, after they already close out of a banner? This seems clearly inappropriate and aggressive to me. I think something needs to be fixed here. Biosthmors ( talk) pls notify me (i.e. {{ U}}) while signing a reply, thx 17:13, 29 November 2016 (UTC)
I need some sort of workaround for hiding/displaying large chunks of code without collapsible boxes. The problem is that using collapsible boxes will break anchor links on the page. In essence, auto-collapsed boxes will render with the boxes fully expanded on page-load and then quickly collapse once that element is processed by the browser engine. The result is that following an anchor link to a specific part of the page will jump you to a down-shifted portion of the page offset by the length of all of the previously occurring collapsible boxes. Tested on Firefox and Chrome latest stable builds + on OSX 10.11.4 and Windows 10.
Please refer to this thread for more details. Or just follow MOS:TVCAST for an example. An editor has raised an objection to using expand=yes to render the boxes pre-expanded (due to the length of the code snippets), so I am looking for an alternative fix here. AlexEng( TALK) 21:10, 29 November 2016 (UTC)
I have a question regarding template calls and switches. Hypothetical scenario:
From a technical standpoint, which is the better method? In other words, if I have some sort of meta template that transcludes either #1 or #2, which one should I use? (Please ping me on reply) Primefac ( talk) 02:29, 29 November 2016 (UTC)
{{word {{{1}}}}}
vs {{alphabetWords|{{{1|}}}}}
for #2.
Primefac (
talk) 02:32, 29 November 2016 (UTC)
I've created a template for standardizing lists of election referendum here: Template:Election_box_referenda_begin and Template:Election_box_referenda. However, when the ballot information on the page List of Oregon ballot measures is put in for the first table of the November 2014 general election, there are some weird formatting issues showing up that I don't fully understand as compared to the second-half November 2014 table that does not use the template but has the same parameters. For one thing, the padding in the cells seems to much greater than the default table row values. Secondly, the last cell in each row under column heading "No/%" is vertically aligned on top despite being explicitly coded for vertical-align:center. Another interesting result of the template is that, in a addition to having greater cell padding, how much greater the cell padding happens to be is inconsistent. Compare the first table of the November 2014 general election to the only table for the May 2016 primary election. Both use the template but they have different padding. I've worked on it for awhile now but cannot find any indication of what is going wrong. -- Curoi ( talk) 23:29, 30 November 2016 (UTC)
|-
separated by three blank lines.
Special:ExpandTemplates is your friend. I took one line from your example and this is the result:{| class="wikitable sortable mw-collapsible autocollapse" style="width: 100%;" |+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" colspan="7" | Oregon's general election, November 4, 2014 |- ! rowspan="2" width="40px" | Meas.<br />№ ! rowspan="2" width="40px" | Type ! rowspan="2" | Ballot Title ! colspan="2" width="110px" | Yes ! colspan="2" width="110px" | No |- ! width="80px" | votes ! width="30px" | % ! width="80px" | votes ! width="30px" | % |- |- | style="text-align: center;" | [[Oregon Ballot Measure 86 (2014)|86]] | style="text-align: center;" | <span title="Legislatively-referred constitutional amendment" >LRCA</span> | style="text-align: left;" | '''Amends Constitution''': Requires creation of fund for Oregonians pursuing [[higher education|post-secondary education]], authorizes state indebtedness to finance fund | style="text-align: center; vertical-align-center;" | 614,439 | style="text-align: center; vertical-align: center;" | 42.79 | style="background:#F99; text-align: center; vertical-align: center;" | [[File:X mark.svg|15px|link=|alt=]]<span style="display:none">N</span> '''821,596''' | style="background:#F99; text-align: center; vertical-align: center;" | '''57.21''' |}
vertical-align
value should be middle
, not center
. --
Unready (
talk) 23:47, 30 November 2016 (UTC){{pad|15em}}{{{state}}}'s {{{election title}}}, {{{date}}}{{pad|15em}}
{{nbsp|45}}{{{state}}}'s {{{election title}}}, {{{date}}}{{nbsp|45}}
One way to do it is to change:
|+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" colspan="7" | Oregon's general election, November 4, 2014
to
! colspan="7" class="unsortable" | Oregon's general election, November 4, 2014
which does this:
Oregon's general election, November 4, 2014 | ||||||
---|---|---|---|---|---|---|
Meas. № |
Type | Ballot Title | Yes | No | ||
votes | % | votes | % | |||
86 | LRCA | Amends Constitution: Requires creation of fund for Oregonians pursuing post-secondary education, authorizes state indebtedness to finance fund | 614,439 | 42.79 | 821,596 | 57.21 |
The serious problem with that is that you loose the <caption>...</caption>
tags which are useful for those who use screen readers so this 'solution' isn't really a solution.
Help:Collapsing isn't much help.
— Trappist the monk ( talk) 14:49, 1 December 2016 (UTC)
Hi! Notifications of deleted pages disappear? I recently declined the speedy deletion of a category page ( Category:Italian commune articles using deprecated parameters) and asked, on the summary, for clarification. A editor explained it on the talk page, and {{ ping}}ed me. Then another admin deleted the category. All fine so far. What is not fine is that the notification got lost. I received a email notification (good and expected), but the on site notification is nowhere to be seen. I would consider that a bug. I want to know someone tried to reach me. I trust the system to do so. As an admin I can go on and read it even when deleted, and even if not an admin I could have reached to that editor and ask what was it about. Is this a known bug? (or a known feature change request :-) - Nabla ( talk) 11:22, 25 November 2016 (UTC)
Template:BLP editintro is injected into page source for BLPs in edit mode. How can I suppress the display of this notice, the contents of which I'm familiar with? I'd like my screen real-estate back, please. #editnotice_BLP_editintro{ display: none; }
in custom CSS doesn't seem to do it. thanks --
Tagishsimon (
talk) 05:56, 2 December 2016 (UTC)
.editnotice_BLP_editintro
. It's a class, not an ID. --
Unready (
talk) 06:40, 2 December 2016 (UTC)
I have a problem with that page Wikipedia:WikiProject Wikipack Africa Content/WikiFundi:Welcome. One block is displayed lower than it should be, leaving a gap in the structure. I can not find what is wrong. Could someone else me please ? I would appreciate. Anthere ( talk) —Preceding undated comment added 17:35, 2 December 2016 (UTC)
<div>
, one case where a closing </div>
and </span>
are the wrong way around. Those are not the direct cause: the primary fault is that you have four blocks each with the float: left;
declaration, but not enough room to fit them in as a row across the page. The first one goes top left, as it is supposed to; the second sits to the right of the first (again correct), the third sits directly below the second, but there is no more room for the third - so it goes below all these and hard left. --
Redrose64 (
talk) 22:00, 2 December 2016 (UTC)Hi all
Hope this is the right place to ask, I'm looking for a way to maintain the appearance of this box but to make the text within it a section heading e.g ==Heading1==
===Example text=== |
---|
I found an example that does it here but I can't work out how to match the formatting of the box above (i.e white text), I found this example here but now when I have copied it into the page it shows an edit section button, I really don't want that.....
Example text |
---|
Any ideas?
Thanks very much
-- John Cummings ( talk) 16:28, 1 December 2016 (UTC)
===<span style="color:#ffffff>Example text</span>===
.
PrimeHunter (
talk) 11:53, 2 December 2016 (UTC)Thanks PrimeHunter, but it just gives me this.....any ideas how to fix it?
===Example text=== |
---|
-- John Cummings ( talk) 13:32, 2 December 2016 (UTC)
In edit filters, it has been possible to use if statements that contain several statements in both the then part and the else part. That has stopped working sometime between 15 November and 2 December, probably sometime during the first few days during this period. A semicolon in the then part or the else part results in a syntax error. That means that edit filters that contain such if statements are not run at all anymore since they contain a syntax error. An example of how such an if statement can look like: if action != "move" then (article_text2 := article_text; article_prefixedtext2 := article_prefixedtext;) else (article_text2 := moved_to_text; article_prefixedtext2 := moved_to_prefixedtext;) end;
I hope this newly introduced error soon is corrected, so that the edit filters start working again. (I cannot login to Phabricator, so I mention this error here instead.)
Svensson1 (
talk) 08:49, 3 December 2016 (UTC)
Please help the awesome user:Legoktm test his fix to this hideous problem. If you have had issues in the past sending email messages from your wiki account, please head to https://test.wikipedia.org/wiki/Special:EmailUser/Legoktm and send him a test (or a Thank You!) message. HTH, -- Elitre (WMF) ( talk) 18:28, 1 December 2016 (UTC)
I wrote a tool for myself, found it pretty useful so cleaned it up and posted on GitHub in case anyone might be interested.
It's a unix command-line tool to retrieve lists of article names, such as all pages in a category, backlinks of a template, pages edited by a user during a certain period, etc.. it's generally useful for work with AWB or bots, but probably other things as well in a unix environment. Only dependency is GNU awk and one of wget, curl or lynx.
https://github.com/greencardamom/Wikiget
-- Green C 01:36, 26 November 2016 (UTC)
Why does the Main Page have a move tab but not a delete tab? Moving is impossible; Special:MovePage/Main_Page gives you a message
You do not have permission to move this page, for the following reason: You cannot delete or move the main page.
This is identical to the message you get at https://en.wikipedia.org/?title=Main_Page&action=delete, except of course it says "permission to delete". Since the tech folks have disabled doing both, and disabled the delete tab, why do we need a move tab? Nyttend ( talk) 14:33, 4 December 2016 (UTC)
For the past hour, I have faced several problems, which appear to be related. Pop-ups no longer work. On my Watchlist, edits still appear grouped by page; but I no longer have a drop-down arrow next to each page to expand and look at these. Twinkle has disappeared. I see several other display problems. I have tried clearing my cache, opening Firefox with add-ons disabled, rebooting my PC; but none of this has helped. These all appear to be Java-related issues, but I do not have any problems on other websites, and this just started about an hour ago, for no apparent reason. Are others facing similar problems, or is it just me? And if it is just me, do you have any suggestions about how I can correct the error? RolandR ( talk) 23:27, 1 December 2016 (UTC)
For quite a while there, unvisited changed pages on my watchlist appeared in bold, and that was quite helpful as I could easily tell how far I needed to scroll down the list and which pages I still needed to look at if I so chose.
Now the bolding has been removed. Can someone tell me why it has been removed, and how I can get the feature back if I desire? Thanks. Softlavender ( talk) 05:08, 2 December 2016 (UTC)
Just to add to this, pages with changes don't have the green marker either (I use good old monobook). Also, I see a flash of bold when the page initially loads. It's almost as if all the pages are being marked as "visited" once the watchlist has finished loading. -- Scjessey ( talk) 14:38, 4 December 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
18:07, 5 December 2016 (UTC)
Long background explanation for why I'm doing this, but basically I have a ton of categories that are called "Category:Pages using TEMPLATE_NAME with unknown parameters". Rather than having to repeatedly type out "This category tracks transclusions of {{ TEMPLATE_NAME}} using unknown/unsupported parameters." I wanted to have a subst I could copy and paste that would pull it from the page title... Now I know that {{str right |{{str crop |{{FULLPAGENAME}}|24}}|21}} will give me what I need... but how do I subst that?! -- Zackmann08 ( Talk to me/ What I been doing) 00:02, 6 December 2016 (UTC)
{{subst:str right |{{subst:str crop |{{subst:FULLPAGENAME}}|24}}|21}}
.
PrimeHunter (
talk) 01:07, 6 December 2016 (UTC)
Greetings, the Related Pages feature is currently running on stable mode, on almost all Wikipedias, except English. It has been live on beta for over six months (to review, select beta from the settings page on mobile). The feature allows readers to be exposed to content that is similar to the topic that they are reading, a good way to further engage readers, and allow for more access to knowledge. After reviewing the feature's performance on beta, which displayed very high usage for the feature in mobile and significantly lower usage in desktop, the reading web team, responsible for developing the feature, would like to move the feature to stable on mobile web and potentially discontinue the feature on desktop. If no major concerns are identified, the team will be prepared to apply these changes in early January. Thank you -- Melamrawy (WMF) ( talk) 09:24, 6 December 2016 (UTC)
Is it possible to get a specific range of user contributions? I was expecting the &from=
parameter to work like it does in recent changes, but it doesn't seem to. The &month=
parameter may not be sufficient to narrow it down to the required contributions when dealing with a prolific contributor.
Spinning
Spark 10:18, 6 December 2016 (UTC)
offset=YYYYMMDD
with limit=N
, for example the following shows 10 contributions older than 1 April 2014:HHMM
or HHMMSS
) can be added:Sometime in the past 24 hours, the nowrap template has stopped working. I use them fairly extensively because I edit from a mobile device for mobile users; they're very helpful in making tables readable. Does anyone know why they have stopped working or how to fix the issue? Prisonermonkeys ( talk) 20:36, 6 December 2016 (UTC)
Querying DB I just found these weird custom JS/CSS of some users with only few edits on en.wp. Were they created automatically by some MW engine feature? If so, I'd say it would be better to delete these custom user scripts/styles.
-- XXN, 21:48, 6 December 2016 (UTC)
Hey all, not sure where the best place for this would be, but in my capacity as a gnome admin, I'm interested in some sort of tool that will search for key phrases, say, daily or weekly, then notify me when they appear. Examples:
Being notified when these things as they pop up would be helpful in combating disruption and it's gotten really hard to remember all the phrases I'm supposed to search for. I'd love to automate that. Thanks in advance for any help. Cyphoidbomb ( talk) 17:08, 1 December 2016 (UTC)
Why didn't this edit work properly? I'm not completely familiar with how templates work, so it's probably quite a simple mistake. Anarchyte ( work | talk) 08:21, 7 December 2016 (UTC)
I just encountered a editor with an unusual name,
What cat?, and as we chatted I mentioned the awkwardness of the username due to the terminal question mark — it gets left off when you type the URL, so /info/en/?search=User:What_cat?
goes to the nonexistent
User:What cat. I suggested creating a doppelgänger account, "What cat", and the user agreed that it would be a good idea, but I ended up sending him to
WP:ACC after he reported that he couldn't create it due to its similarity to the names of two other accounts, including his own. When you're trying to create an account, why would similarity to your existing username be an issue? I was under the impression that the restriction on creating names similar to existing names was imposed to prevent impersonation, and clearly "What cat?" won't be creating "What cat" to impersonate himself.
Nyttend (
talk) 01:37, 8 December 2016 (UTC)
Were there signficant changes to the Wikimedia server configuration for ENWIKI that would affect login APIs deployed in November?
(This is related to Wikipedia:Village_pump_(technical)#API_PERL_question.._correct_specification_of_HTTPS_connections, but here I just need a yes/no.) -- joe decker talk 16:48, 8 December 2016 (UTC)
Okay I know multiple watchlists is a perennial proposal and I know one can already watchlist a category for additions to/removals from that category; my question is (hopefully) neither. Is there an easy way to watch every page in a category, besides cutting and pasting to the raw watchlist? Alternatively, is there a way to automatically add or remove pages to one's watchlist based on membership in a category? Cheers. Ivanvector ( Talk/ Edits) 14:17, 8 December 2016 (UTC)
Hello all!
As you may or may not be aware, I'm a maintainer for xTools, which is a wonderful suite of tools originally developed by User:X!. As many of you have no doubt noticed, there are some lingering stability issues since User:Hedonil (One of our last maintainers) retired in 2014. His rewrite and maintenance also tied us tightly to Tool Labs, which has its own stability issues at times.
I have been working for a few months to rewrite xTools. I have decided to use Symfony, which has built-in caching and template functionality. My current development version is located at [xtools-dev.wmflabs.org xtools-dev.wmflabs.org], though please note that it is pre-alpha software and very buggy!
I have also asked for assistance from Community Tech. If you believe that xTools is useful, a vote would be appreciated: meta:2016 Community Wishlist Survey/Categories/Moderation tools#Rewriting_X.21.27s_Tools.
Note: While technically in violation of WP:CANVAS, Canvassing is permitted as part of the 2016 Community Wishlist Survey. See here. ~ Matthewrbowker Drop me a note 18:13, 8 December 2016 (UTC)
Greetings. I do some work over at G13 deletions. In the past, editors were given a warning when a draft had lain dormant for 5 months. This was done by a bot called HasteurBot. Then at the 6 month mark, if no further editing had occurred it appeared on the list. Then it is reviewed and either asked to be deleted, or ask for the deletion to be postponed for another 6 months. When the request for deletion is made, admins can delete the article (or editors/admins can remove the deletion tag), in a relatively short span of time. It appears that HasteurBot is no longer working, so the 5 month warning is no longer being sent out. Any ideas? Onel5969 TT me 22:06, 7 December 2016 (UTC)
Hey. My article about Irina Nevzlin still has no Google results. Is there any way I could fix it? Thank you in advance. Sllm ( talk) 06:35, 4 December 2016 (UTC)
How is it that User:LizeB was able to create the page Cedric Tylleman 30 minutes after I had protected the page from creation with extended confirmed access required? The user certainly did not have confirmed status, let alone extended confirmed, as this was her only edit. Spinning Spark 14:58, 9 December 2016 (UTC)
Hey all, I can't figure out which tool is supposed to indicate the various previous usernames a person has had. For instance, here I see no results for a user name change, here I see no results for a user name change, but from what I can tell from stuff like this and this, the editor has changed names at least three times. I'm sure this is totally an issue of my ignorance. Thanks! Cyphoidbomb ( talk) 17:27, 6 December 2016 (UTC)
If it can be done manually, it is also trivial to do it through a userscript using API:Logevents (which is outdated by the way). The internal API docs are probably much better ( [70]). — Preceding unsigned comment added by 197.218.81.248 ( talk) 16:27, 10 December 2016 (UTC)
Sometimes no matter where an image is placed within the wikicode, it shows up in the same place in the article. Case in point: Rubus strigosus ( version I'm referring to, in case someone fixes it). No matter where I put that image on the left, it shows up there, next to the references, with an obnoxious block of white space above it. This sort of thing happens regularly, and is usually a matter of moving things around until it looks acceptable. It drives me nuts, though, and there's just not much flexibility when we're talking about a short article. Whyyyyy does it do this, and how do I fix it? The left side of the article has no images save this one, so I want to be able to put it wherever I want -- top of a section, end of a section, between paragraphs, etc. What am I missing? — Rhododendrites talk \\ 02:52, 9 December 2016 (UTC)
left
to none
it displays perfectly where you tell it to. I'm not an expert in the ways files work, but I guess that works. Cheers --
The Voidwalker
Whispers 03:07, 9 December 2016 (UTC)
Quite honestly, I wish you hadn't asked that since I have no idea the technical reason why it works. I just know that it does since I remember seeing it before. It definitely has something to do with infoboxes on short articles. If you look you will see that the image without {{ stack}} didn't just appear in the references. It appeared immediately after the infobox ended. Why this happens and why the stack template fixes it? No idea. Perhaps someone else with more template knowledge than I do can explain it to the both of us . -- Majora ( talk) 03:42, 9 December 2016 (UTC)
|thumb
). If they float on opposite sides, the earlier image will force the later image down, the reference point for both is the upper edge of the object.{{
stack begin}}
/{{
stack begin}}
converts two floated objects into a single one, so it is now the upper edge of that combined object - in essence, the upper edge of the infobox - which now determines the highest point that the berries can float to.On the Wikipedia article traffic statistics site, I can't get any statistics past 201601. For the months after that, all I get is a message that says "internal server error".
I've checked many subjects, and the same thing happens.
Is it working for you? The Transhumanist 21:51, 10 December 2016 (UTC)
[71] has an infobox that appears to be correctly formatted. But instead of appearing as an infobox, the text appears instead. Using latest Chrome on W10. Lfstevens ( talk) 02:11, 11 December 2016 (UTC)
The Transhumanist/anno.js is a script that toggles (removes and restores) list item annotations, so you only have to look at annotations when you want to.
The program creates a menu item in the tab menus at the top of the page, and also activates a hot key. So, the user could click on "Hide anno" (or "Show anno") or press Shift-Alt- to control the program's behavior.
Presently, the script resets when the page is reloaded or when you go to another page.
I'd like to make the script work without resetting. So that if it is in the "Hide anno" state, it hides annotations from whatever page it goes to.
At the end of the program is code to make the script work for the Vector skin only, and it includes a function that sets the program's default to "Show anno" for when a page is loaded or reloaded.
// Only activate on Vector skin
if ( mw.config.get( 'skin' ) === 'vector' ) {
$( function() {
// Change this if you want to hide annotations by default
annoShow();
} );
How do I specify the current state of the program? That is, I want to tell it to run the same function that was used last.
I look forward to your replies. The Transhumanist 21:14, 9 December 2016 (UTC)
I'm getting mainly anomolous results from petscan. Example should pull up Rose Fernando but does not. Can anyone confirm that my example here is not finding Rose Fernando. Does anyone know if there is a problem affecting Petscan? thanks -- Tagishsimon ( talk) 13:55, 11 December 2016 (UTC)
mintbox:[/home/adminuser] ./wikiget -c "Sri Lanka women Test cricketers" | grep Rose Rose Fernando
I'm working on a script to alter the display of an article.
But because I've run into a problem, I took the operational stuff out, in order to test the switch: the script adds an item in the tab menu that alternates between "Hide anno" and "Show anno".
The below script worked fine, until I added this to it:
var orig = cont.clone_node(true);
The words "Hide anno" are supposed to show up in the tab menu, but don't because of the above line.
Why does the creation of this variable cause the script not to work?
Here's the script:
/* anno.js: (Will) add a button to toggle visibility of annotations in lists.
Currently, the toggle switch is being tested, because it breaks whenever I add most anything useful to the operational portion of the annoShow and annoHide functions, or above those functions.
Function annoHide will hide some text (I removed those lines of code until the toggle is fixed). Function annoShow will put the text back (removed those lines of code for now).
Based on: https://en.wikipedia.org/?title=User:PleaseStand/hide-vector-sidebar.js&oldid=580854231
and /info/en/?search=User:Thespaceface/MetricFirst.js */
( function ( mw, $ ) {
var annoSwitch;
var cont = document.getElementById('mw-content-text');
// ERROR: the below line causes function annoShow not to work. "Hide anno" does not show up in the tab menu.
var orig = cont.clone_node(true);
// This problem has me stumped, because I will need to set the content back to the original state, which is what the clone is for.
function annoHide() {
// the code to hide stuff will go here. For now, I'm just testing the toggle switch.
if ( annoSwitch ) {
annoSwitch.parentNode.removeChild(annoSwitch);
}
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Show anno', 'ca-anno', 'Show the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoShow();
} );
}
function annoShow() {
// the code to show stuff will go here. For now, I'm just testing the toggle switch.
if ( annoSwitch ) {
annoSwitch.parentNode.removeChild(annoSwitch);
}
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Hide anno', 'ca-anno', 'Hide the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoHide();
} );
}
// Only activate on Vector skin
if ( mw.config.get( 'skin' ) === 'vector' ) {
$( function() {
// Change this if you want to hide annotations by default
annoShow();
} );
}
}( mediaWiki, jQuery ) );
I thought variable assignment was non-invasive. Please explain how that line affects the rest of the script.
This problem has me totally stumped. I look forward to your replies. The Transhumanist 08:28, 8 December 2016 (UTC)
clone_node
doesn't exist in JavaScript; it is called cloneNode
. —
This, that and
the other (talk) 09:01, 8 December 2016 (UTC)
cont.parentNode.replaceChild(orig, cont);
$(cont).replaceWith(orig2);
And as a note, you are using mediawiki.util RL module, without guaranteeing that it is loaded. — TheDJ ( talk • contribs) 09:27, 8 December 2016 (UTC)
I tried this:
mw.loader.using( 'mw.util' ).then( function () {
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Hide anno', 'ca-anno', 'Hide the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoHide();
} );
} );
The above did not work. I do not know how to load the RL module, and the documentation is not very clear. The Transhumanist 10:34, 11 December 2016 (UTC)
mediawiki.util
, not mw.util
. If you try to load a module that's already loaded, the load request succeeds, but nothing additional is loaded. If you try to load a module that doesn't exist, it fails. --
Unready (
talk) 20:58, 11 December 2016 (UTC)(Copied and extended from Wikipedia talk:Database reports/WikiProjects by changes)
Wikipedia:WikiProject Congo is a DAB, referring to either Wikipedia:WikiProject Democratic Republic of the Congo or Wikipedia:WikiProject Republic of the Congo. There are probably more; this was the first I saw after sorting by name.
Clearly this should be fixed, and not just for this instance but systemically, but as for how to do it, I have NFI*. -- Thnidu ( talk) 02:03, 12 December 2016 (UTC)
* "No idea whatsoever"
Is there an easy way of obtaining a list of page links from a category? Spinning Spark 19:44, 11 December 2016 (UTC)
awk '{print "[[" $0 "]]"}' list.txt > list2.txt
then copy-paste list2.txt back into Wikipedia. Just one example, or as Xaosflux said could also use a text editor. --
Green
C 20:46, 11 December 2016 (UTC)wikiget -c "Northward flowing rivers" | awk '{print "[[" $0 "]]"}' | clip
Hi there. The Editor Interaction Analyser doesn't seem to be working with IP addresses. Not sure who to notify. Thanks. Magnolia677 ( talk) 20:15, 11 December 2016 (UTC)
Since a few days the possibiliy to Strike out usernames that have been blocked does not work anymore. Option is in Preferences, Gadgets, Appearance. Both in Firefox and IE. - DVdm ( talk) 09:58, 10 December 2016 (UTC)
''.user-blocked-temp{' + ( window.mbTempStyle || 'opacity: 0.7; text-decoration: line-through' ) + '}\''
''.user-blocked-indef{' + ( window.mbIndefStyle || 'opacity: 0.4; font-style: italic; text-decoration: line-through' ) + '}\''
This is new behaviour since a week or so. I know that underline and line-through can be combined in CSS, and up until recently these links did indeed show like this one
Struck underlined link. -
DVdm (
talk) 10:00, 12 December 2016 (UTC)
a.user-blocked-temp {' + ( window.mbTempStyle || 'opacity: 0.7; text-decoration: line-through underline' ) + '}\
a.user-blocked-indef {' + ( window.mbIndefStyle || 'opacity: 0.4; font-style: italic; text-decoration: line-through underline' ) + '}\
Could someone with experience doing the markup for image maps and mouseovers (and, even better, experience with really cheesy TV series from the 1970s) please check the graphic at List of The Brady Bunch characters? The relevant discussion is on the talk page. Rivertorch FIRE WATER 20:07, 12 December 2016 (UTC)
Whenever a visual edit to an infobox is made to an article that doesn't have an infobox in sorted the visual editor sorts infoboxes, it appears to reorganize the infobox. This causes the diff to be slightly more confusing than it needs to be. I propose we either make the diff system recognize lines/statements being moved around, or we make the visual editor not do this. The first one sounds better, but I'd guess that it'd take much more work than having the visual editor remember the order. Thoughts? – 🐈? ( talk) (ping me!) 00:58, 9 December 2016 (UTC)
| imagesize =
| debut_works = Walt Disney World Trivia Books
| influences =
| influenced =
|imagesize=
is not documented, but is a valid alias for |image_size=
which is both documented and listed in TemplateData|debut_works=
is obsolete, and was
commented out in March 2008 and
completely removed in April 2008, see
Template talk:Infobox writer/Archive 2#Works and
Template talk:Infobox writer/Archive 2#Remove debut works|influences=
and |influenced=
are obsolete, they were
removed in August 2013, see
Template talk:Infobox writer/Archive 8#"Influences" and "Influenced" also older archivesLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Problems
Changes this week
Meetings
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
19:29, 12 December 2016 (UTC) -- עוד מישהו Od Mishehu 04:14, 13 December 2016 (UTC)
Hi all, I'm just wondering if a global block overrides a local block on an account? I'm viewing the block log of a user and it shows nothing but in the global block log, it shows the local block reason. -- LuK3 (Talk) 03:50, 13 December 2016 (UTC)
Category:Wikipedians who previously had access to HighBeam is to be deleted per Wikipedia:Categories for discussion/Log/2016 November 24; however it's populated by Wikipedia:HighBeam/Userbox which uses complex syntax to detect current/former status and thus a simple edit can't remove it. Can someone with the technical know-how please adjust the template to remove the former category altogether? Timrollpickering 14:23, 13 December 2016 (UTC)
Hi all
I'm doing some work to restart Wikipedia:WikiProject_United_Nations (a mainly abandoned Wikiproject with very little activity) and I just realised that I can't see the VE button on any of the pages, can someone explain why this is happening (I can see VE button everywhere else) and also enable it?
Many thanks
-- John Cummings ( talk) 13:34, 8 December 2016 (UTC)
Thanks PrimeHunter, that sounds like a royal faff but the only available option.... -- John Cummings ( talk) 18:39, 9 December 2016 (UTC)
This page contains discussions that have been archived from Village pump (technical). Please do not edit the contents of this page. If you wish to revive any of these discussions, either start a new thread or use the talk page associated with that topic.
< Older discussions · Archives: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF, AG, AH, AI, AJ, AK, AL, AM, AN, AO, AP, AQ, AR, AS, AT, AU, AV, AW, AX · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212
A previous discussion here inspired me to experiment with Javascript. I'd like to toggle the annotations of bulleted list items, without having to add wikicode to them in the page they are on (to avoid making the markup on those pages harder to read).
So that:
Gets presented as:
The experiments explore how aspects of hiding works. I've described my experiments below, with some questions:
My first experiment was to search and replace endashes:
(Note: the N in &Ndash; is capitalized because I didn't know how to escape the actual special character code so it doesn't render as an endash. Which it does even if you use "nowiki".)
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/&Ndash;/g,'');
content.innerHTML = whattohide;
This didn't have any affect. My guess was that it didn't see the code "&Ndash;" on the screen, and therefore it couldn't have been accessing the wikicode.
Question 1: What do I need to put in the above script to have it access the wikicode before the page is rendered?
Next, I tried this:
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/Chess/g,'');
content.innerHTML = whattohide;
Which stripped out all occurrences of the word "Chess" when I viewed the Outline of chess. But something unexpected happened. When I went to edit the script for the next experiment, the script stripped "Chess" out of itself!
Question 2: Why did it strip out "Chess" and not "&Ndash;" ?
I tried escaping the "&" and ";", with no effect.
Question 3: What is the difference between mw-content-text and mw-body-content?
Question 4: What is the sequence of events from the time the script is accessed and the page is displayed on the screen for the user to read?
Question 5: Where in that process can a script access the material for modification?
Question 6: Is there more than one opportunity in the process to do this, and if so, what are they?
Out of curiosity, I tried stripping out all spaces, like this:
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/ /g,'');
content.innerHTML = whattohide;
Which made all pages practically unreadable, and blasted the edit window out of existence, so that I couldn't edit the script to undo the configuration. Fortunately, my connection was slow, and I was able to click on x (stop loading page) after the regular edit page was displayed but before the script was executed. Disaster averted.
That was a close call. I'll be using auxiliary accounts to test scripts in the future.
Question 7: Can admins delete a user's js pages? (For example, to undo an account corruption).
Question 8: How do you affect just the article content and not the edit box and surrounding text?
Next I tried to use regex strings anchored to the bullets in the list items, but I couldn't find a way to select them using the cursor to copy and paste them into the script.
Question 9: How can regex be used to find the bullets in list items?
Nor could I find a way to anchor the regex on the "<li>" string in the html.
Question 10: How could the script access the HTML so it can regex for "<li>"?
I'm hoping you could shed some light upon the mysteries confronting a Javascript newb.
I look forward to your replies. Any and all feedback is welcome. The Transhumanist 15:28, 26 October 2016 (UTC)
&Ndash;
, you should look for –
, because that's what it is in the end result of the page. So, your regex should look like content.innerHTML.replace(/–/g,);
instead of content.innerHTML.replace(/&Ndash;/g,
);
.$(document).ready(function(){
//your code here
});
li
selector. The way we actually call it through jQuery is like this: $("li")
. That will give us an object that contains pointers to all the li elements on the page.$("#mw-content-text li")
. What that means is: "give me all of the li elements that are contained within the element with the id "mw-content-text" ". (The "#" is what tells it that we're looking for an id.) And there's more you can do with it, too.li
selector: How would that fit in to the code below?$(document).ready(function(){
var content = document.getElementById('mw-content-text');
var whattohide = content.innerHTML.replace(/–/g,'');
content.innerHTML = whattohide;
});
I'm gonna answer this, because it's always good when people are eager to learn. I want to start by talk about something else that is much more important (and a bit related to question 4). HTML is a markup language in which we write webpages. It is important to realize however, that a browser basically only looks at HTML once, when it loads the page. After that, the browser will turn the HTML into a Document Object Model (DOM), a standardized method to represent a webpage using a definition of objects. For instance, when you write in HTML the <table> element, the browser reads that into HTMLTableElement. Those DOM elements are the webpage, and for this purpose, you can assume that the original HTML document no longer exists after this interpretation by the browser has been made. This model is also what you see, if you open the browser's web inspector and go to the 'elements' tab. If you write Javascript to make changes, then that model is what you change (you can move things around). Any event handlers like button click listeners and what not, also attach to this model. When you apply CSS using selectors, the selectors match the DOM structure (a topic in itself btw).
Now the questions:
if( mw.config.get( 'wgPageName' ) !== 'User:The_Transhumanist/sandbox' ) {
return;
}
Hope that helps a bit. Just keep experimenting, it's the best way to learn. Also, try using a live HTML editor like plunker to improve your HTML and JS basics. You can't use all the MediaWiki/Wikipedia specific stuff there, but it is great for improving your basic skills. — TheDJ ( talk • contribs) 19:27, 26 October 2016 (UTC)
$(document).ready(function(){
var content = document.getElementById('mw-content-text');
var whattohide = content.replace(/–/g,'');
content = whattohide;
});
Here's something like what I was thinking of:
//This selector grabs all of the <li> elements that are within #mw-content-text, and then does something for each of them
$("#mw-content-text li").each( function (ind, el)
{
//first, grab the text from the current li element; we want only the top level text, so filter out all of the other stuff.
var currentText = $(el).contents().filter(function(){return this.nodeType === 3; });
//Don't bother processing if there's nothing to process
if(currentText.text().length > 0)
{
//replace the character
var newText = currentText.text().replace(/–/g,'');
//reinsert the updated string back into the DOM
currentText.replaceWith(newText);
}
});
Again, this is going to be pretty messy; there's nothing distinguishing the lis you want to change from the lis you don't. But that's more like what you'd need to do (though TheDJ will probably have a better yet way of doing it). Writ Keeper ⚇ ♔ 21:44, 26 October 2016 (UTC)
(/ – .*?$/g,'')
The Transhumanist 22:48, 26 October 2016 (UTC)
(/ – .*?\n/g,'\n')
. --
The Voidwalker
Whispers 23:33, 26 October 2016 (UTC)
[[Knight (chess)#Movement|Moving a knight]] <span class="annotation">– knights move two squares horizontally and one square vertically, or two squares vertically and one square horizontally, jumping directly to the destination while ignoring intervening spaces.</span>
. That way, we can access the elements we want to modify directly (through $(".annotation")
in this example), rather than having to traverse the entire body of the page and possibly get it wrong. Then, it's as simple as hiding them all (perhaps through $(".annotation").css("display","none")
, which would keep the information in the page while hiding it from the viewer, which would let us then call it back if we want to via $(".annotation").css("display", "initial")
).
Writ Keeper
⚇
♔ 22:59, 26 October 2016 (UTC)
//first, grab the text from the current li element; we want only the top level text, so filter out all of the other stuff.
var currentText = $(el).contents().filter(function(){return this.nodeType === 3; });
Okay, so. Say we have the following list:
<ul>
<li class="note1">
Testing text
</li>
<li class="note2">
<a href="http://www.example.com">
A link
</a>
more text
</li>
</ul>
This would look something like:
Now, say we want to retrieve the text from these elements, while ignoring the links. (Which is of course what we want to do in your above example.) The usual way of retrieving the plain text within an element is through the text()
function. So, for the first li element (note1), we can retrieve the text simply by calling $(".note1").text()
. This will return us Testing text
, and we can continue to use the same method to modify the text too. All well and good. Things change, though, for note2. We might expect $(".note2").text()
to return more text
, since that's the plain text contained within the note2 element. But it doesn't: it actually returns A link more text
. It included the plain text that's within the <a>
element. We didn't want that, because in the examples you gave, the text within the link was what we wanted to keep unchanged. So what that filter line does is it goes through and takes anything that's not in and of itself plain text--in this case, the <a>
element--and takes it out of consideration, so that we don't even try to modify its text.
Writ Keeper
⚇
♔ 23:54, 26 October 2016 (UTC)
became this:
@
Writ Keeper: Out of curiosity, how do you grab the text from the current li element without filtering it?
var currentText = what goes here?;
/*
Test script by TheDJ
For processing list items:
To hide annotations
*/
if ( mw.config.get('wgAction') === 'view' ) {
mw.hook( 'wikipage.content').add( function ($contents ) {
var listItems = $contents.find( 'li:not([class]):not([id])' );
listItems.each( function( index, li ) {
var nodes = $(li).contents();
var marker = false;
var ul = false;
for ( var i = 0; i < nodes.length; i++ ) {
if ( nodesi].nodeType === Node.TEXT_NODE &&
nodesi].textContent.indexOf(' – ') >= 0)
{
marker = i;
break;
}
}
if( nodesnodes.length-1].tagName === "UL" ) {
ul = nodesnodes.length-1];
}
if( marker > 0 ) {
var wrapper = $('<span>').addClass('myscript-wrapper');
wrapper.append(nodes.slice(marker, ul ? nodes.length-1 : nodes.length));
$(li).append(wrapper);
if ( ul ) {
$(li).append( ul );
}
}
});
$( '.myscript-wrapper' ).hide();
});
}
// //////////////////////////////////////////////////////////////////////////
/* Walk through of above code (with extensive remarks)
// Run only on view (not edit) pages. See [[mw:Manual:Interface/JavaScript#Page-specific]]
if ( mw.config.get('wgAction') === 'view' ) {
// Attach a function to be run once the 'wikipage.content' part of a page is available
mw.hook( 'wikipage.content').add( function ($contents ) {
// Like document.ready, this will run, once that part of the page is
// ready/updated.
// $contents is a jQuery list of DOM elements, that has just become available.
// See also: http://api.jquery.com/jquery/
// Get all the <li> elements from $contents, but skip those with a class or ID,
// because they might have special functionality that you don't want to break.
// We generally avoid things like this, because they will break easily.
// Wikipedia is so diverse and big, that to do anything,
// your content really needs a class or ID.
var listItems = $contents.find( 'li:not([class]):not([id])' );
// Iterate over each of the <li> items
listItems.each( function( index, li ) {
// This part is complicated, because we need to look at text
// and text is not structured. Get the li item, and wrap it with jquery
// Then get all the direct children nodes
var nodes = $(li).contents();
var marker = false;
var ul = false;
for ( var i = 0; i < nodes.length; i++ ) {
// We need to find text nodes, that have our - marker.
if ( nodes[i].nodeType === Node.TEXT_NODE &&
nodes[i].textContent.indexOf(' – ') >= 0)
{
// We found the node which contains our marker
marker = i;
break;
}
}
// Check to see if the last node is an UL, so we don't break nesting
if( nodes[nodes.length-1].tagName === "UL" ) {
ul = nodes[nodes.length-1];
}
// only useful if it's the second element or later
if( marker > 0 ) {
// Use jquery to create a new span
// We use span, because it is an inline element.
// We give it a class so we can find it back later
// This element is already part of the document, but it is not attached to anything visible yet.
var wrapper = $('<span>').addClass('myscript-wrapper');
// Move the node with our marker, and all nodes that follow it into this new wrapper.
// This removes them from the original <li>
wrapper.append(nodes.slice(marker, ul ? nodes.length-1 : nodes.length));
// Append the wrapper to our original list item to make the wrapper visible.
$(li).append(wrapper);
if ( ul ) {
$(li).append( ul );
}
}
});
// Now we have structure, and we can apply our manipulations and functionality
// We simply hide all our elements
$( '.myscript-wrapper' ).hide();
// You would now add controls to show them etc. etc.
});
}
*/
/* Further notes (tutorial)
var i = 0;
i++;
// This runs immediately.
// It is safe to do things like this, UNLESS they need to change something in the page.
// You CAN use it to do data processing, start requests to the api etc.
// An anonymous function block wrapped inside $()
$( function() {
// do stuff to change the page
});
// $() is an alias for jQuery(), the main function of the jQuery library,
// which is always available for script writers on Wikipedia
// When used like this, it is a shortcut for $( document ).ready(), and it will
// execute your anonymous function as soon as the page is ready to be
// manipulated by JS, or immediately if it is ready now.
// See also: http://api.jquery.com/jquery/#jQuery3
// Attach a function to be run once the 'wikipage.content' part of a page is available
mw.hook( 'wikipage.content').add( function ($content ) {
// Like document.ready, this will run once that part of the page is
// ready/updated.
// $content is a jQuery list of DOM elements, that has just become available.
// See also: http://api.jquery.com/jquery/
});
// This is used by many scripts in MediaWiki, because it also works after
// saving with Visual Editor, or when previewing with Live preview tools etc.
// There are several such named hooks like:
// wikipage.diff, wikipage.editform, wikipage.categories
// mw, an alias for mediaWiki, is another javascript libary that is always
// available to MediaWiki and Wikipedia scripters.
// See also: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw
// For the hook specific part of this library, which we use above, see:
// https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.hook
// Note that large parts of this mw library are not ready for usage by default,
// and you might have to load some parts using mw.loader, before they can be used.
// For loading dependencies and guaranteeing order between dependencies,
// use ResourceLoader.
// See also: https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Client-side_.28dynamically.29
*/
The script is a damn good start. Thank you!
So I installed it, by including the following line on my vector.js page:
importScript("User:The Transhumanist/anno.js");
Then I went to Outline of chess and hit "x" (stop loading page) before the script was run to process the page. That gave me an unchanged base page for comparison.
Then I loaded the Outline of chess in another window, letting the script do its thing.
Then I switched back and forth between the two verions of the outline, looking for differences.
The script missed the annotations of list items that don't have bullets (such as the top-level list items in outlines). And it missed annotations in which the marker (" – ") included a no-break space. It also missed hanging en dashes (en dashes in place waiting for annotations to be added after them. They have a preceding space but no succeeding space, which is why the script did not find them).
Functionality for hiding the above should be fairly easy to code.
But, the script was hiding something it shouldn't have: all but the topmost level of bullet items. Bullet items that were children of a bullet item disappeared. I'm not sure yet what is causing that, but I'm looking into it. It'll be slow, because I'm learning Javascript as I go. If you discover what's causing it before I do, please let me know!
I couldn't figure out why it was doing that, so I switched to trying to adding a toggle.
@
TheDJ: I spent several hours trying to adapt code from
User:PleaseStand/hide-vector-sidebar.js, modifying it and pasting it in, in place of the line $( '.myscript-wrapper' ).hide();
. So far, I haven't been able to get it to work. Check out the attempt at
https://en.wikipedia.org/?title=User:The_Transhumanist/anno.js&oldid=746595354 I have no idea why it didn't work.
The Transhumanist 11:35, 28 October 2016 (UTC)
Is there anything wrong with this markup?
Example text.<ref name="number1" /><ref name="number2" />{{efn|name=efn1}}{{efn|name=efn2}} ; Endnotes {{Notelist|refs= {{efn |name=efn1 | Explanatory footnote 1.<ref name="number1" /><ref name="number2" /> }} {{efn |name=efn2 | Explanatory footnote 2.<ref name="number1" /><ref name="number2" /> }} }} ; Footnotes {{reflist|refs= <ref name="number1">Footnote 1</ref> <ref name="number2">Footnote 2</ref> }}
-- Namoroka ( talk) 14:17, 27 October 2016 (UTC)
Example text.<ref name="number1" /><ref name="number2" />{{efn|Explanatory footnote 1.<ref name="number1" /><ref name="number2" />}}{{efn|Explanatory footnote 2.<ref name="number1" /><ref name="number2" />}} ; Endnotes {{Notelist}} ; Footnotes {{reflist|refs= <ref name="number1">Footnote 1</ref> <ref name="number2">Footnote 2</ref> }}
There are two issues with the first form. Firstly (as is an ancient problem in computer programming language parsing) the parser doesn't do enough passes to correctly parse it all. It does enough that references in bare wikitext can reference items defined in lists, but not enough that references in one list can themselves reference items defined through a list. So the linkage from within one list to within another list fails.
Secondly, you get a rather confusing error message. And more confusingly, just the one of them, not two. This is because the processor (after the parser) gives up after just one message (later messages are rarely helpful).
The solution isn't a solution, it's a work-around. It is to define the footnotes in-line, with embedded citations too if needed. This isn't a problem - unlike references, footnotes are very rarely shared, so there's little benefit to defining them in a list. Andy Dingley ( talk) 20:54, 28 October 2016 (UTC)
I've been thinking more lately about how to better manage the watchlist. Until we get expiring watchlist entries, it would be nice if I could take my list of watchlist entries and sort by 1) last edit date; 2) last vandalism date; 3) how many are watching (if over 30). These sorts could help me make up my mind about pages to no longer watch. My watchlist isn't exactly out of control at this point, but I'd like to have better control to prevent that, without having to go through all my entries one-by-one and determining these aspects. Are there any scripts/gadgets that can assist me here? Stevie is the man! Talk • Work 16:25, 24 October 2016 (UTC)
Note that this doesn't have to be a script/gadget that works within the watchlist itself. I can easily generate a list of pages that happen to be on my watchlist. So, basically, what I need is a tool that can sort pages by the above criteria. Stevie is the man! Talk • Work 16:49, 25 October 2016 (UTC)
1)
use enwiki_p; select page_title, rev_timestamp from revision join page on page_latest = rev_id and page_title in ('article_1', 'article_2') order by rev_timestamp
2)
use enwiki_p; select concat("*https://ores.wmflabs.org/v2/scores/enwiki/damaging/", page_latest, "/") from page where page_title in ('article_1', 'article_2')
"Article 1" and "Article 2" are examples of entries in your watchlist. Expand that list as needed. Note that any spaces need to be replaced by underscores. You can run these queries on quarry.wmflabs.org.-- Snaevar ( talk) 19:04, 29 October 2016 (UTC)
About half a year ago, I noticed that one of the pages on my watchlist about the One pound (British coin) had been vandalised by somebody changing the mintage numbers around. Looking through the histories of the other pages, I found similar activity, so they've all been on my watchlist so I can check on them every now and then. Below is a sample of the vandal's edits:
I assume these are all the same vandal with an ever-changing IPv6 address, but I'm not sure how to deal with this, because:
EditorInTheRye ( talk) 19:56, 29 October 2016 (UTC)
blockcalc output
| |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sorted 12 IPv6 addresses:
|
2a02:c7d:bf3c:6f00::/64
) and a contribs link --
samtar
talk or
stalk 20:30, 29 October 2016 (UTC)
Why are standard external link icons not displayed in preview of references on a mobile device? Instead, there is a space between a last character of a title and a dot that separates citation units, for example "Title . Publisher.".
One more thing I've noticed is that links that should be red are blue in preview of references on a mobile device (at least mine). -- Obsuser ( talk) 04:21, 25 October 2016 (UTC)
Why pie charts ({{ pie chart}}) on mobile devices have some vertical line at their right side (next to the cirle itself)? That line is colored in colors used by pie; segments of this line are made as if one drew lines from the center of the pie towards right and where those lines intersect with the line I'm asking about (vertical one, it is thin) – colors change at that place. Was this intentional; problably not, but if it was what is its purpose? -- Obsuser ( talk) 04:21, 25 October 2016 (UTC)
Hello. I am using python replace.py -cat:Β΄_κατηγορία_πετοσφαίρισης_ανδρών_Κύπρου "[[Εθνικός Λατσιών|" "[[Εθνικός Λατσιών (πετοσφαίριση ανδρών)|" -always -pt:0
Greek words. Is it possible to have 2 or more categories to search in to? In parameter -cat: . Xaris333 ( talk) 21:14, 28 October 2016 (UTC)
Its ok. Solved. Xaris333 ( talk) 15:41, 30 October 2016 (UTC)
The suffix "the free encyclopedia" was dropped from the title tag of all articles a couple of weeks ago, per this pump proposal. A/B testing was touched on before the discussion was closed - is there any meaningful way to measure whether inbound Wikipedia traffic might have been affected (specifically on a country-by-country basis) as a result of the title change? -- McGeddon ( talk) 21:50, 30 October 2016 (UTC)
I noticed that if double quotes are used in {{
citation needed}}, the reason ends up displaying malformed (only the first word), like this:
citation needed Escaping it as "
fixes it,
citation needed is it possible to do that on the template's side? — Preceding
unsigned comment added by
Nyuszika7H (
talk •
contribs) 21:51, 30 October 2016 (UTC)
{{citation needed/sandbox|reason=The "quick" brown fox jumps over the "lazy" dog.}}
→
citation needed -
Evad37 [
talk 02:47, 31 October 2016 (UTC)I'm not sure if this is something that goes to Phabricator or not, so I'll post here first. I posted a discretionary sanctions alert using {{ alert}} (substituted). Typically when you use this template it alerts you to check this logs for past notifications. Instead I got a jumble of error code instead of the alert. The text of the error is below:
Error code text; collapsed for readability |
---|
The following discussion has been closed. Please do not modify it. |
Error: {| class="messagebox plainlinks" style="width: 100%; background: #ffdbdb; border: 2px dotted black; padding: 0.5em;" |style="padding-right: 1em; padding-left: 0.5em;"| <img alt="" src="https://upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/50px-Stop_hand_nuvola.svg.png" width="50" height="50" srcset="https://upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/75px-Stop_hand_nuvola.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/f1/Stop_hand_nuvola.svg/100px-Stop_hand_nuvola.svg.png 2x" data-file-width="240" data-file-height="240" /> <img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/50px-Balance_icon.svg.png" width="50" height="41" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/75px-Balance_icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Balance_icon.svg/100px-Balance_icon.svg.png 2x" data-file-width="256" data-file-height="208" /> |A system filter has identified you are trying to <a href="/info/en/?search=Template:Ds/alert" title="Template:Ds/alert">alert</a> <a href="/info/en/?search=User:EvergreenFir" title="User:EvergreenFir">EvergreenFir</a> (<a href="/info/en/?search=Special:Contributions/EvergreenFir" title="Special:Contributions/EvergreenFir">contribs</a> · <a href="/info/en/?search=Special:Log/EvergreenFir" title="Special:Log/EvergreenFir">logs</a> · <a class="external text" href="https://en.wikipedia.org/?title=Special%3ALog%2Fblock&page=User%3AEvergreenFir">block log</a>) to the existence of <a href="/info/en/?search=Wikipedia:Arbitration_Committee/Discretionary_sanctions" title="Wikipedia:Arbitration Committee/Discretionary sanctions">arbitration discretionary sanctions</a>. Special rules govern alerts. You must not duplicate an alert given in the past year. Please now check that this user has not already been alerted: Search logs: <a class="external text" href="https://en.wikipedia.org/?title=User_talk:EvergreenFir&action=history&tagfilter=discretionary+sanctions+alert">in user talk history</a> • <a class="external text" href="https://en.wikipedia.org/?title=Special:AbuseLog&wpSearchFilter=602&wpSearchTitle=User+talk%3AEvergreenFir">in system log</a>. Search elsewhere (optional): <a class="external text" href="https://en.wikipedia.org/?title=Special:Search&search=EvergreenFir&prefix=Wikipedia%3AArbitration%2FRequests%2FEnforcement&fulltext=Search+archives&fulltext=Search">in AE</a> • <a class="external text" href="https://tools.wmflabs.org/sigma/usersearch.py?name=EvergreenFir&page=Wikipedia%3AArbitration%2FRequests%2FEnforcement&server=enwiki&max=100">in AE contribs</a>. Do you wish to alert this user? If so, click 'Save page' again. If not, click 'Cancel'. <a href="/info/en/?search=MediaWiki:Abusefilter-warning-DS" title="MediaWiki:Abusefilter-warning-DS">v</a><a href="/info/en/?search=MediaWiki_talk:Abusefilter-warning-DS" class="mw-redirect" title="MediaWiki talk:Abusefilter-warning-DS">t</a><a class="external text" href="https://en.wikipedia.org/?title=MediaWiki:Abusefilter-warning-DS&action=edit">e</a> Please <a href="/info/en/?search=Template_talk:Ds" title="Template talk:Ds">submit a false positives report</a> if you received this message in error. |} |
Please ping me if this is something that should be reported somewhere else. Thank you! EvergreenFir (talk) 21:58, 27 October 2016 (UTC)
{{subst:alert|ap}} ~~~~
. It's caught by
Special:AbuseFilter/602 which deliberately prevents the save and apparently tries to display
MediaWiki:Abusefilter-warning-DS, but the user sees the above code with visible html. It includes the text: "Do you wish to alert this user? If so, click 'Save page' again. If not, click 'Cancel'." If you click Save again then the save goes through like a normal edit.
PrimeHunter (
talk) 00:38, 28 October 2016 (UTC)
This was reported to Phabricator by Matěj Suchánek a few moments ago. -- Martin Urbanec ( talk) 08:47, 29 October 2016 (UTC)
I am probably at the wrong place...
What just happened to me: I tried to click on one of the "hist" links in my Watchlist, when the browser finished updating the page and inserted the button "Mark all pages as visited" directly under my mouse. I had found the information I accidentally deleted pretty helpful, so I am sure I did not want this to happen.
I think an "Are you sure?" question at this point would be vastly more useful than the unnecessary "Are you sure" question when you add or remove articles from your watchlist. After all, that one is reversible, and I have difficulties imagining a user saying "oh no! I accidentally added this article to my watchlist!". Maybe both questions should have a checkbox in the Preferences, so I could activate the one I want and deactivate the one I don't want? Just an idea. -- Hob Gadling ( talk) 19:38, 30 October 2016 (UTC)
#mw-watchlist-resetbutton {display: none;}
importScript('User:NQ/WatchlistResetConfirm.js');
to your
common.js, it should provide you with a confirmation prompt. -
NQ
(talk) 21:34, 30 October 2016 (UTC)
On an older mac with 10.6.8, and firefox 48, when I re-set preferences to include the 'D' setting to see Data edits - it was great!
But then when the bots started warming up, my watchlist flooded... so tried reverting (disabling in preferences) but it looks like it doesnt want to revert to no "d" - I still keep geting them showing on watchlist. I am on older equipment which support older things which might not want to do things, but curious whether which side this is - mine or the other, so to speak.
Also, sometimes when I am trying to see what is happening the 'save' button on the bottom of the page is not 'live' - maybe this relatesdirectly to the issue. Any clues as to the possible issues would be appreciated, thanks JarrahTree 10:52, 31 October 2016 (UTC)
Thank you both! fixed - thanks again, embarrassing :) 11:48, 31 October 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Changes this week
Future changes
Miscellaneous
Tech news prepared by tech ambassadors and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
16:18, 31 October 2016 (UTC)
moved to
WT:DYK
|
---|
This problem has existed for a few months on Template talk:Did you know. Once you get down to the newest subsection dates, the templates don't transclude very well. We were told back in September that the problem was that page is exceeding Template limits Post expand include size. At that time, we had a large special occasion holding area for various special events. The holding area has very little in it now, and the number of nominations we have are otherwise a lot less. The problem is worse than ever. Regardless of what is causing this, can it be fixed? As the internet expands, so does the size of everything programmed into it, and DYK won't be the only ones this happens to. How do we fix it for the future? — Maile ( talk) 21:52, 30 October 2016 (UTC)
|
So I was curious the other day as to whether or not the system would allow creation of usernames with emoji, and it turns out it does (but only when you click the checkmark to bypass anti-spoofing features). Now that I'm stuck with User:🌪, I kinda want to use it as my main alternate account, but I hesitate because I know emoji show up differently across different platforms and I'm unsure of how they would work technically with the MediaWiki software, gadgets, etc. Is there any policy or technical reason that I shouldn't use 🌪 as my alternate account, or would I be in the clear to go ahead and do that? Ks0stm ( T• C• G• E) 00:36, 31 October 2016 (UTC)
Hi, yesterday I created a new article, but overnight, my computer updated and restarted. I was logged in when I created it, but now I can't find it anywhere! HELP! It was a lot of work! — Preceding unsigned comment added by Ophelia550 ( talk • contribs) 17:25, 1 November 2016 (UTC)
Hi - thanks for the reply. It's really odd. I worked for several hours on a new article, and I know I hit "save changes" dozens of times. It was previewing normally. I didn't move it yet, because I had to get going somewhere else. But this morning, I found that my computer (iMac, Chrome) had updated and restarted, and now I can't find any evidence at all of it. It's odd and frustrating.
Ophelia550 ( talk) 18:47, 1 November 2016 (UTC)ophelia550
Per this discussion, does anyone know why nothing appears on this page in mobile view? I presume it is caused by one of the templates used... Hawkeye7 ( talk) 00:51, 1 November 2016 (UTC)
metadata
class, which in mobile view has the declaration display:none;
- there's plenty on this matter in the VPT archives. --
Redrose64 (
talk) 02:36, 1 November 2016 (UTC)
metadata
class by looking at the first two lines on
this page, and clicking the link. We could change the rule - this is what it presently looks like: .content .tmbox,
.content .ambox,
.content #coordinates,
.content .navbox,
.content .vertical-navbox,
.content .topicon,
.content .metadata {
display: none !important;
}
.content .metadata
selector, or changed its specificity so that it no longer applied to a <div>...</div>
that belongs to one or more of the other classes set by {{
subst:fa top}}
(that is, boilerplate afd vfd xfd-closed
), then the boxes would be unhidden in mobile without breaking any bots. --
Redrose64 (
talk) 11:58, 1 November 2016 (UTC)
.content .ns-0 .metadata
. Unfortunately the mobile skin right now does not support .ns classes, I have submitted a patch for that, but that will take a bit. —
TheDJ (
talk •
contribs) 12:55, 1 November 2016 (UTC)Comments and proposals are requested at Template talk:Query web archive § Future of this template – Allen4 names ( contributions) 01:09, 2 November 2016 (UTC)
Hello all, I've been doing some clean up on rowiki and have gotten stuck - there are some pages (example: w:ro:Graham_Booth) that are getting classified as having invalid self-closing HTML tags. These only seem to appear when there is mapped wikidata information that is processed by their templates/modules (e.g. w:ro:Format:Infocaseta_Om_politic , w:ro:Modul:InfoboxPolitician). Would someone familiar with this syntax take a look at let me know if you see what is going awry? Thank you, — xaosflux Talk 15:02, 1 November 2016 (UTC)
[http://www.thisisdevon.co.uk/Party-leader-mourns-UKIP-s-greatest-servants/story-14209199-detail/story.html ''Party leader mourns 'one of UKIP's greatest servants'<span />'']
. The data is pulled from a reference in
wikidata:Q4405632 but one of the ro modules must be adding the selfclosing span tag.
PrimeHunter (
talk) 19:21, 1 November 2016 (UTC)
I haven't seen this announced, so... On November 14, WMFLabs could be down for upto 48 hours in order to work on the file servers. This does not mean Labs will be down 48 hours. It should be a shorter time frame if everything goes well. Most tools should be down during this period. Here is the original announcement. The downtime has been postponed from an earlier date. Bgwhite ( talk) 05:44, 2 November 2016 (UTC)
This edit, creating CountrY on 22 January 2001, says that it was performed by LinusTolke, and it shows up properly in his contributions. However, no such account exists! There once was such an account until it was moved to LinusTolke~enwiki during the SUL finalisation process, but in that case, this and all of LinusTolke' other edits should be credited to LinusTolke~enwiki. Any idea why a nonexistent account is credited with edits, why Special:Contributions says that an account doesn't exist simultaneously with providing a list of edits by that account? Nyttend ( talk) 22:51, 1 November 2016 (UTC)
I made User:White Arabian Filly/Infobox Standardbred horse per the request of a user who creates many articles about notable harness racing horses. They want the wins, honors and awards parameters to be in their own little "boxes" with the header on top like Template:Infobox horse person but for the life of me I can't figure out how to make it work right. Can anybody look at it and tell me what I'm doing wrong? (By the way, I'm not keeping them that weird green color that looks like tree fungus. That's just for the development process.) White Arabian Filly Neigh 21:01, 1 November 2016 (UTC)
|thumb
for images inside infoboxes. You get two extra borders; see
WP:INFOBOXIMAGE. --
Redrose64 (
talk) 23:14, 1 November 2016 (UTC)
I know the issue with receiving emails sent via Special:EmailUser has been ongoing for a while, but until yesterday that didn't seem to affect gmail users. I've now not received two of the emails I got notifications of being sent to me - just thought I'd drop a message here in case anyone else is having new problems. These new issues have been reported to the phab task -- samtar talk or stalk 20:04, 2 November 2016 (UTC)
When I view Wikipedia in Safari on OS X, it says "Safari can't verify the identity of the website 'www.wikipedia.org'." 63.251.215.25 ( talk) 16:00, 3 November 2016 (UTC)
at the bottom of ZiL#External_links, the last navbox says "parent" next to the title. but, when I look at Template:ZIS/ZIL timeline 1930-1960, I don't see the same thing. It seems like a LUA problem? @ Jackmcbarn and Mr. Stradivarius: thank you. Frietjes ( talk) 14:27, 4 November 2016 (UTC)
Talk:Yohannes IV has "WikiProject Ethiopia| class=C" but it displays as "has not yet received a rating on the project's quality scale". Any ideas? Nurg ( talk) 09:48, 4 November 2016 (UTC)
c=no
means that this WikiProject doesn't grade articles as C class. --
John of Reading (
talk) 09:59, 4 November 2016 (UTC)
I am copying the footnote syntax used in United States v. Progressive, Inc., in which if you click on the link in the Notes section you jump to the relevant highlighted entry in the References section. In the Doris Grumbach bio I am working on in my sandbox, User:HowardMorland/Sandbox-6, the link from Notes to References fails to work. What am I doing wrong? Thanks. HowardMorland ( talk) 19:48, 4 November 2016 (UTC)
QUESTION: Seems some of my imagemap work may have gone well - esp " Template:Features and artificial objects on Mars" and my newly created template " Template:Features and memorials on Mars" (imagemap image for each = " File:Mars Map.JPG"; imagemap coordinates determined via http://imagemap-generator.dariodomi.de/) - However - adapting another image (" File:Pierre-Auguste Renoir - Luncheon of the Boating Party - Google Art Project.jpg") (related to the article => " Luncheon of the Boating Party") does not seem to work at all - ie, coordinates related to people pictured in the painting (via http://imagemap-generator.dariodomi.de/) do not seem to be noticed on a newly created template page similar to the templates mentioned earlier - what might I do to make this imagemap effort work with this Renoir image? - in any regards - Thank you for considering the issue - and - Enjoy! :) Drbogdan ( talk) 21:06, 4 November 2016 (UTC)
How plausible and helpful would it be to set up ref's in such a way that upon putting a cursor over the number of the ref, it would highlight anything in the section that it was verifying. This would likely be achieved by putting certain words, perhaps <startref"something">
and then <endref"something">
before and after (Respectively) the sentences the ref pertained to, it would pull from the ref (one of the main weaknesses I can see in my proposal is that it would likely require that all refs use a refname=
format.) What do you guys think?
Iazyges
Consermonor
Opus meum 23:44, 4 November 2016 (UTC)
Inside Special:SpecialPages, the link to the Special:ContentTranslation seems to have something wrong. Maybe it should be fixed. -- Stang 01:47, 5 November 2016 (UTC)
Hello! Per the discussion at
Template talk:Infobox television#Proposal: Add "native_name" parameter could someone please lend a hand to add |native_name=
to
Template:Infobox television underneath |show_name_2=
? I'm not sure what it all entails to do this, but the idea was to duplicate
Template:Infobox film's |film name=
parameter. So for instance at the film article for
Drishyam:
produces:
in the infobox. We want that same thing to be possible for TV articles, but we're changing the parameter to |native_name=
. Thanks in advance for the help,
Cyphoidbomb (
talk) 02:41, 5 November 2016 (UTC)
Is it just be, or does WP:DYKN not display properly after November 1 (the nomination templates no longer transclude)? Satellizer el Bridget (Talk) 05:01, 5 November 2016 (UTC)
Given this URL:
The "http%3A%2F%2F" has been percent-encoded because it's in the query portion of the URL (the part following the "?"). This is in accordance with RFC 3986, which states in section 2.2 that : and / are reserved characters, meaning they should be encoded in the path and query strings.
There is also a special rule in section 3.4 that in the query string for characters / and ?, because they are frequently used in URIs "it is sometimes better for usability to avoid percent-encoding those characters". Thus this would also be acceptable:
However the question is, why don't we do this?
Drop the percent encoding of the colon %3A. According to section 2.2, percent encoding is needed only if there is a possibility of conflict with interpreting its meaning.. and the only purpose of the colon is in the protocol and port strings. Once we get to the path and query strings there is no possibility of conflict and so it's safe not to encode it. Certainly we do stuff like this all the time:
Any thoughts on not percent-encoding the : and / in the path and query strings? -- Green C 04:50, 5 November 2016 (UTC)
I use Opera v.30 on a Samsung Android 5.1.1 device to read most articles on here. But, whenever I get to the math equations, they virtually atomise. I can only see them after zooming so far in or switching to desktop. The mobile view is a lot more convenient on a phone for me. Please, what can be done? — Preceding unsigned comment added by Daimler Ben ( talk • contribs) 02:17, 6 November 2016 (UTC)
Is it possible to use
custom bullets in an hlist?
Jc86035 (
talk) Use {{
re|Jc86035}}
to reply to me 05:37, 6 November 2016 (UTC)
Apparently, category sorting now groups numbers 0–9 in one single caption. (Used to be ten captions: 0 ... 9). Does anyone have a link for the background ratio of this? - DePiep ( talk) 12:17, 2 November 2016 (UTC)
{{DEFAULTSORT:2000 dollars}}
which is why it doesn't sort
with $1 etc. but between
2000 Continental Championships and
2000 Emmy Awards. The thing to do is to look at pages where there isn't a {{DEFAULTSORT:...}}
- such as
$1000. --
Redrose64 (
talk) 00:36, 6 November 2016 (UTC)
How come Yahoo isn't showing up in the Finance links at Goldman Sachs#External links? The template doc says you can put in the Finance ID, but not to include it for public companies. Kendall-K1 ( talk) 18:52, 6 November 2016 (UTC)
yahoo
parameter is set to a non-empty value. The value is ignored. The link will always be decided by the symbol
paramter: http://finance.yahoo.com/q?s={{{symbol}}}.
PrimeHunter (
talk) 21:44, 6 November 2016 (UTC)
In Wikipedia:Village pump (technical)/Archive 144#Can't always access "Cite" in the wikitext edit window, I mentioned a problem I was having in able able to use the Cite function in the wikitext edit window, so as to use the pop-up forms for the "cite web", "cite book", and other cite templates. Well, the problem has recurred. Not only do I only get the "Cite" function to appear above the edit window only occasionally, but when it does appear, clicking on "cite web", "cite news", "cite book", or "cite journal" has no effect at all; no form pops up to enable me to supply the author, title, etc. This problem appears to apply to all articles I have been trying to edit today, but in case anyone is wondering, the first one I noticed it on was Leopold Frankenberger, Jr. -- Metropolitan90 (talk) 02:43, 6 November 2016 (UTC)
Extended content
|
---|
|
RefToolbar 2.0a
with {{}} icon in middle
. Instead, I get "RefToolbar 2.0b"
with Cite button on right
but no working popup. -
NQ
(talk) 20:08, 6 November 2016 (UTC)importScript('User:Mr.Z-man/refToolbar.js');
from your
monobook.js and see if that solves it? -
NQ
(talk) 19:13, 6 November 2016 (UTC)
Please see this discussion at Help Talk:CS1. It appears that somewhere, the language code "bn" has been changed to return " Bangla" instead of " Bengali". These are two names for the same language, according to Wikipedia, but most other parts of en.WP use "Bengali" as the name for this language.
Please respond at the original discussion. Thanks. – Jonesey95 ( talk) 04:24, 7 November 2016 (UTC)
would appreciate any help w/ Wikipedia_talk:RefToolbar#Autofill_2, thank you -- Ozzie10aaaa ( talk) 15:13, 7 November 2016 (UTC)
To the outsider, one of the harsher aspects of MediaWiki is that, ignoring cases appropriate for Oversight, page deletion hides the page history. One can ask an admin for temporary undeletion to gain access to the history, but that seems odd and inconvenient. Has there ever been a discussion about separating the two functions? Perhaps an option could be added to the delete function to the effect of "page history visible". If it takes many years to schedule such software modifications, perhaps Wikipedia could change its ways. For instance, in closing an AfD, admins could be encouraged to move to draft namespace. Perhaps better than that, a new namespace pair called "Deleted" and "Deleted talk" could be created to move pages to. Such a change might encourage a few more experts and professionals to participate as editors.-- 172.56.33.76 ( talk) 11:17, 7 November 2016 (UTC)
Hi! Just by chance if anyone has a clue and answers to this it would be really appreciated. Is there any way to alter the section order in the general layout of articles for a specific WP project (Basque WP), I mean automatize it? Regards Iñaki LL ( talk) 12:01, 5 November 2016 (UTC)
I would like to upload a photograph of a group of physicists taken at the Dublin Institute for Advanced Studies 1942. I have no idea what the copyright status is. However, the photo (and parts of it) is found in quite a few places on the internet including the 5 different URLs below. Is this an indication that the photo is open source and may be used in WP, say in the article about the Dublin IAS? OTH, If someone is sure that it is hopeless to use this photo, just say so and I will move on to other things.
Thanks for taking a look.-- Toploftical ( talk) 20:58, 7 November 2016 (UTC)
Thanks for the great advice. I will try that.-- Toploftical ( talk) 22:27, 7 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
.gitreview
for MediaWiki branches and extensions switched from targeting a specific branch to using track=1
.
[24]Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
23:01, 7 November 2016 (UTC)
Hi all. I'd like to know how to search for articles whose titles contain N' - e.g. Charles N'Zogbia.
The trouble is, if I search with the apostrophe, the results contain N-, N_ & all manner of not quite N'!
So, is there a way to restrict results to articles containing strictly N'?
Many thanks, Trafford09 ( talk) 20:08, 7 November 2016 (UTC)
/.*n'.*/gi
suffice? Could whip up a
Quarry query? --
samtar
talk or
stalk 20:42, 7 November 2016 (UTC)
/g
is the 'global flag' - find all matches in string (
linky) - wouldn't be needed here though, so apologies for including it.
Special:Search doesn't support regex by the looks of it (though
CirrusSearch does) so I'm running a
quarry query --
samtar
talk or
stalk 20:58, 7 November 2016 (UTC)N'
at
https://tools.wmflabs.org/grep. I get 543 mainspace results.
PrimeHunter (
talk) 20:55, 7 November 2016 (UTC)
Thanks, Iridescent and all. I was referring to articles whose titles contain N', so I'll follow up your very helpful links. Trafford09 ( talk) 00:10, 8 November 2016 (UTC)
Is there a way to find the files that are Unused and Fair use. Xaris333 ( talk) 20:39, 7 November 2016 (UTC)
I have often had problems with notifications through email. When I had it set to send by email they often did not come. For ages I got none. So, I started just using the Wikipedia website and I unchecked all email notifications, which is how it is now. That was quite some time ago, but a few months back some started to trickle through in the email, about one in seven? Jed Stuart ( talk) 02:56, 8 November 2016 (UTC)
I have just got logged out several times, "automatically", after just changing to other browser window. Once I couldn't log in even with correct password (after that, in second try, login was successful).
After third logout and reloading page notification came that I am logged in centrally and it logged me in automatically. Very weird... /WB: latest Chrome, OS: Win7/ -- Obsuser ( talk) 13:41, 8 November 2016 (UTC)
Hi everybody! Google Code-in (GCI) will soon take place again - a seven week long contest for 13-17 year old students to contribute to free software projects. Tasks should take an experienced contributed about two-three hours and can be of the categories Code, Documentation/Training, Outreach/Research, Quality Assurance, and User Interface/Design. Do you have an idea for a task and could you imagine mentoring that task? For example, do you have something on mind that needs documentation, research, some gadget or template issues on your "To do" list but you never had the time, and can imagine enjoying mentoring such a task to help a new contributor? If yes, please check out mw:Google Code-in 2016 and become a mentor! Thanks in advance! -- AKlapper (WMF) ( talk) 14:44, 8 November 2016 (UTC)
Hi, User:Ms Sarah Welch emailed to inform me that she is having logging in problems. "No active login attempt is in progress for your session." is coming up. Can somebody look into it?♦ Dr. Blofeld 15:44, 8 November 2016 (UTC)
Can someone finish the job and code \csch \sech \arsinh \arcosh \artanh \arcsch \arsech \arcoth
?
יהודה שמחה ולדמן (
talk) 14:38, 9 November 2016 (UTC)
Why does the embed function at John Bingham, 7th Earl of Lucan create a box within a box for the "person" embed and form properly for the previous "military" embed? Is it that I am not nesting them properly? Please ping me so I see the answer. -- Richard Arthur Norton (1958- ) ( talk) 21:53, 9 November 2016 (UTC)
{{
Infobox officeholder}}
sets the |headerstyle=
parameter of {{
Infobox}}
, essentially to the value background:lavender
- this is non-standard; whereas {{
Infobox military person}}
doesn't set the |titlestyle=
parameter of {{
Infobox}}
, which is standard behaviour. So for the sake of consistency, it's the coloured background that should be removed. --
Redrose64 (
talk) 00:37, 10 November 2016 (UTC)It used to be that I could save a version of my sandbox as a simple test for work to be done in a Lua module. I could then make an edit in the Lua module, put the name of my sandbox in the Page title box and click the Show preview button. Very handy, that. If the module change that I had made was not quite right (not at all uncommon), I could tweak the module and again click Show preview. Repeat ad nauseum.
That worked well because my browser remembered the value in the Page title box so I only had to enter it once (the browser also remembered it session-to-session so on the first module edit preview of a new session, a couple of letters was enough to get the browser to show the full name of my sandbox, thereafter retaining it until I was done.
Now, every time I want to preview a module change, I have to type user:trappi
at a minimum to get to my user pages and then scroll down the list to my sandbox. Every time. Who thought that this would be a good idea?
Is there any way to get around this 'improvement'?
— Trappist the monk ( talk) 14:11, 5 November 2016 (UTC)
Hi,
I've just wanted to try out the new Visual Editor "wizard", which suggests new users some page to edit. Sadly, the incomplete translation catched my eye. May you please fix the field [vector-view-edit]?-- Kopiersperre ( talk) 17:54, 10 November 2016 (UTC)
guidedtour-tour-gettingstartedtasktoolbar-edit-article-description-wikipedia
. Not quite sure what's going wrong here — @
Mattflaschen-WMF:, might
this change have broken it? Did we need to do a change in WikimediaMessages too?
Jdforrester (WMF) (
talk) 18:45, 10 November 2016 (UTC)In the periodic table of chemical elements, we have character/symbol "I" for iodine. How can I widen the clickable space? So I better → I , but of course we won't use spaces-to-format (and it copy/pastes badly). Any ideas, css maybe? - DePiep ( talk) 00:16, 6 November 2016 (UTC)
<span>...</span>
inside the link (with suitable styling) does work:
I. --
Redrose64 (
talk) 00:21, 6 November 2016 (UTC)<div>
inside the [[ ... ]]
in
Template:Element cell-named. That would expand the clickable area to the width of the table cell. It would need a bit of testing, considering how many pages use it. --
Unready (
talk) 01:18, 6 November 2016 (UTC)
<div>
through the [[ ... ]]
. Forcing it with $('a[title="Iodine"]').contents().wrapAll('<div></div>');
abc[[iodine|<span style="margin-left: 1ex; margin-right: 1ex">I</span>]] xyz
→ abc
I xyz<span style="display: block;">I</span>
. It makes the span
into a div
and gets it through the parser. It doesn't inflate the element artificially, but lets its width expand to 100% of its containing block. --
Unready (
talk) 02:07, 6 November 2016 (UTC)
display: block
gives:abc[[iodine|<span style="display: block;">I</span>]] xyz
→ abc
I xyz|3=
parameter naming, obviously). -
DePiep (
talk) 14:18, 7 November 2016 (UTC)
3=
, you could also use {{=}}
for =
in style=
. Even better IMO would be to put the span
in
Template:Element cell-named for all the symbols. I'm not certain if that'll break any other pages, though, so it would need testing. --
Unready (
talk) 07:09, 8 November 2016 (UTC)
I've edited sandbox2 for what I think is a simpler HTML document. See what you think. -- Unready ( talk) 11:37, 10 November 2016 (UTC)
Here's a Petscan which takes a wee while to run, and looks for the intersection of articles in Category:Women to 8 levels with Category:20th-century births to 3 levels (and where there's no wikidta item). And guess what? It's full of stinking men. wtf. Do we have any tools which would assist in working out just where our category hierachies go so badly wrong that we get this sort of result? -- Tagishsimon (talk) 12:24, 10 November 2016 (UTC)
Can anyone tell me where the system message (or whatever it is) is stored, that gives shortcuts to commonly needed unicode glyphs, wiki markup, and so on while you're editing a page? I know I edited it on la: once a long, long time ago, but I can't find it now, and for all I know it's kept somewhere else now anyway. In case I'm no being clear, I mean the thing that currently says
directly beneath where I'm writing. -- Iustinus ( talk) 01:48, 10 November 2016 (UTC)
The link http://geoiplookup.wikimedia.org/ has gone dead - does anybody know if there is a replacement? -- Redrose64 ( talk) 16:04, 10 November 2016 (UTC)
Is there some bit of script that I can drop into my common.css page that gives me a red dot ping (the same as if an edit is reverted, etc) if someone makes an edit to my userpage? Thanks. Lugnuts Precious bodily fluids 08:36, 11 November 2016 (UTC)
Hey all, if you're good with tables, can you donate a few minutes to List of highest-grossing Indian films#Highest grossing Indian franchise and film series, please? I'm having trouble making head-or-tails of the formatting...it's very confusing. It looks like some attempt was made to jury rig the column widths so that the table works on smaller devices, but the columns do not line up on my large monitor. The double-border of the table is inconsistent with the other tables. We need a Source column which should contain the references for consistency with the other tables, etc. Many thanks in advance, Cyphoidbomb ( talk) 19:21, 8 November 2016 (UTC)
We have a number of records which appear to be damaged in some way ... I'm wondering if anything could be done about them.
thanks -- Tagishsimon (talk) 23:18, 12 November 2016 (UTC)
We still have so many (dead) toolserver links as part of full urls, or using tools: from the interwiki map, and we should really doing better, especially in templates and in more important parts of the site. I encourage users to look to see what makes sense to clean up, especially if there is a replacement tool at toollabs:.
To note that I have a phabricator:T150598 request with suggestions with how we can manage the dead interwiki_map components, so feel free for those with a technical/environmental nouse to express your opinion there. — billinghurst sDrewth 04:35, 13 November 2016 (UTC)
SELECT COUNT(*), REGEXP_REPLACE(el_to, "^(https?:|)//([^?]*).*","http://\\2") AS BaseUrl
FROM externallinks
WHERE (el_index LIKE "http://org.toolserver.%/_%" OR el_index LIKE "https://org.toolserver.%/_%")
AND el_index REGEXP "https?://org\.toolserver\.[^/]*/(%7E|~).*"
GROUP BY BaseUrl
ORDER BY COUNT(*) DESC
LIMIT 100;
List of top 100 most linked base URL. The toolserver.org minihost craps out (Labs' "better infrastructure"). Used httpstatus.io for the HTTP status. — Dispenser 18:25, 13 November 2016 (UTC)
SELECT iwl_from, COUNT(*), REGEXP_REPLACE(REGEXP_REPLACE(iwl_title,
"(dispenser/cgi-bin/[a-z_.]+\.py)/(.*)", "\\1?page=\\2"),
"^([^?]*).*","http://toolserver.org/\\1") AS BaseUrl
FROM iwlinks
WHERE iwl_prefix="tools"
GROUP BY BaseUrl
ORDER BY COUNT(*) DESC
LIMIT 100;
Similar query for the interwikilink. Basically 139,000 links left by User:DPL bot on talk pages. — Dispenser 20:02, 13 November 2016 (UTC)
In this diff I corrected "access date" to "accessdate", yet when I saved, Wikipedia decided to re-spell "Urbana-Champaign" to "Urban-Champaign", thus re-instating a typo which I had corrected in my previous edit. Is there any way to stop Wikipedia introducing errors like this? Thank you, DuncanHill ( talk) 19:53, 13 November 2016 (UTC)
Example: ( File:Close central unrounded vowel.ogg)
STR:
It can be reproduced on both Chrome and Firefox. If I use their native players (i.e. play this directly: https://upload.wikimedia.org/wikipedia/commons/5/53/Close_central_unrounded_vowel.ogg), no such problem.
-- fireattack ( talk) 00:10, 14 November 2016 (UTC)
I apologise that this message is in English. ⧼Centralnotice-shared-help-translate⧽
We are having a problem with attackers taking over wiki accounts with privileged user rights (for example, admins, bureaucrats, oversighters, checkusers). It appears that this may be because of weak or reused passwords.
Community members are working along with members of multiple teams at the Wikimedia Foundation to address this issue.
In the meantime, we ask that everyone takes a look at the passwords they have chosen for their wiki accounts. If you know that you've chosen a weak password, or if you've chosen a password that you are using somewhere else, please change those passwords.
Select strong passwords – eight or more characters long, and containing letters, numbers, and punctuation. Joe Sutherland ( talk) / MediaWiki message delivery ( talk) 23:59, 13 November 2016 (UTC)
Please accept my apologies - that first line should read " Help with translations!". Joe Sutherland (WMF) ( talk) / MediaWiki message delivery ( talk) 00:11, 14 November 2016 (UTC)
When I transcluded {{ edit fully-protected}}, the template displays the other template, {{ edit semi-protected}}. Is the template broken or something? -- George Ho ( talk) 06:07, 14 November 2016 (UTC)
Hye. I wrote the article Irina Nevzlin a long time ago, butfor some reason it wouldn't show in Google. Is there an explanation for it? Sloewn ( talk) 07:18, 14 November 2016 (UTC)
What I'd like to do is create a script that hides annotations in the list items in lists, without having to change the source text of articles in any way. The annotations I'm interested in start with an en dash surrounded by spaces. Like in the list items below:
I found some sample code that homes in on elements with one's desired text in them, and altered it to do a test to find all list items with an en dash surrounded by spaces, and color them orange:
$(document).ready(function(){
$("li:contains( – )").css("background-color", "orange");
});
(I then looked around with the script active to see how well it found annotated list entries, and it does so very well. The list above, for example, turns orange.)
Now I'd like to do a test of text replacement. How can the above script
be changed with a regex to replace the " – " and all text that follows it, with nothing?
I look forward to your reply. The Transhumanist 04:18, 9 November 2016 (UTC)
.css("display", "none")
to hide the cells from view.$(document).ready(function(){
$("li:contains( – )").css("display", "none");
});
.remove()
to remove the cells from the DOM entirely.$(document).ready(function(){
$("li:contains( – )").remove();
});
<span foo="bar – baz">some text</span>
, and that can lead to security holes. The proper way to do this is to iterate over all the elements recursively, and remove everything after the dash. I have put some code together that does this, although it is probably not very efficient; others might know of better ways to do it.$(document).ready(function() {
function walkTheDOM(node, func) {
// Walk the DOM recursively, applying func to each node.
// Nodes can be any node in the DOM, including elements,
// text nodes and comments.
func(node);
node = node.firstChild;
while (node) {
walkTheDOM(node, func);
node = node.nextSibling;
}
}
$("li:contains( – )").each(function (index, elem) {
// For each li element found by the selector, walk the DOM to
// find the first dash. Once we have found it, remove
// everything after it.
var foundDash = false;
walkTheDOM(elem, function (node) {
if (foundDash) {
// We found the first dash already, so remove the node
// if it is of an appropriate type.
if (node.nodeType === 1) {
// The current node is an element
$(node).remove();
} else if (node.nodeType === 3) {
// The current node is a text node
node.nodeValue = "";
}
} else if (node.nodeType === 3) {
// The current node is a text node, and we haven't found the
// first dash yet, so check whether it is there.
var dashIndex = node.nodeValue.indexOf(" – ");
if (dashIndex >= 0) {
// We found the first dash, so split the text node in two
// where we found it, and blank the second one.
var nodeToRemove = node.splitText(dashIndex);
nodeToRemove.nodeValue = '';
foundDash = true;
}
}
});
});
});
.remove
is being used right there..remove()
is necessary because annotations are not necessarily just text; they might include links or references too, and it would be strange if you removed all the text but left link and reference elements intact. Having the script remove everything after the dash but leave sublists alone is not easy, though, and would require more complex code than the example above. It also wouldn't work in edge cases such as the table in
Outline of domestic violence#Forms, as those outline items are not in HTML lists at all. For your proposed script to be robust, I think you would need to add markup to all of the outline articles. For example, you could have a template call like {{outline item|[[Dendrology]]|involves the study and identification of economically useful tree species}}
, which would expand to <span class="outline-link">[[Dendrology]]</span><span class="outline-separator"> – </span><span class="outline-annotation">involves the study and identification of economically useful tree species</span>
. Then hiding the annotations would be as simple as $('.outline-separator, .outline-annotation').css('display': 'none');
. Also, yes, it is possible to use regex with the contents of an element (you can get/set the HTML as a string using
innerHTML), but please don't, because it is a
really bad idea; doing so is liable to break and/or introduce security flaws into your script. —
Mr. Stradivarius
♪ talk ♪ 11:26, 11 November 2016 (UTC)
Are you trying to make it possible to transclude a list (that contains descriptions of items) into an outline (without those descriptions)? Whatamidoing (WMF) ( talk) 15:35, 9 November 2016 (UTC)
I need to talk to someone who actually has one up and running, and who wouldn't mind sharing the details on how they did it. The Transhumanist 18:45, 14 November 2016 (UTC)
{{ Check mark}} template is constantly getting repeated use in a single page such as a large list like this (I know this page suffers not only from checkmark template, but this still doesn't overshadow the shortcoming of #ifexist from this single template). Even if the whole page only checks for one non-green tick image file, the expensive parser function count still accumulates per usage. Without #ifexist the page will load slightly faster and score smaller preprocessor visited node count which means a lot in large lists. Please consider my sandbox version. -- Sameboat - 同舟 ( talk · contri.) 05:27, 14 November 2016 (UTC)
{{#switch:lc:{{{color|{{{colour|green}}}}}}|green|red|black|light green|olive green|yellow|orange|blue|cornflower blue|purple=assume color exists...|default=check if color exists...}}
.
PrimeHunter (
talk) 10:57, 14 November 2016 (UTC)
A reader reported ticket:2016110310003941 that they were blocked while trying to use the "cite this page" link. They are not a registered user and I think I've tracked down that they were using an IP address, probably dynamic, which is blocked for other reasons, but I'm unclear why clicking the "cite this page" link would trigger a message that they are blocked. While I'm not a regular user of that feature it appears to generate some information but doesn't trigger an edit of the page so why would it be unavailable even if the IP is blocked?-- S Philbrick (Talk) 18:48, 11 November 2016 (UTC)
Would it be possible to create a list of all Redirects created by User:Neelix which do not appear on this list [34], or almost equivalently, a list of redirects created by Neelix, and then subsequently edited by a different editor (including bots)? If both are practical, the former is preferable. The list should contain approximately 30,000 redirects. Thanks. Tazerdadog ( talk) 08:37, 14 November 2016 (UTC)
58689 new pages (created by Neelix) 48272 redirects (at creation) 28213 titles (have only Neelix as an editor)
58689 new pages (created by Neelix) 48272 redirects (at creation) 20059 titles (have at least one other editor)
One of the major reason I hate mobile view is that when the site decides to switch from the desktop view of special:watchlist to mobile view automatically, it is not redirected to the exact counterpart which shows the recent changes of my watching pages, but actually the special:editwatchlist page. If I want to go back to my usual watchlist, I have to click the counter-intuitively named "modified" button and in case I want to access the desktop view, I need to switch 2 pages in total from the mobile editwatchlist page which I rarely use. If you can fix this I will be happy. If you can provide an option in the preferences to disable mobile view altogether for registered users, I will be deeply grateful. -- Sameboat - 同舟 ( talk · contri.) 07:54, 15 November 2016 (UTC)
Can somebody please revert File:Grand Theft Auto logo series.svg to the previous version because the new version represent the logo of one of the games of the series, but not all series? -- Tohaomg ( talk) 10:23, 15 November 2016 (UTC)
Please see this discussion. The RedBurn ( ϕ) 15:59, 15 November 2016 (UTC)
There was a problem with template lang-fa at the article Ahmad Khomeini ( | talk | history | protect | delete | links | watch | logs | views), which was subsequently fixed by HyperGaruda. My question is, can there be a global fix of this problem at the template level instead of patching it up at the article level? It seems ironic that the problem is generated due to the right-to-left writing of the Persian language, since the template is designed for that language. Dr. K. 22:22, 12 November 2016 (UTC)
{{lang-fa|سید احمد خمینی}}
generates: [[Persian language|Persian]]: <span lang="fa" dir="rtl" >سید احمد خمینی</span>‎‎
. Here dir="rtl"
marks text as
right-to-left. Note the template adds two ‎ (left-to-right) markers after the text. I find it odd that HyperGaruda apparently had to add a third in
[35]. My Firefox 49.0.2 had no display problems with the former version but such things can be browser dependent. Browsers can try to guess whether numbers and special characters should also be displayed right-to-left next to right-to-left text. We could add a third ‎ in {{
Lang-fa}} and similar templates if that helps some browsers but three sounds a little excessive to me.
PrimeHunter (
talk) 23:18, 12 November 2016 (UTC)
</span>
anyway? But I'd agree that three lrm markers are a bit much.
De728631 (
talk) 23:27, 12 November 2016 (UTC)
Hello. I am trying to fetch data from Wikidata to Wikipedia, using a template. I have some problems with qualifiers and other things. Does anyone can help me? Xaris333 ( talk) 10:58, 13 November 2016 (UTC)
--get current page's Wikidata entity
local wde = mw.wikibase.getEntity()
--get raw value of P115
local p115 = wde"claims"]["P115"][1]["mainsnak"]["datavalue"]["value"]["id"
--get Wikidata entity for venue. Note that this step counts as expensive.
local venueEntity = mw.wikibase.getEntity(p115)
--get capacity value for venue
local capacity = venueEntity"claims"]["P1083"][1]["mainsnak"]["datavalue"]["value"]["amount"
--format the capacity value according to the local language rules
local capacityString = mw.language.getContentLanguage():formatNum(tonumber(capacity))
capacityString
somewhere. {{
Nihiltres |
talk |
edits}} 22:46, 15 November 2016 (UTC)There seems to be a bug in the display of links in image captions. The first image above illustrates it at
Lydian mode#Ancient Greek Lydian (
current version). I thought it might have something to do with the CSS display
property, so I thought to force display: inline
by wrapping the entire caption in <span>...</span>
. I don't know how to inspect elements on this browser (Firefox for Android 49) so I don't know if this is actually the issue, but the hack certainly fixes the display, as shown in the second image.
Hairy Dude (
talk) 22:52, 14 November 2016 (UTC)
In this edit, I only added the new comment. I did not modify the existing comment. I and others easily could have missed it, and it could have been in an article instead of an article talk page. I know we have been aware of this for awhile, but I'm really surprised it has persisted for this long. What is the status? Can anybody point me to an existing phab ticket? ― Mandruss ☎ 08:42, 16 November 2016 (UTC)
Dear Wiki DEVs, please add this HMTL5 code to make the cursor auto focus on the search bar as soon as the search text field finished loading:
https://davidwalsh.name/autofocus
This will make it a lot easier to search articles in Wikipedia.
Thank you. 77.180.36.32 ( talk) 14:07, 16 November 2016 (UTC)
RfC is at MediaWiki talk:Common.css #RfC to regularise spacing between paragraphs on talk pages. All comments appreciated. -- RexxS ( talk) 22:57, 16 November 2016 (UTC)
The gadget to give green text on a black background is still malfunctioning. This was raised in this thread a month ago. Does anyone know of a fix or if anything is being done to create one? Thanks, DuncanHill ( talk) 13:30, 12 November 2016 (UTC)
Oyveh. Try the night mode on the official Wikipedia android app. -- Atlasowa ( talk) 22:59, 16 November 2016 (UTC)
For putting the reference section in a box with a scrollbar Help:Reference display customization says to put the following in your skin.css:
/* Reference list in a box with a scrollbar */
@media screen {
div.reflist {
overflow-x: hidden;
overflow-y: auto;
padding-right: 0.5em;
max-height: 320px;
}
}
The thing is, it doesn't work. It seems to want to scroll horizontally and not vertically. And the entire webpage has a horizontal scrollbar. I've tried disabling columns/column width, setting a max-width, and playing around with the overflow values. I imagine that the above is outdated (indeed, Help:Reference display customization edited last over two years ago). Can anyone offer a solution? I'm on Chrome version 54.0.2840.99 m. Brightgalrs (/braɪtˈɡæl.ərˌɛs/) [1] 23:25, 16 November 2016 (UTC)
On 3 November, I received notification that an e-mail had been sent to me, but that e-mail never arrived. I had forgotten about this until today, when I received notification about another e-mail, which 90 minutes later has not arrived either. This feature has previously worked, I have not changed the "Enable email from other users" under Preferences, and I still receive e-mails telling me that there have been changes to my talk page - so Wikipedia has the right e-mail address, Is this a known problem, and/or is there a cure? - Arjayay ( talk) 11:12, 17 November 2016 (UTC)
I get
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.
Going back and reloading doesn't help. It happens here and on Meta. No problems logging in with my Dell laptop running Windows 10 or my Samsung Galaxy 5. Any thoughts? (I first noticed this about 12 hours ago, and I'm pretty sure I haven't changed any settings.) -- Anthonyhcole ( talk · contribs · email) 01:27, 17 November 2016 (UTC)
So, this is still happening. I'm on my iPad and can't log in. Is there someone at Wikimedia technical who I can ask about this? (Anthony) --— Preceding unsigned comment added by Anthonyhcole ( talk • contribs) 13:46, 17 November 2016 (UTC)
Not 100% sure whether this was raised before, but I think it could be worthy to make edit summaries correctable after saving. There are several issues with this. First, obviously when you mistyped something your error becomes permanently and irreversibly logged (particularly during common tasks, like "wikilink" instead of "italics", etc). Secondly, at least Firefox by default uses auto-filling in edit summaries, so when you enter letter "w" for example, the browser may suggest "wikilink" or "wl" (I accidentally got this recently). Third, canned edit summaries probably may cause similar accidental errors on mobile devices. So overall such feature could be useful and handy, unless there are technical limitations. Brandmeister talk 12:46, 12 November 2016 (UTC)
I am a major contributor with serveral thousand new articles who's coming up to my 15th year. Today while playing Tuesday trivia at a local pub I received several emails from the wiki, which is highly unusual. I opened them to find I had been globally banned from the wiki for something trump and something namespace, neither of which I have any idea about. In spite of limiting my edits mostly to WWII UK radar, nuclear fusion, and 1960s ABM systems, other editors apparently felt I was responsible for this, and immediately universally banned me.
There are instructions about how to appeal a block, but these require you to log in, which I cannot do. So can anyone help me out? I have an FA in progress.
Maury Markowitz
PS posting from my iPhone,please forgive any spelling issues.
This whole process was sub-optimal and needs fixing:
This was a heap of fail. And before anyone smugly tries to blame me for this, I should point out I am the victim here. So my suggestions:
Maury Markowitz ( talk) —Preceding undated comment added 12:46, 16 November 2016 (UTC)
Hi all, I've been looking at last years security review RfC with the view to launch a specific RfC to implement password audits. The 2015 RfC established consensus to perform these audits on administrator and functionary accounts, with a view to discuss the technical implementation in the near future - I hope to get the community to decide which method to use and have been drafting the RfC at Draft:Security review RfC 2016, but I can only think of one feasible method of checking. Does anyone else have any other suggestions for methods of auditing specific user groups' passwords? (Not which one we should use (that's for this RfC) or if we should audit passwords (consensus was made here)). -- samtar talk or stalk 11:05, 17 November 2016 (UTC)
I've seen this...thing on Template:Charlton-trademark-copyright. No parameter named DC is part of the calling structure so I think this is a parser function. Unfortunately all the materials on WP, Meta and MediaWiki said nothing about this. What does it do? — Preceding unsigned comment added by T3h 1337 b0y ( talk • contribs) 07:08, 18 November 2016 (UTC)
No parameter named DCis documented. It's still a parameter. Looking at the template source, setting DC to anything non-null makes the template omit the
blah blah defunct blah blahstatement. -- Unready ( talk) 07:52, 18 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
meta
+ shift
+ k
to add a reference. The meta key is often the control key or command key.
[39]Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
19:17, 14 November 2016 (UTC)
?uselang=uk
or ?setlang=uk
. (But not very much, because >98% of the UI is already translated into Ukrainian.
Whatamidoing (WMF) (
talk) 07:37, 16 November 2016 (UTC)
If anyone with template experience is interested in doing mildly boring and repetitive things, you could help out with
the conversion of coordinates-related infobox template parameters by editing infoboxes so that they can have superfluous parameters removed. Thanks,
Jc86035 (
talk) Use {{
re|Jc86035}}
to reply to me 09:36, 19 November 2016 (UTC)
The main page appeared in my watchlist despite me not adding it to the watchlist. Does this have anything to do with the recent hack and subsequent edits to the main page? SwineHerd ( talk/ contribs) 15:14, 18 November 2016 (UTC)
As the title suggests, the Page Curation toolbar is not appearing for me as it should, and in fact never has. I was told you not need to add any JS for it to work, and I have the latest Java update, as well as the new NPP permission. Tried on 2 laptops & mobile using Chrome & Firefox, so guessing it's an account-related issue. Does it have to be enabled in some way? Joseph 2302 10:55, 19 November 2016 (UTC)
About Chemistry, 3D images. By {{
Infobox drug}} and {{
Chembox}} (17K transclusions), we have input ACII string |SMILES=
that can be fed to an external link, to show a 3D model called
Jmol or JSmol, interactive eg by mouse. Example:
|SMILES=Clc1ccc(cc1)C(c2ccc(Cl)cc2)C(Cl)(Cl)Cl
,
Jmol interactive 3D model (worth trying)This is what I know. (from here: my projection only). Now for a long time people have suggested we could incorporate the code into mw. So that we can have an interactive 3D image right in the infoboxes (not an el any more). See this and this talk. Is this worth a Phabricator id? - DePiep ( talk) 23:26, 17 November 2016 (UTC)
System.out.println("Jsmol.js Jmol._loadImage using data URI for " + id)
inside the Javascript... —
TheDJ (
talk •
contribs) 09:40, 18 November 2016 (UTC)
I'm looking specifically for tools that will let me figure out what the true range is of a series of IPs, as well as find all anonymous edits on that range. This would all be for the purpose of guessing the collateral damage caused by an IPv6 rangeblock. How do other admins handle these? Thanks. Someguy1221 ( talk) 07:56, 20 November 2016 (UTC)
Is there a script or bot that can clean up the refs at History of Cleveland Clinic? This is a new article that was written by somone who used an awkward ref format. In particular I find all those urls hard on the eyes. Even just putting them all inside brackets would be an improvement. Kendall-K1 ( talk) 20:34, 20 November 2016 (UTC)
At
Wikipedia talk:Password strength requirements#Password testing tools, in the post by
^demon (
talk ·
contribs) timed at 06:30, 18 November 2016 (UTC) there is a character before the signature which looks like a yellowish circle. I assumed an image, but on going into edit mode, I saw that it is yellow there as well - an anomaly amongst the otherwise black text on white. It even shows up yellow in
the diff. Using
Unicode code converter I see that when pasted into the first green box it is yellow there too, and may be encoded as 😖
or U+1F616
. When did fonts start having inherent colour? Note: I updated to Firefox 50.0 overnight, which may or may not be coincidence. --
Redrose64 (
talk) 08:42, 18 November 2016 (UTC)
<span style="color:blue;">❤️</span>
which displays as ❤️ which is clearly not blue), use of such characters in links constitutes an accessibility violation. --
Redrose64 (
talk) 11:02, 20 November 2016 (UTC)
I sometimes use mw:API:Purge to purge page caches, using the option to update categories. That can be useful when investigating error tracking categories. Even using the example in the API:Purge documentation shows a warning: "Use of action=purge via GET is deprecated. Use POST instead."
Following is a URL I used a few minutes ago to remove some fixed pages from articles with script errors. I have split up the URL to make it easier to follow:
https://en.wikipedia.org/w/api.php ?action=purge &forcelinkupdate=1 &titles=207109_Sturmenchopf|Dasher_High_School|Davidson,_Indiana|Port_Julia,_South_Australia
Presumably the warning is related to the changes a few weeks back which mean that adding ?action=purge
to a URL requires a manual confirmation. I understand the slightly
WP:BEANSy reason for requiring POST, but what is going to happen to the API? How can a POST equivalent to the above be done?
Johnuniq (
talk) 09:35, 20 November 2016 (UTC)
/**
* For action=purge GET, change it to POST, then reload the page
* Restores pre-1.28 behavior to MW 1.28+
* Based on meta:User:Glaisher/autoPurge.js, 21 Aug 2016
*/
if ((mw.config.get('wgAction') === 'purge') &&
($.inArray('user', mw.config.get('wgUserGroups')) + 1)) {
$.post(mw.config.get('wgScriptPath') + '/api.php', {
format: 'none',
action: 'purge',
titles: mw.config.get('wgPageName').replace(/_/g, ' ')
}, function () {
// remove action=purge, but keep the rest
location.replace(
location.pathname +
location.search
.replace(/(?:\?|&)action=purge$/i, '')
.replace(/(\?|&)action=purge&/i, '$1') +
location.hash
);
});
}
.post()
method in your framework instead of .get()
.
Anomie
⚔ 20:32, 20 November 2016 (UTC)
I have regularly used the SpamUserPage script in SD patrolling, but the button seems to have disappeared. Script reads importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js');. Also pinging Mr. Stradivarius Jimfbleak - talk to me? 14:32, 20 November 2016 (UTC)
Anyone looking for a project? My kingdom for an external text editor with a live preview. I sometimes use GhostText to get syntax highlighting and general external text editor benefits, but it could use a few tweaks, namely some live preview option while the Wikipedia window's editable text area is not in use. Even some small script that periodically toggled the live preview function (from Preferences > Editing > Preview > Use live preview) would be great, but even better would be previewing the specific section active in the external editor. Something like this would make editing much more productive ( Bret Taylor would agree). czar 08:18, 21 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Problems
Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
15:32, 21 November 2016 (UTC)
It appears that recent updates to the software are causing a minor issue with image captions on the mobile site. Ordinarily, the captions would be spaced to the width of the image, but now they are being forcibly stretched across multiple lines. It's like a paragraph typed in Microsoft Word where the margins are justified and you press shift and enter halfway through a line; you end up with three or four words in a line. Prisonermonkeys ( talk) 02:32, 21 November 2016 (UTC)
Here is a screencap of what the issue looks like:
However, some captions—such as the boy scout one in the above section—do appear properly, though I have no idea why. Prisonermonkeys ( talk) 02:40, 21 November 2016 (UTC)
@ TheDJ — it's all good now, thanks. Prisonermonkeys ( talk) 00:45, 22 November 2016 (UTC)
I cannot log in or reset my password. I have been a registered Wikipedian since 3 September 2003. I am a system administrator. /info/en/?search=User:Hawstom The system will not email me. — Preceding unsigned comment added by 72.201.76.62 ( talk) 17:47, 7 November 2016 (UTC)
sysop
, which is short for
system operator. Given the other things on that user page which indicate its age, that it should refer to the permission as "system administrator" isn't particularly bothersome. --
Izno (
talk) 05:12, 8 November 2016 (UTC)
Please see above
this discussion.
Thanks, PrimeHunter. What's happening is that I am simply not getting a message (including spam) at the address I believe I have been using since before 2001. Since it is a gmail address, I could have done some sort of cutesy when I registered at Wikipedia like added ****+wikipedia@gmail.com to my address. I don't know. But thst should not prevent the message from getting to me assuming I wasn't using some sort of obsolete alias like *****@despammed.com or *****@spamgourmet.com. Anyway, what are my options at this point? I am happy to register a different account, though I am sorry to see my vintage account go by the wayside. I do have many old Wikipedian friends who could vouch for me, if that's an option. I also can demonstrate I control the web sites that I have claimed as my own at User:Hawstom#Personal_Point_of_View_Disclosure for the past 15 years or so. There's a 2006 version of User:Hawstom about 15 edits ago at [53] 72.201.76.62 I guess it would also be very easy to show in the usual ways (driver license, passport, etc.) that I am really Tom Haws, whom I have identified myself as on Wikipedia in my talk signatures. Thanks again. No rush. 72.201.76.62 ( talk) 20:36, 15 November 2016 (UTC)
I am only a Wikipedia administrator (sysop was the term back in the day when they dubbed me an admin (broom, dustpan, and hand grenade)). In any case, the login problem persists. Sorry. I don't edit much in the past ten years or more. 72.201.76.62 ( talk) 20:23, 15 November 2016 (UTC)
And yes, it's a drag to be using an IP address to be discussing this. I could have created a sock puppet, but oh well. 70.167.218.19 ( talk) 23:27, 15 November 2016 (UTC)
Thanks for looking into that for me. I don't have access to anything at thaws@kwhpe.com or thaws@hubbardengineering.com anymore (that is where I was working 1999 to 2010). But I still do control hawsedc.com and constructionnotesmanager.com. I thought that Wikipedia used to have a private messaging system, but I do not see that at the moment. If it's one of the latter, I can go into the mail system at my web site and get the mails. If the account email is one of the former, I possibly could ask Hubbard to look into it for me. Or you could just point the email to something at hawsedc.com like tom@hawsedc.com since that is obviously a web site that belongs to User:Hawstom based on the status of User:Hawstom since 2006 I referenced above. 70.167.218.19 ( talk) 00:28, 16 November 2016 (UTC)
Thanks, Max. I did research and find that perhaps my gmail account only goes back to 2005 (???) and before that I did use hawstom@sprintmail.com. I don't have access to that anymore. If it's not too much trouble, can you let me know if any of the following would be suitable trusted Wikipedians? Alternately, couldn't I just put a breadcrumb at one of my (Hawstom's) personal web sites, like a message to you? -Tom
Also, the plot thickens. Not only can I not access this account, I also cannot access my es account es:Usuario:Hawstom. Hmm. Maybe I really am not myself!?! Whoa! -Tom — Preceding unsigned comment added by 70.167.218.19 ( talk) 19:56, 18 November 2016 (UTC)
News flash. I just found out I am logged in on my smart phone on en. I am going to see if I can resolve the issue for en from my smart phone. Yay! Tom Haws ( talk) 17:07, 20 November 2016 (UTC)
Follow-up: As I suspected, the smart phone interface is not robust. I will keep trying. In any case, I do confirm that the anon claiming all the above is really me. Anything you can do to help is still appreciated. My real world identity on this account has never been hard to guess. I am Arizona Registered Civil Engineer #30503, Thomas Gail Haws, and I am the sole author of [tomsthird.blogspot.com] and [hawsedc.com]. Tom Haws ( talk) 17:23, 20 November 2016 (UTC)
Here are some links that may help from smart phone. Special:ChangeEmail Special:Preferences. 72.201.76.62 ( talk) 17:37, 20 November 2016 (UTC)
Well, that didn't work. The system asks me to verify my identity with a password. I am starting to think my account was hijacked even though I don't see any surprising activity yet. Consider the following facts:
Is it possible for a person with sufficient rights to change my email to tom.haws@gmail.com? Tom Haws ( talk) 17:59, 20 November 2016 (UTC)
Since MediaWiki 1.27 (~6 months) users must log in again before accessing ChangeEmail or the like, to make it harder for attackers who obtain a session somehow (stolen phone, copied session cookie via XSS etc) but don't know the password.
Changing the email for an account with such a clear link to an IRL identity is probably fine, but I'd like to see community consensus on it first. -- Tgr (WMF) ( talk) 00:10, 22 November 2016 (UTC)
Is there a problem with user-creation logs? I cannot seem to be able to find mine. Shyamal ( talk) 03:57, 22 November 2016 (UTC)
I have two issues on the same template, am no good at coding myself, and have asked several places with no positive response.
File:WikiProject_Scouting_uniform_template_male_male_head.svg
File:WikiProject_Scouting_uniform_template_male_longshirt.svg
File:WikiProject_Scouting_uniform_template_male_bermudas.svg
File:WikiProject_Scouting_uniform_template_male_boots.svg if you need a bitmap let me know.
Thanks anyone who can help!-- Kintetsubuffalo ( talk) 02:20, 21 November 2016 (UTC)
While it is easy to find what an article look like at any point in time in the past, I don't know how to do that with categories. I haven't really had a need other than idle curiosity but I'm feeling an email sent to Wikimedia in which someone states that the category Category:Human proteins, now with 837 entries, had over 11,000 at one time. Can anyone tell me how to see the history of a category?-- S Philbrick (Talk) 21:01, 22 November 2016 (UTC)
I see that User:Pppery recently edited {{ Testcases notice}} to prompt a G8 under certain conditions.
I've looked at a few, e.g. {{ Abbr/testcases}} and don't think it is correct. Am I missing something? This has dumped about 250 templates into CSD, which I think are in error. (and yes, I have asked User_talk:Pppery#G8)-- S Philbrick (Talk) 22:02, 22 November 2016 (UTC)
{{
Testcases notice}}
, {{
Template sandbox notice}}
and at {{
Rfcquote}}
. Points (b) and (c) are covered at
WP:TESTCASES, and you are clearly aware that such things as testcases exist, otherwise you would not have gone near {{
Testcases notice}}
. --
Redrose64 (
talk) 00:18, 23 November 2016 (UTC)Interwiki links for Minute and second of arc shows only two other links from en., instead of 39, needs fixing, please. -- Mpj7 ( talk) 19:28, 21 November 2016 (UTC)
Hi y'all! I've started an RfC on adding a CentralAuth link to the sidebar when viewing user or user talk pages. Please chime in at MediaWiki talk:Sidebar#Add CentralAuth link to toolbox section in userspace. Ks0stm ( T• C• G• E) 19:25, 23 November 2016 (UTC)
I seem to have screwed up my account royally by this edit to my common.css page. I know; I should be wheeled out & shot. Is anyone able to revert the edit? ... I now see only the headings of pages and none of the content, so I don't seem to be in a position to do anything. (And it follows that I'm having to make this edit from my ip addy ... anyone familiar with css will probably confirm, from the diff, that I'm an idiot and that the probability is that this request is indeed from Tagishsimon). thanks -- 164.215.104.187 ( talk) 05:41, 24 November 2016 (UTC)
Category:Pages containing cite templates with deprecated parameters I'm unable to select anything in this category up to H. Select any letters A to G causes results to start at H. CV9933 ( talk) 11:16, 24 November 2016 (UTC)
Sorry if this is a duplicate. I have the "Send me copies of emails I send to other users" option set in my preferences. I also have the "Email me a copy of my message." option set when I send mail to another user. However no copy arrives even though the mail is sent to the other user (as best as I can check). I tried about 6 times to 3 different destinations. Are other people having this problem? Zero talk 04:57, 24 November 2016 (UTC)
There was a discussion at Commons that got plenty of support but ended up archived with no action. I reposted but nobody seems to want to handle it.
Can anything be done on this end? Anna Frodesiak ( talk) 17:25, 22 November 2016 (UTC)
<gallery>
tag (which is probably everything that isn't a redirect), you want an extra link to every category for every [[Category:]]
link? So once that would be done, every time a category is added or removed from any page, it would have to be added or removed two places? That sounds suboptimal. Perhaps a slightly better solution would be something in JavaScript that duplicates the links. Lua isn't smart enough to figure out a page's categories while the page is being generated. I think it would have to be JavaScript, which runs after the page is generated. --
Unready (
talk) 18:14, 22 November 2016 (UTC)
( function ( mw, $ ) {
'use strict';
var
cats = mw.config.get( 'wgCategories' ),
path = mw.config.get( 'wgArticlePath' ),
len = cats.length,
see = $( '<div style="border: 1px solid #aaa; padding: 5px;">' +
'For more images, you may want to see:<ul></ul>and subcategories.</div>' ),
i;
function makeAnchor( cat ) {
var
a = $( '<a></a>' ),
text = 'Category:' + cat;
a.text( text );
a.attr( 'title', text );
a.attr( 'href', encodeURI( path.replace( '$1', text.replace( / /g, '_' ))));
return a;
}
if (( mw.config.get( 'wgNamespaceNumber' ) === 0 ) && $( '.gallery' ).length && len ) {
for ( i = 0; i < len; ++i ) {
$( 'ul', see ).append( $( '<li></li>' ).append( makeAnchor( catsi )));
}
$( '#mw-content-text' ).prepend( see );
}
}( mediaWiki, jQuery ));
( function ( mw, $ ) {
'use strict';
var
a = $( '#mw-normal-catlinks > ul > li > a' ).clone(), // main a only, not the added cruft
see = $( '<div style="border: 1px solid #aaa; padding: 5px;">' +
'For more images, you may want to see:<ul></ul>and subcategories.</div>' );
if (( mw.config.get( 'wgNamespaceNumber' ) === 0 ) && $( '.gallery' ).length && a.length ) {
$( 'ul', see ).append( a );
a.wrap( '<li></li>' ); // wrap after append, because the elements need parents
$( '#mw-content-text' ).prepend( see );
}
}( mediaWiki, jQuery ));
Hello World: What do you think of this? Isn't this a pressing issue? Why no input from others? Anna Frodesiak ( talk) 00:51, 25 November 2016 (UTC)
Not sure what's happened here - I used the {{ orphan}} template on an article ten minutes ago and it was fine, but it's now no longer appearing when added to articles. (From the HTML source, it's there but with a "display: none" CSS style.) Other amboxes still seem to render okay. What changed? Neither the {{ orphan}} nor {{ ambox}} templates have been directly edited in months. -- McGeddon ( talk) 11:09, 25 November 2016 (UTC)
I'm sure this used to work, but I keep coming across pages recently where the "hide transclusions" button does not do anything on Special:WhatLinksHere. For instance Ethics committee has only one or two "real" incoming links, but after I added the article to Template:Research participant rights there are many more due to the template transclusions. They don't disappear when the hide transclusion button is pressed. Spinning Spark 14:14, 25 November 2016 (UTC)
For some reason, there are a large number of articles about parliamentary constituencies appearing in Category:Interwiki link templates; I can't work out why. Could someone more adept with these things than I take a look? Josh Milburn ( talk) 23:02, 23 November 2016 (UTC)
User:Black Kite is a bluelink, but clicking on it brings up a notice saying the page does not exist. Why is this? 86.147.228.21 ( talk) 14:29, 25 November 2016 (UTC)
__NOINDEX__
, it won't be shown on other wikis." It's confusing that the link is blue when the meta page is blank and not shown or linked. See
User:Harej for an example where it's not blank and the bottom displays
MediaWiki:Globaluserpage-footer: "What you see on this page was
copied from
//meta.wikimedia.org/wiki/User:Harej."
/info/en/?search=User:Black_Kite?uselang=qqx does not show any MediaWiki message for a blank meta page.
PrimeHunter (
talk) 15:13, 25 November 2016 (UTC)
<noinclude>...</noinclude>
- compare
m:User:Redrose64 with
gd:User:Redrose64; the latter doesn't exist, so what's displayed there is transcluded from meta - minus the noincluded portion. --
Redrose64 (
talk) 09:57, 26 November 2016 (UTC)Cross-posted from Template talk:Infobox software for better visability.
Can anyone figure out why pages are added to
Category:Articles which use infobox templates with no data rows if |latest preview version =
isn't set in {{
Infobox software}}? After a quick glance myself, I'm not sure what the issue is, but I
know it's related to this row. There are 2339 pages that are in both this category and use {{
Infobox software}}, and I'm betting it's related to this bug.
Avic
ennasis @ 09:44, 25 Cheshvan 5777 / 09:44, 26 November 2016 (UTC)
I need some one to help me with Lua about taking data from Wikidata to Wikipedia through template. Xaris333 ( talk) 14:22, 25 November 2016 (UTC)
It looks like my department is searching for a Technical Intern. Regular editors/contributors are preferred. In fact, (current or former) regular editors may be the only people who are actually qualified, so I'm hoping you all can find some good applicants for this job.
The technical skills needed include:
You'd be working on the creation of the Wikimedia Resource Center, redesigning the Evaluation Portal on Meta, and moving the Learning and Evaluation portal pages to new a namespace, among other tasks.
This will be a 12-week position for up to 20 hours/week. The complete job description is here: https://boards.greenhouse.io/wikimedia/jobs/488570#.WBE6X-ErKRs
This is remote work. I'm guessing from the North/South America restriction that they want someone whose work hours will overlap with San Francisco. Very few remote jobs at the WMF have an absolute requirement for your location. So if you're not in the Americas, but you'd be happy working when California does, then please consider applying anyway and explain your preferred working hours in your application.
Also, all WMF staff need to speak/write English well enough to talk to other staff, but being proficient in any other language is always a benefit. Always. Even if it's not mentioned in the job description and doesn't seem relevant. Ditto for being an established editor.
Please share this information with people that you think would be good matches for the position. Whatamidoing (WMF) ( talk) 18:13, 26 November 2016 (UTC)
I'm getting a lot of "Sorry! We could not process your edit due to a loss of session data. Please try saving your changes again. If it still does not work, try logging out and logging back in." ... any advice? It's making me v.sad. (I'm trying this report whilst logged out, lest this is something to do with my account) -- 164.215.104.187 ( talk) 16:41, 26 November 2016 (UTC)
Hello. I need help for Module. el:Module:Περισσότερεςκατακτήσεις (is in English).
See Cypriot First Division (Q155965), property 1346, qualifier P1355. I want to show the item of P1346 if it has the largest qualifier P1355. Xaris333 ( talk) 23:58, 26 November 2016 (UTC)
Talk:Coldharbour Mill Working Wool Museum
{{WikiProjectBannerShell|1= {{WikiProject Mills|class=B|importance=Mid}} {{WikiProject Energy|class=B|importance=low}} {{WikiProject Architecture|class=B|importance=mid}} {{WikiProject Devon|class=B|importance=low}} {{WikiProject Historic sites|class=B|importance=high}} {{WikiProject Museums|class=B|importance=mid}} {{WikiProject Technology|class=B|importance=low}} {{WikiProject Textile Arts|class=B|importance=mid}} }}
is the code but when it renders (Chromium on Linux Mint) two of the projects show class=C. I think it is the first time I have visited the page. -- ClemRutter ( talk) 10:19, 26 November 2016 (UTC)
|b1=yes |b2=yes |b3=yes |b4=yes |b5=yes |b6=yes
to the Mills and Technology assessments and previewed, they were shown as "B" class. --
John of Reading (
talk) 10:46, 26 November 2016 (UTC)
{{
WikiProject Mills}}
and {{
WikiProject Technology}}
mentions the B-Class checklist (I added this to the doc pages myself, some years ago), although it didn't stress that all six criteria need to be satisfied in order for |class=b
not to be reduced to C. I've
rectified that. --
Redrose64 (
talk) 22:54, 26 November 2016 (UTC)
User:AnomieBOT notifies on the talk page of a recently created article; if the article was deleted through a deletion discussion in WP:AFD. Since the bot also makes other maintenance edits, when I was once trying to find deleted articles by looking at the bot's contributions, I had to spend more time.
I found some articles tagged through AFD tagger. Most recreated articles had extra sources, some AFDs were years old, though there were some which didn't have any development.
If the bot is separated into two parts, then I can find these articles in less time. -- Marvellous Spider-Man 01:06, 27 November 2016 (UTC)
, @ Anomie: Recreation of deleted articles is very important edit. JJMC89 the edit summary search is very slow. Marvellous Spider-Man 02:51, 27 November 2016 (UTC)
Hi ppl. I am just a gnome. I happened upon the page J.John, and reference 37 stunned me. The reason I brought it here is 'cos the con is far too sophisticated for me. Ref 37 pretends to link to Huffpost; it even sports Huffpost's banner and links - but the article itself is cut&paste. Just so we're clear - I have a folder on my bookmarks bar named "P's", the contents of which are 21 links to the most recognized newspapers on the planet, and top of the list is Huffpost. So when I clicked on link 37 of the J.John article - it was obviously not Huffpost. Of course I had to double check that I was observing trash so I clicked on my own Huffpost link and manually typed in "J.John", "Canon J.john" - every permutation of J.John takes you to this site - canon J. John site:www.huffingtonpost.co.uk- and that site lists innumerable supposed Huffpost articles that just aint real - THEY ARE NOT REAL.
At this point I expect you might be persuaded of the view that I'm munching the wrong mushrooms - so I went amining.
Reference 25 - Mass annointing Will Follow - it seems thefreelibrary is now extolling the virtues of this J.John - the page ends "Tonight's sermon begins at 7.30pm".
Reference 34 - http://www.bbc.co.uk/news/10318089 - titled "Preacher attracts thousands". The site at bottom says, quote, "The BBC News Channel is available in the UK only" - and then says - "You can send comments and pictures to the BBC News Channel by texting 61124, or emailing yourpics@bbc.co.uk". THIS IS NOT THE BBC.
Reference 35, (fish in a barrel), interview with Justin Welby - https://www.canterburydiocese.org/archbishop/philotrustinterview/ - does anyone actually believe that Justin Welby gave an interview to J.John??? The site is a sham. The Coat of Arms on the site is a cartoon compared to the real coat of arms, as seen on Justin Welby.
In my view the tech wing of Wikipedia have a legal and moral responsibility to inform Huffpost, BBC, and any other efficacious body who might have been injured by this sham, of the extent of the misinformation perpetrated on this site.
Get to it folks - delete J.John forthwith - and then work out how something so disingenuous as J.John could have infected our space.
And now I've said my piece I'm just gonna go back to mining. Let me know what transpires, or, at least, delete J.John Mark Dask 01:53, 25 November 2016 (UTC)
Thanks all for your responses. Be assured no 'shrooms were harmed in the creation of this post. So maybe I was a tad judgemental, but I would still like it explained why a Huffpost search redirects to AOL, (try it - type J.John into the Huffpo search and you will get AOL). I have emailed Huffingtonpost.co.uk for an explanation and await their response. Meanwhile, move along everyone - nothing to see here, (other than me with my pants around my ankles :) Mark Dask 02:02, 27 November 2016 (UTC)
example
in the "Search The Huffington Post" box at
http://www.huffingtonpost.co.uk/?country=UK then I get
http://search.aol.co.uk/aol/search?s_chn=cha_huffpo&s_it=aoluk-vertical-HuffPost&q=example which searches the whole Internet. They are probably trying to do something similar to
http://search.aol.co.uk/aol/search?s_it=sb-home&v_t=na&q=example+site%3Ahuffingtonpost.co.uk, but without placing extra code like site:huffingtonpost.co.uk
in the search box. Maybe their approach worked earlier but aol.co.uk changed something.
PrimeHunter (
talk) 15:32, 27 November 2016 (UTC)
<div class="search-huffpost">
<script>
function addText(){
document.getElementById("q").value += " site:www.huffingtonpost.co.uk";
return true;
}
</script>
<form action="http://search.aol.co.uk/aol/search?" method="get" class="" onsubmit="return addText()">
<input type="hidden" name="s_chn" value="cha_huffpo" />
<input type="hidden" name="s_it" value="aoluk-vertical-HuffPost" />
<input type="text" id="q" name="q" class="inp-text" onfocus="if(this.value=='Search The Huffington Post')this.value=''" value="Search The Huffington Post" />
<input type="submit" value="" class="search-submit" />
</form>
</div>
For some months now, {{ GeoGroupTemplate}}'s results with Google have been messed up. For example, go to National Register of Historic Places listings in Richmond, Virginia and bring up each of the three basic options in a new tab. OpenStreetMap and Bing both bring up full-size maps of the city with all of this page's {{ coord}} locations marked. Google, however, brings up just a little square (not located in Richmond, either) with the spots marked. And as I note, this has been happening for several months for every page that uses {{ GeoGroupTemplate}}, both when I use IE and when I use Firefox; I don't have Chrome to check it in there. Any idea why? Presumably it's a problem with the template or with Google Maps, but I don't know how to determine which one, let alone how to determine more precisely what elements have caused the problem. Nyttend ( talk) 01:49, 26 November 2016 (UTC)
A^-_x
This is rendered very badly when using the SVG fallback: the minus sign (which is supposed to be a superscript) is practically on the verge of colliding into the subscript x. I tested this on MathJax and LaTeX and it doesn't render it like that, so I suspect this is a bug specific to Wikipedia's math renderer. I am using Chromium 54.0.2840.100 (64-bit) on Linux. -- Fylwind ( talk) 10:38, 25 November 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Changes this week
[rights=hidden]
. You should now use [hidden]
instead. [rights=hidden]
in old gadgets should be changed to [hidden]
.
[62]
[63]Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
21:16, 28 November 2016 (UTC)
I get this when accessing Wikipedia from Firefox. Tgeorgescu ( talk) 21:45, 28 November 2016 (UTC)
Apparently solved by a NoScript update. Tgeorgescu ( talk) 23:17, 28 November 2016 (UTC)
I was looking over the edit filter log and saw that lowercase sigmabot III keeps tripping Special:AbuseFilter/702 when trying to archive Talk:Economy of Brazil. I've set up ClueBot III to archive the page. If anyone knows what's wrong, that would be great. — MRD2014 ( talk • contribs) 00:21, 29 November 2016 (UTC)
I know someone here must know how to put an inline Wiktionary link into a Wikipedia article. I have just spent about 10-15 minutes poring over various instructional pages - like Template:Wiktionary pipe, Template:Wiktionary-inline, Wikipedia:Wikimedia sister projects#How to link, etc., trying to figure out exactly which template to use. Please, post instructions/helps here, along with examples. (I've got to have examples - please.) Thanks, Shearonink ( talk) 23:44, 28 November 2016 (UTC)
When I start typing the name theresa villiers in the search box, Theresa Villiers does not come up as expected as a suggestion, giving the false impression that the article does not exist. By the time I get as far as theresa villie, the suggestion list is empty. Also, when I start typing theresa may, the suggestion that comes up is Theresa may, not Theresa May as expected. While the former redirects to the latter, the behaviour seems undesirable and contrary to what happens with other names. E.g. when I start typing donald trump, I get a suggestion of Donald Trump not Donald trump. (You may presume that even people who understand how to use capital letters correctly do not bother to use them when typing names into a search box.) 81.136.6.92 ( talk) 21:38, 22 November 2016 (UTC)
"wgHostname":"mw1269"
at the end of the html but the number of servers makes it hard to investigate. Is there a way to request a specific server? Note your browser may retrieve the page again when you view the html so the result may be from another server than the rendered page you were watching.
PrimeHunter (
talk) 15:12, 24 November 2016 (UTC)
Hello. Is there a way to find which templates are using a parameter named "level"? Xaris333 ( talk) 18:32, 28 November 2016 (UTC)
Thanks. Xaris333 ( talk) 11:44, 29 November 2016 (UTC)
Twinkle is not working correctly for me. I tried to make an AIV report and it gave me an error (the user wasn't already reported). Tagging a page for speedy deletion did not mark the page as patrolled (I am a new page reviewer), did not notify the user, and did not log the nomination automatically. I've also had trouble with the AFC helper script loading on certain drafts. Is anyone else having these issues? — MRD2014 ( talk • contribs) 03:29, 27 November 2016 (UTC)
I unwatched Lomography and was told: The page "Lomography" has been removed from your watchlist. I then dropped down my alerts list (the bell icon) and wanted to mark the topmost item as read (by clicking the blue ball, which does this). I could not click the ball because it was still covered by the unwatch message. I also could not find any way to clear/remove the unwatch message without reloading the page: clicking it, or outside it, or pressing Esc, does nothing. Equinox ◑ 07:14, 26 November 2016 (UTC)
Hello. I was an IP who landed on the main page and saw the large black and white text fundraising banner. I closed it. Then I clicked on "view history" and a second, smaller green and white text fundraising banner appeared. Are people supposed to be solicited once more, after they already close out of a banner? This seems clearly inappropriate and aggressive to me. I think something needs to be fixed here. Biosthmors ( talk) pls notify me (i.e. {{ U}}) while signing a reply, thx 17:13, 29 November 2016 (UTC)
I need some sort of workaround for hiding/displaying large chunks of code without collapsible boxes. The problem is that using collapsible boxes will break anchor links on the page. In essence, auto-collapsed boxes will render with the boxes fully expanded on page-load and then quickly collapse once that element is processed by the browser engine. The result is that following an anchor link to a specific part of the page will jump you to a down-shifted portion of the page offset by the length of all of the previously occurring collapsible boxes. Tested on Firefox and Chrome latest stable builds + on OSX 10.11.4 and Windows 10.
Please refer to this thread for more details. Or just follow MOS:TVCAST for an example. An editor has raised an objection to using expand=yes to render the boxes pre-expanded (due to the length of the code snippets), so I am looking for an alternative fix here. AlexEng( TALK) 21:10, 29 November 2016 (UTC)
I have a question regarding template calls and switches. Hypothetical scenario:
From a technical standpoint, which is the better method? In other words, if I have some sort of meta template that transcludes either #1 or #2, which one should I use? (Please ping me on reply) Primefac ( talk) 02:29, 29 November 2016 (UTC)
{{word {{{1}}}}}
vs {{alphabetWords|{{{1|}}}}}
for #2.
Primefac (
talk) 02:32, 29 November 2016 (UTC)
I've created a template for standardizing lists of election referendum here: Template:Election_box_referenda_begin and Template:Election_box_referenda. However, when the ballot information on the page List of Oregon ballot measures is put in for the first table of the November 2014 general election, there are some weird formatting issues showing up that I don't fully understand as compared to the second-half November 2014 table that does not use the template but has the same parameters. For one thing, the padding in the cells seems to much greater than the default table row values. Secondly, the last cell in each row under column heading "No/%" is vertically aligned on top despite being explicitly coded for vertical-align:center. Another interesting result of the template is that, in a addition to having greater cell padding, how much greater the cell padding happens to be is inconsistent. Compare the first table of the November 2014 general election to the only table for the May 2016 primary election. Both use the template but they have different padding. I've worked on it for awhile now but cannot find any indication of what is going wrong. -- Curoi ( talk) 23:29, 30 November 2016 (UTC)
|-
separated by three blank lines.
Special:ExpandTemplates is your friend. I took one line from your example and this is the result:{| class="wikitable sortable mw-collapsible autocollapse" style="width: 100%;" |+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" colspan="7" | Oregon's general election, November 4, 2014 |- ! rowspan="2" width="40px" | Meas.<br />№ ! rowspan="2" width="40px" | Type ! rowspan="2" | Ballot Title ! colspan="2" width="110px" | Yes ! colspan="2" width="110px" | No |- ! width="80px" | votes ! width="30px" | % ! width="80px" | votes ! width="30px" | % |- |- | style="text-align: center;" | [[Oregon Ballot Measure 86 (2014)|86]] | style="text-align: center;" | <span title="Legislatively-referred constitutional amendment" >LRCA</span> | style="text-align: left;" | '''Amends Constitution''': Requires creation of fund for Oregonians pursuing [[higher education|post-secondary education]], authorizes state indebtedness to finance fund | style="text-align: center; vertical-align-center;" | 614,439 | style="text-align: center; vertical-align: center;" | 42.79 | style="background:#F99; text-align: center; vertical-align: center;" | [[File:X mark.svg|15px|link=|alt=]]<span style="display:none">N</span> '''821,596''' | style="background:#F99; text-align: center; vertical-align: center;" | '''57.21''' |}
vertical-align
value should be middle
, not center
. --
Unready (
talk) 23:47, 30 November 2016 (UTC){{pad|15em}}{{{state}}}'s {{{election title}}}, {{{date}}}{{pad|15em}}
{{nbsp|45}}{{{state}}}'s {{{election title}}}, {{{date}}}{{nbsp|45}}
One way to do it is to change:
|+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" colspan="7" | Oregon's general election, November 4, 2014
to
! colspan="7" class="unsortable" | Oregon's general election, November 4, 2014
which does this:
Oregon's general election, November 4, 2014 | ||||||
---|---|---|---|---|---|---|
Meas. № |
Type | Ballot Title | Yes | No | ||
votes | % | votes | % | |||
86 | LRCA | Amends Constitution: Requires creation of fund for Oregonians pursuing post-secondary education, authorizes state indebtedness to finance fund | 614,439 | 42.79 | 821,596 | 57.21 |
The serious problem with that is that you loose the <caption>...</caption>
tags which are useful for those who use screen readers so this 'solution' isn't really a solution.
Help:Collapsing isn't much help.
— Trappist the monk ( talk) 14:49, 1 December 2016 (UTC)
Hi! Notifications of deleted pages disappear? I recently declined the speedy deletion of a category page ( Category:Italian commune articles using deprecated parameters) and asked, on the summary, for clarification. A editor explained it on the talk page, and {{ ping}}ed me. Then another admin deleted the category. All fine so far. What is not fine is that the notification got lost. I received a email notification (good and expected), but the on site notification is nowhere to be seen. I would consider that a bug. I want to know someone tried to reach me. I trust the system to do so. As an admin I can go on and read it even when deleted, and even if not an admin I could have reached to that editor and ask what was it about. Is this a known bug? (or a known feature change request :-) - Nabla ( talk) 11:22, 25 November 2016 (UTC)
Template:BLP editintro is injected into page source for BLPs in edit mode. How can I suppress the display of this notice, the contents of which I'm familiar with? I'd like my screen real-estate back, please. #editnotice_BLP_editintro{ display: none; }
in custom CSS doesn't seem to do it. thanks --
Tagishsimon (
talk) 05:56, 2 December 2016 (UTC)
.editnotice_BLP_editintro
. It's a class, not an ID. --
Unready (
talk) 06:40, 2 December 2016 (UTC)
I have a problem with that page Wikipedia:WikiProject Wikipack Africa Content/WikiFundi:Welcome. One block is displayed lower than it should be, leaving a gap in the structure. I can not find what is wrong. Could someone else me please ? I would appreciate. Anthere ( talk) —Preceding undated comment added 17:35, 2 December 2016 (UTC)
<div>
, one case where a closing </div>
and </span>
are the wrong way around. Those are not the direct cause: the primary fault is that you have four blocks each with the float: left;
declaration, but not enough room to fit them in as a row across the page. The first one goes top left, as it is supposed to; the second sits to the right of the first (again correct), the third sits directly below the second, but there is no more room for the third - so it goes below all these and hard left. --
Redrose64 (
talk) 22:00, 2 December 2016 (UTC)Hi all
Hope this is the right place to ask, I'm looking for a way to maintain the appearance of this box but to make the text within it a section heading e.g ==Heading1==
===Example text=== |
---|
I found an example that does it here but I can't work out how to match the formatting of the box above (i.e white text), I found this example here but now when I have copied it into the page it shows an edit section button, I really don't want that.....
Example text |
---|
Any ideas?
Thanks very much
-- John Cummings ( talk) 16:28, 1 December 2016 (UTC)
===<span style="color:#ffffff>Example text</span>===
.
PrimeHunter (
talk) 11:53, 2 December 2016 (UTC)Thanks PrimeHunter, but it just gives me this.....any ideas how to fix it?
===Example text=== |
---|
-- John Cummings ( talk) 13:32, 2 December 2016 (UTC)
In edit filters, it has been possible to use if statements that contain several statements in both the then part and the else part. That has stopped working sometime between 15 November and 2 December, probably sometime during the first few days during this period. A semicolon in the then part or the else part results in a syntax error. That means that edit filters that contain such if statements are not run at all anymore since they contain a syntax error. An example of how such an if statement can look like: if action != "move" then (article_text2 := article_text; article_prefixedtext2 := article_prefixedtext;) else (article_text2 := moved_to_text; article_prefixedtext2 := moved_to_prefixedtext;) end;
I hope this newly introduced error soon is corrected, so that the edit filters start working again. (I cannot login to Phabricator, so I mention this error here instead.)
Svensson1 (
talk) 08:49, 3 December 2016 (UTC)
Please help the awesome user:Legoktm test his fix to this hideous problem. If you have had issues in the past sending email messages from your wiki account, please head to https://test.wikipedia.org/wiki/Special:EmailUser/Legoktm and send him a test (or a Thank You!) message. HTH, -- Elitre (WMF) ( talk) 18:28, 1 December 2016 (UTC)
I wrote a tool for myself, found it pretty useful so cleaned it up and posted on GitHub in case anyone might be interested.
It's a unix command-line tool to retrieve lists of article names, such as all pages in a category, backlinks of a template, pages edited by a user during a certain period, etc.. it's generally useful for work with AWB or bots, but probably other things as well in a unix environment. Only dependency is GNU awk and one of wget, curl or lynx.
https://github.com/greencardamom/Wikiget
-- Green C 01:36, 26 November 2016 (UTC)
Why does the Main Page have a move tab but not a delete tab? Moving is impossible; Special:MovePage/Main_Page gives you a message
You do not have permission to move this page, for the following reason: You cannot delete or move the main page.
This is identical to the message you get at https://en.wikipedia.org/?title=Main_Page&action=delete, except of course it says "permission to delete". Since the tech folks have disabled doing both, and disabled the delete tab, why do we need a move tab? Nyttend ( talk) 14:33, 4 December 2016 (UTC)
For the past hour, I have faced several problems, which appear to be related. Pop-ups no longer work. On my Watchlist, edits still appear grouped by page; but I no longer have a drop-down arrow next to each page to expand and look at these. Twinkle has disappeared. I see several other display problems. I have tried clearing my cache, opening Firefox with add-ons disabled, rebooting my PC; but none of this has helped. These all appear to be Java-related issues, but I do not have any problems on other websites, and this just started about an hour ago, for no apparent reason. Are others facing similar problems, or is it just me? And if it is just me, do you have any suggestions about how I can correct the error? RolandR ( talk) 23:27, 1 December 2016 (UTC)
For quite a while there, unvisited changed pages on my watchlist appeared in bold, and that was quite helpful as I could easily tell how far I needed to scroll down the list and which pages I still needed to look at if I so chose.
Now the bolding has been removed. Can someone tell me why it has been removed, and how I can get the feature back if I desire? Thanks. Softlavender ( talk) 05:08, 2 December 2016 (UTC)
Just to add to this, pages with changes don't have the green marker either (I use good old monobook). Also, I see a flash of bold when the page initially loads. It's almost as if all the pages are being marked as "visited" once the watchlist has finished loading. -- Scjessey ( talk) 14:38, 4 December 2016 (UTC)
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Changes this week
Meetings
Future changes
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
18:07, 5 December 2016 (UTC)
Long background explanation for why I'm doing this, but basically I have a ton of categories that are called "Category:Pages using TEMPLATE_NAME with unknown parameters". Rather than having to repeatedly type out "This category tracks transclusions of {{ TEMPLATE_NAME}} using unknown/unsupported parameters." I wanted to have a subst I could copy and paste that would pull it from the page title... Now I know that {{str right |{{str crop |{{FULLPAGENAME}}|24}}|21}} will give me what I need... but how do I subst that?! -- Zackmann08 ( Talk to me/ What I been doing) 00:02, 6 December 2016 (UTC)
{{subst:str right |{{subst:str crop |{{subst:FULLPAGENAME}}|24}}|21}}
.
PrimeHunter (
talk) 01:07, 6 December 2016 (UTC)
Greetings, the Related Pages feature is currently running on stable mode, on almost all Wikipedias, except English. It has been live on beta for over six months (to review, select beta from the settings page on mobile). The feature allows readers to be exposed to content that is similar to the topic that they are reading, a good way to further engage readers, and allow for more access to knowledge. After reviewing the feature's performance on beta, which displayed very high usage for the feature in mobile and significantly lower usage in desktop, the reading web team, responsible for developing the feature, would like to move the feature to stable on mobile web and potentially discontinue the feature on desktop. If no major concerns are identified, the team will be prepared to apply these changes in early January. Thank you -- Melamrawy (WMF) ( talk) 09:24, 6 December 2016 (UTC)
Is it possible to get a specific range of user contributions? I was expecting the &from=
parameter to work like it does in recent changes, but it doesn't seem to. The &month=
parameter may not be sufficient to narrow it down to the required contributions when dealing with a prolific contributor.
Spinning
Spark 10:18, 6 December 2016 (UTC)
offset=YYYYMMDD
with limit=N
, for example the following shows 10 contributions older than 1 April 2014:HHMM
or HHMMSS
) can be added:Sometime in the past 24 hours, the nowrap template has stopped working. I use them fairly extensively because I edit from a mobile device for mobile users; they're very helpful in making tables readable. Does anyone know why they have stopped working or how to fix the issue? Prisonermonkeys ( talk) 20:36, 6 December 2016 (UTC)
Querying DB I just found these weird custom JS/CSS of some users with only few edits on en.wp. Were they created automatically by some MW engine feature? If so, I'd say it would be better to delete these custom user scripts/styles.
-- XXN, 21:48, 6 December 2016 (UTC)
Hey all, not sure where the best place for this would be, but in my capacity as a gnome admin, I'm interested in some sort of tool that will search for key phrases, say, daily or weekly, then notify me when they appear. Examples:
Being notified when these things as they pop up would be helpful in combating disruption and it's gotten really hard to remember all the phrases I'm supposed to search for. I'd love to automate that. Thanks in advance for any help. Cyphoidbomb ( talk) 17:08, 1 December 2016 (UTC)
Why didn't this edit work properly? I'm not completely familiar with how templates work, so it's probably quite a simple mistake. Anarchyte ( work | talk) 08:21, 7 December 2016 (UTC)
I just encountered a editor with an unusual name,
What cat?, and as we chatted I mentioned the awkwardness of the username due to the terminal question mark — it gets left off when you type the URL, so /info/en/?search=User:What_cat?
goes to the nonexistent
User:What cat. I suggested creating a doppelgänger account, "What cat", and the user agreed that it would be a good idea, but I ended up sending him to
WP:ACC after he reported that he couldn't create it due to its similarity to the names of two other accounts, including his own. When you're trying to create an account, why would similarity to your existing username be an issue? I was under the impression that the restriction on creating names similar to existing names was imposed to prevent impersonation, and clearly "What cat?" won't be creating "What cat" to impersonate himself.
Nyttend (
talk) 01:37, 8 December 2016 (UTC)
Were there signficant changes to the Wikimedia server configuration for ENWIKI that would affect login APIs deployed in November?
(This is related to Wikipedia:Village_pump_(technical)#API_PERL_question.._correct_specification_of_HTTPS_connections, but here I just need a yes/no.) -- joe decker talk 16:48, 8 December 2016 (UTC)
Okay I know multiple watchlists is a perennial proposal and I know one can already watchlist a category for additions to/removals from that category; my question is (hopefully) neither. Is there an easy way to watch every page in a category, besides cutting and pasting to the raw watchlist? Alternatively, is there a way to automatically add or remove pages to one's watchlist based on membership in a category? Cheers. Ivanvector ( Talk/ Edits) 14:17, 8 December 2016 (UTC)
Hello all!
As you may or may not be aware, I'm a maintainer for xTools, which is a wonderful suite of tools originally developed by User:X!. As many of you have no doubt noticed, there are some lingering stability issues since User:Hedonil (One of our last maintainers) retired in 2014. His rewrite and maintenance also tied us tightly to Tool Labs, which has its own stability issues at times.
I have been working for a few months to rewrite xTools. I have decided to use Symfony, which has built-in caching and template functionality. My current development version is located at [xtools-dev.wmflabs.org xtools-dev.wmflabs.org], though please note that it is pre-alpha software and very buggy!
I have also asked for assistance from Community Tech. If you believe that xTools is useful, a vote would be appreciated: meta:2016 Community Wishlist Survey/Categories/Moderation tools#Rewriting_X.21.27s_Tools.
Note: While technically in violation of WP:CANVAS, Canvassing is permitted as part of the 2016 Community Wishlist Survey. See here. ~ Matthewrbowker Drop me a note 18:13, 8 December 2016 (UTC)
Greetings. I do some work over at G13 deletions. In the past, editors were given a warning when a draft had lain dormant for 5 months. This was done by a bot called HasteurBot. Then at the 6 month mark, if no further editing had occurred it appeared on the list. Then it is reviewed and either asked to be deleted, or ask for the deletion to be postponed for another 6 months. When the request for deletion is made, admins can delete the article (or editors/admins can remove the deletion tag), in a relatively short span of time. It appears that HasteurBot is no longer working, so the 5 month warning is no longer being sent out. Any ideas? Onel5969 TT me 22:06, 7 December 2016 (UTC)
Hey. My article about Irina Nevzlin still has no Google results. Is there any way I could fix it? Thank you in advance. Sllm ( talk) 06:35, 4 December 2016 (UTC)
How is it that User:LizeB was able to create the page Cedric Tylleman 30 minutes after I had protected the page from creation with extended confirmed access required? The user certainly did not have confirmed status, let alone extended confirmed, as this was her only edit. Spinning Spark 14:58, 9 December 2016 (UTC)
Hey all, I can't figure out which tool is supposed to indicate the various previous usernames a person has had. For instance, here I see no results for a user name change, here I see no results for a user name change, but from what I can tell from stuff like this and this, the editor has changed names at least three times. I'm sure this is totally an issue of my ignorance. Thanks! Cyphoidbomb ( talk) 17:27, 6 December 2016 (UTC)
If it can be done manually, it is also trivial to do it through a userscript using API:Logevents (which is outdated by the way). The internal API docs are probably much better ( [70]). — Preceding unsigned comment added by 197.218.81.248 ( talk) 16:27, 10 December 2016 (UTC)
Sometimes no matter where an image is placed within the wikicode, it shows up in the same place in the article. Case in point: Rubus strigosus ( version I'm referring to, in case someone fixes it). No matter where I put that image on the left, it shows up there, next to the references, with an obnoxious block of white space above it. This sort of thing happens regularly, and is usually a matter of moving things around until it looks acceptable. It drives me nuts, though, and there's just not much flexibility when we're talking about a short article. Whyyyyy does it do this, and how do I fix it? The left side of the article has no images save this one, so I want to be able to put it wherever I want -- top of a section, end of a section, between paragraphs, etc. What am I missing? — Rhododendrites talk \\ 02:52, 9 December 2016 (UTC)
left
to none
it displays perfectly where you tell it to. I'm not an expert in the ways files work, but I guess that works. Cheers --
The Voidwalker
Whispers 03:07, 9 December 2016 (UTC)
Quite honestly, I wish you hadn't asked that since I have no idea the technical reason why it works. I just know that it does since I remember seeing it before. It definitely has something to do with infoboxes on short articles. If you look you will see that the image without {{ stack}} didn't just appear in the references. It appeared immediately after the infobox ended. Why this happens and why the stack template fixes it? No idea. Perhaps someone else with more template knowledge than I do can explain it to the both of us . -- Majora ( talk) 03:42, 9 December 2016 (UTC)
|thumb
). If they float on opposite sides, the earlier image will force the later image down, the reference point for both is the upper edge of the object.{{
stack begin}}
/{{
stack begin}}
converts two floated objects into a single one, so it is now the upper edge of that combined object - in essence, the upper edge of the infobox - which now determines the highest point that the berries can float to.On the Wikipedia article traffic statistics site, I can't get any statistics past 201601. For the months after that, all I get is a message that says "internal server error".
I've checked many subjects, and the same thing happens.
Is it working for you? The Transhumanist 21:51, 10 December 2016 (UTC)
[71] has an infobox that appears to be correctly formatted. But instead of appearing as an infobox, the text appears instead. Using latest Chrome on W10. Lfstevens ( talk) 02:11, 11 December 2016 (UTC)
The Transhumanist/anno.js is a script that toggles (removes and restores) list item annotations, so you only have to look at annotations when you want to.
The program creates a menu item in the tab menus at the top of the page, and also activates a hot key. So, the user could click on "Hide anno" (or "Show anno") or press Shift-Alt- to control the program's behavior.
Presently, the script resets when the page is reloaded or when you go to another page.
I'd like to make the script work without resetting. So that if it is in the "Hide anno" state, it hides annotations from whatever page it goes to.
At the end of the program is code to make the script work for the Vector skin only, and it includes a function that sets the program's default to "Show anno" for when a page is loaded or reloaded.
// Only activate on Vector skin
if ( mw.config.get( 'skin' ) === 'vector' ) {
$( function() {
// Change this if you want to hide annotations by default
annoShow();
} );
How do I specify the current state of the program? That is, I want to tell it to run the same function that was used last.
I look forward to your replies. The Transhumanist 21:14, 9 December 2016 (UTC)
I'm getting mainly anomolous results from petscan. Example should pull up Rose Fernando but does not. Can anyone confirm that my example here is not finding Rose Fernando. Does anyone know if there is a problem affecting Petscan? thanks -- Tagishsimon ( talk) 13:55, 11 December 2016 (UTC)
mintbox:[/home/adminuser] ./wikiget -c "Sri Lanka women Test cricketers" | grep Rose Rose Fernando
I'm working on a script to alter the display of an article.
But because I've run into a problem, I took the operational stuff out, in order to test the switch: the script adds an item in the tab menu that alternates between "Hide anno" and "Show anno".
The below script worked fine, until I added this to it:
var orig = cont.clone_node(true);
The words "Hide anno" are supposed to show up in the tab menu, but don't because of the above line.
Why does the creation of this variable cause the script not to work?
Here's the script:
/* anno.js: (Will) add a button to toggle visibility of annotations in lists.
Currently, the toggle switch is being tested, because it breaks whenever I add most anything useful to the operational portion of the annoShow and annoHide functions, or above those functions.
Function annoHide will hide some text (I removed those lines of code until the toggle is fixed). Function annoShow will put the text back (removed those lines of code for now).
Based on: https://en.wikipedia.org/?title=User:PleaseStand/hide-vector-sidebar.js&oldid=580854231
and /info/en/?search=User:Thespaceface/MetricFirst.js */
( function ( mw, $ ) {
var annoSwitch;
var cont = document.getElementById('mw-content-text');
// ERROR: the below line causes function annoShow not to work. "Hide anno" does not show up in the tab menu.
var orig = cont.clone_node(true);
// This problem has me stumped, because I will need to set the content back to the original state, which is what the clone is for.
function annoHide() {
// the code to hide stuff will go here. For now, I'm just testing the toggle switch.
if ( annoSwitch ) {
annoSwitch.parentNode.removeChild(annoSwitch);
}
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Show anno', 'ca-anno', 'Show the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoShow();
} );
}
function annoShow() {
// the code to show stuff will go here. For now, I'm just testing the toggle switch.
if ( annoSwitch ) {
annoSwitch.parentNode.removeChild(annoSwitch);
}
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Hide anno', 'ca-anno', 'Hide the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoHide();
} );
}
// Only activate on Vector skin
if ( mw.config.get( 'skin' ) === 'vector' ) {
$( function() {
// Change this if you want to hide annotations by default
annoShow();
} );
}
}( mediaWiki, jQuery ) );
I thought variable assignment was non-invasive. Please explain how that line affects the rest of the script.
This problem has me totally stumped. I look forward to your replies. The Transhumanist 08:28, 8 December 2016 (UTC)
clone_node
doesn't exist in JavaScript; it is called cloneNode
. —
This, that and
the other (talk) 09:01, 8 December 2016 (UTC)
cont.parentNode.replaceChild(orig, cont);
$(cont).replaceWith(orig2);
And as a note, you are using mediawiki.util RL module, without guaranteeing that it is loaded. — TheDJ ( talk • contribs) 09:27, 8 December 2016 (UTC)
I tried this:
mw.loader.using( 'mw.util' ).then( function () {
annoSwitch = mw.util.addPortletLink( 'p-cactions', '#', 'Hide anno', 'ca-anno', 'Hide the annotations', 'a' );
$( annoSwitch ).click( function ( e ) {
e.preventDefault();
annoHide();
} );
} );
The above did not work. I do not know how to load the RL module, and the documentation is not very clear. The Transhumanist 10:34, 11 December 2016 (UTC)
mediawiki.util
, not mw.util
. If you try to load a module that's already loaded, the load request succeeds, but nothing additional is loaded. If you try to load a module that doesn't exist, it fails. --
Unready (
talk) 20:58, 11 December 2016 (UTC)(Copied and extended from Wikipedia talk:Database reports/WikiProjects by changes)
Wikipedia:WikiProject Congo is a DAB, referring to either Wikipedia:WikiProject Democratic Republic of the Congo or Wikipedia:WikiProject Republic of the Congo. There are probably more; this was the first I saw after sorting by name.
Clearly this should be fixed, and not just for this instance but systemically, but as for how to do it, I have NFI*. -- Thnidu ( talk) 02:03, 12 December 2016 (UTC)
* "No idea whatsoever"
Is there an easy way of obtaining a list of page links from a category? Spinning Spark 19:44, 11 December 2016 (UTC)
awk '{print "[[" $0 "]]"}' list.txt > list2.txt
then copy-paste list2.txt back into Wikipedia. Just one example, or as Xaosflux said could also use a text editor. --
Green
C 20:46, 11 December 2016 (UTC)wikiget -c "Northward flowing rivers" | awk '{print "[[" $0 "]]"}' | clip
Hi there. The Editor Interaction Analyser doesn't seem to be working with IP addresses. Not sure who to notify. Thanks. Magnolia677 ( talk) 20:15, 11 December 2016 (UTC)
Since a few days the possibiliy to Strike out usernames that have been blocked does not work anymore. Option is in Preferences, Gadgets, Appearance. Both in Firefox and IE. - DVdm ( talk) 09:58, 10 December 2016 (UTC)
''.user-blocked-temp{' + ( window.mbTempStyle || 'opacity: 0.7; text-decoration: line-through' ) + '}\''
''.user-blocked-indef{' + ( window.mbIndefStyle || 'opacity: 0.4; font-style: italic; text-decoration: line-through' ) + '}\''
This is new behaviour since a week or so. I know that underline and line-through can be combined in CSS, and up until recently these links did indeed show like this one
Struck underlined link. -
DVdm (
talk) 10:00, 12 December 2016 (UTC)
a.user-blocked-temp {' + ( window.mbTempStyle || 'opacity: 0.7; text-decoration: line-through underline' ) + '}\
a.user-blocked-indef {' + ( window.mbIndefStyle || 'opacity: 0.4; font-style: italic; text-decoration: line-through underline' ) + '}\
Could someone with experience doing the markup for image maps and mouseovers (and, even better, experience with really cheesy TV series from the 1970s) please check the graphic at List of The Brady Bunch characters? The relevant discussion is on the talk page. Rivertorch FIRE WATER 20:07, 12 December 2016 (UTC)
Whenever a visual edit to an infobox is made to an article that doesn't have an infobox in sorted the visual editor sorts infoboxes, it appears to reorganize the infobox. This causes the diff to be slightly more confusing than it needs to be. I propose we either make the diff system recognize lines/statements being moved around, or we make the visual editor not do this. The first one sounds better, but I'd guess that it'd take much more work than having the visual editor remember the order. Thoughts? – 🐈? ( talk) (ping me!) 00:58, 9 December 2016 (UTC)
| imagesize =
| debut_works = Walt Disney World Trivia Books
| influences =
| influenced =
|imagesize=
is not documented, but is a valid alias for |image_size=
which is both documented and listed in TemplateData|debut_works=
is obsolete, and was
commented out in March 2008 and
completely removed in April 2008, see
Template talk:Infobox writer/Archive 2#Works and
Template talk:Infobox writer/Archive 2#Remove debut works|influences=
and |influenced=
are obsolete, they were
removed in August 2013, see
Template talk:Infobox writer/Archive 8#"Influences" and "Influenced" also older archivesLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
Problems
Changes this week
Meetings
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
19:29, 12 December 2016 (UTC) -- עוד מישהו Od Mishehu 04:14, 13 December 2016 (UTC)
Hi all, I'm just wondering if a global block overrides a local block on an account? I'm viewing the block log of a user and it shows nothing but in the global block log, it shows the local block reason. -- LuK3 (Talk) 03:50, 13 December 2016 (UTC)
Category:Wikipedians who previously had access to HighBeam is to be deleted per Wikipedia:Categories for discussion/Log/2016 November 24; however it's populated by Wikipedia:HighBeam/Userbox which uses complex syntax to detect current/former status and thus a simple edit can't remove it. Can someone with the technical know-how please adjust the template to remove the former category altogether? Timrollpickering 14:23, 13 December 2016 (UTC)
Hi all
I'm doing some work to restart Wikipedia:WikiProject_United_Nations (a mainly abandoned Wikiproject with very little activity) and I just realised that I can't see the VE button on any of the pages, can someone explain why this is happening (I can see VE button everywhere else) and also enable it?
Many thanks
-- John Cummings ( talk) 13:34, 8 December 2016 (UTC)
Thanks PrimeHunter, that sounds like a royal faff but the only available option.... -- John Cummings ( talk) 18:39, 9 December 2016 (UTC)