Misplaced Pages

User talk:Frietjes

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Frietjes (talk | contribs) at 14:37, 2 April 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 14:37, 2 April 2015 by Frietjes (talk | contribs)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
This user tries to assume good faith and hopes you will as well.
Archiving icon
Archives


Barnstar for you!

The Template Barnstar
I've looked at your tireless contribution to templates. So i believe this barnstar should suit you. Ibrahim ebi (talk) 15:59, 18 February 2013 (UTC)
The Template Barnstar
Thanks for your help to improve the Adopt-a-typo template. Much appreciated! Jason Quinn (talk) 16:50, 7 March 2013 (UTC)
The Template Barnstar
For getting better performance and adding options to the chess diagram template. Bubba73 02:36, 30 May 2013 (UTC)
Let me just second this (since you've got three on this page already). Thank you for all those well-framed edit requests you made to the convert sub-templates. ~Adjwilley (talk) 20:05, 2 August 2013 (UTC)
Thank you for editing Sandhani page. Dr. Kabir Hossain (talk) 18:41, 26 June 2013 (UTC)
The Technical Barnstar
Module:testcase table is great! Thanks for making it! —hike395 (talk) 03:58, 10 July 2013 (UTC)
The SpongeBob SquarePants Bubble Award
Hey Frietjes! Thanks for your wonderful and helpful contributions in SpongeBob related areas. I really appreciate it. Keep it up! Thanks and happy editing! :) Mediran (tc) 03:12, 11 May 2013 (UTC)
The Barnstar of Diligence
Thank you for being observant to other's (i.e. me) ham-fisted hacking and repairing damaged templates without fuss. You rock! FruitMonkey (talk) 21:11, 30 August 2013 (UTC)
The Original Barnstar
For your work correcting the "year" field in 1000s of uses of {{Infobox Australian place}}. Much appreciated. Mattinbgn (talk) 19:53, 1 February 2014 (UTC)
Wow. That was a quick work here! Happy editing! --    L o g  X   17:34, 11 October 2013 (UTC)
The Technical Barnstar
Thanks for you work on tables and templates! -- Wywin (talk | contribs) 18:35, 24 October 2013 (UTC)
The Template Barnstar
Thanks for all your work replacing instances of {{convert/spell}} with the new Lua compliant {{convert|...|spell=in}} AdmrBoltz 20:54, 15 January 2014 (UTC)
The Random Acts of Kindness Barnstar
Frietjes, I would like to thank you for taking care and fixing the oil field infobox even without asking. It was really kind of you. Beagel (talk) 17:59, 4 February 2014 (UTC)
A kitten for you!

Thanks for all the updating of the population data you are doing on Queensland places! Great work!

Kerry (talk) 00:32, 18 February 2014 (UTC)

The Golden Doubloon of Anatomy
You have been awarded the prestigious Golden Doubloon for your services to the WP:ANATOMY WikiProject. Thanks!
The Technical Barnstar
Thank you for adding team colors for college basketball players. Temple of the Mousy (talk) 19:53, 14 March 2014 (UTC)

tireless template help
Thank you for quality help in all kinds of template questions, even creating a template that should not be needed rather than "some hack of div tags and html tables", finding solutions with sense and offering them with kindness, - you are an awesome Wikipedian!

--Gerda Arendt (talk) 17:01, 31 March 2013 (UTC)

The Template Barnstar
Thank you so much for your fix at Template:Infobox winery. You've just fixed something that had been a small annoyance to me and probably others for a long time. SchreiberBike talk 00:46, 3 April 2014 (UTC)
A Cookie for your work behind-the-scene's on various currency articles
On a number of occasions now I've noticed you've made a whole series of benificial but tedious improvements to various currency articles. These are mostly the type of improvements that are behind the scene's (formatting, wikifying, etc.) and thus might go unrecognized, so I wanted to take a moment to thank you and let you know it's appreciated. Gecko G (talk) 20:49, 4 April 2014 (UTC)
Nice work!
Thanks so much for the work on the Nanjing districts template! Your input on the template itself and placement within articles is extremely helpful! I had posted two questions about how to format it and you resolved both issues! It's very much appreciated and looks really nice now. CaroleHenson (talk) 15:16, 15 May 2014 (UTC)
The Barnstar of Diligence
Nice work on {{Taxation}}! You do a lot of work in neglected areas, and it's always a big improvement. bobrayner (talk) 12:46, 26 October 2014 (UTC)
Thank you for patrolling unused templates and nominating them for deletion. The cleanup is very useful. Blue Rasberry (talk) 15:17, 7 November 2014 (UTC)
The Original Barnstar
Thanks for the article changes :) Viktor O. Ledenyov (talk) 14:07, 18 September 2014 (UTC)
The College football Barnstar
Frietjes, thank you for your excellent work streamlining the color coding used in navboxes for college football and other college sports subjects. Jweiss11 (talk) 06:26, 20 January 2015 (UTC)
The Working Woman's Barnstar
For your unceasing work on the many WP Templates, I hereby award you this Barnstar YSSYguy (talk) 23:25, 3 February 2015 (UTC)

Is merge possible?

I wonder how possible is to merge Template:Infobox WNBA biography into Template:Infobox basketball biography. -- Magioladitis (talk) 00:30, 26 December 2013 (UTC)

@Magioladitis: possible but difficult, and given the existence of Template:Infobox NBA biography, seems one-sided to only merge one. Frietjes (talk) 14:02, 30 December 2013 (UTC)
Template:Infobox NBA biography is a redirect. -- Magioladitis (talk) 14:11, 30 December 2013 (UTC)
@Magioladitis: oops, yes, you're right. then, I suppose it seems like a logical merger. someone would need to do some more in depth analysis of what would be required to merge them. Frietjes (talk) 14:14, 30 December 2013 (UTC)

There are 5 things to take care of:

  •  Done |highschool= needs to be renamed to |high_school=
  • |draft= needs to be demerged to |draft_round= and |draft_pick=.
  • |overseas_career_start= and |overseas_career_end= do not exist in Infobox basketball biography
  • |profile= is |NBA_profile= so I guess we only need to support both
  • career_teams, overseas_career_teams, awards, medal_templates, medal_templates-expand do not exist in Infobox basketball biography

-- Magioladitis (talk) 14:21, 30 December 2013 (UTC)

@Magioladitis: seems many of the field labels have WNBA in them as well (e.g., "WNBA head coach of" and "Non-WNBA career")? Frietjes (talk) 14:24, 30 December 2013 (UTC)
WBNA career can certainly change to just Career but in worst case scenario we could use Template:Infobox basketball biography as the base infobox for Template:Infobox WNBA biography. -- Magioladitis (talk) 14:28, 30 December 2013 (UTC)

Template:Infobox pipeline

Hi, Frietjes. You are expert in the field of infoboxes. Could yo please see {{Infobox pipeline}}. The field discharge_bbl_d is meant to be million barrels per day; however, it uses Mbbl/d instead of MMbbl/d. Could you fix this? Thank you in advance. Beagel (talk) 05:33, 24 March 2014 (UTC)

Need(s) proper infobox

I like the header ;)

Something from Lua

Hi! I posted at User talk:Mr. Stradivarius, but it looks, that Mr. Stradivarius won't respond. So maybe you could have a look:

I wanted to import the portal module to Latvian Misplaced Pages, but we have diffrent system, as we don't have very much portals and the syntax is a little bit different. I created such data page:

'Portal name' = 'parameter 1', 'parameter 2', 'parameter 3', 'parameter 4' (optionally)

If it would be template, then its code would be something like this (for each portal):

] ]

And for inclusion in article I would write {{portal|<<here goes the portal name (from data module)>>}}.

So, how it looks to You? You can make any changes for the module @lv wiki, you won't ruin anything as it isn't used.

If the 'Portal name' would be case sensitive (it would be nice, if not)?--Edgars2007 14:20, 26 May 2014 (UTC)

TwoLeg start

I have some proposal for a new module. Basically it would implement Template:TwoLeg start (and result) templates, but it could be functionality could be expanded to more legs. There could be such module result:

{{#invoke: Leg|main|legs=2
*
here goes some formatting things (result width eg.) and maybe some optional text for cells
*
|{{fb-rt|SCO}} || 1–6 | '''{{fb|NED}}''' || 1–0 | 0–6
}}

would produce

Team 1 Agg.Tooltip Aggregate score Team 2 1st leg 2nd leg
Scotland  1–6  Netherlands 1–0 0–6

And to use the module for existing templates, there could be functions for that, so TwoLegStart's code could be replaced with something like {{#invoke: Leg|start|legs=2}}.

And for the optional text for cells:

--Edgars2007 10:42, 23 June 2014 (UTC)

CHECKWIKI February lists are available

Pages with tt tags

. -- Magioladitis (talk) 23:02, 1 December 2014 (UTC)

@Magioladitis: You can use {{oldid|User:Bgwhite/Sandbox|636233171|permalink}}permalink or even Special:Permalink/636233171 - which may be piped. --Redrose64 (talk) 12:32, 24 January 2015 (UTC)
Redrose64 thanks for the heads up! -- Magioladitis (talk) 12:40, 24 January 2015 (UTC)

Nomination for deletion of Template:Location map Kingdom of Hungary

From my talk page back in september.

Bugger bugger bugger, I saw a map in the transport museum in budapest we went the other week and it had the lat and long but in pretty much a mercator projection. My missus was more interested with the toy trains so I didn't get a chance to take the measures off it. If it's wrong (as it is) it should be deleted but I am still trying to get the measures right. The thing is it's specifically Kingdom of Hungary, but the more atlases (atli? :) I look at the more different lats and longs I get. And anything one does on Hungarian articles is rather contentious, so it is probably really better deleted. Because people whose great grandfathers were part of the Kingdom of Hungary will say no that's Croatia or Slovakia or Slovenia or Yugoslavia or Jugoslavia or The People's Republic of East Kebab. Since Hungarian politics is very contentious and goes on racist grounds in far more than would be allowed in where I come from, this is better off deleted. (Hint: say Treaty of Trianon to a Hungarian and await results.) Si Trew (talk) 09:36, 15 December 2014 (UTC)

Hungary ethic groups.jpg
I never did get round to this. I took the coords off of file at right, which is very high quality but seems to have an odd idea of where 0 longitude is (it suggests it is east of Paris, but that didn't seem to work). As you suggested, I tried to take well-known points at the edges of the map: Fiume, for example, at south-west. I took very good readings after printing out this map at A0 size and using ruler and compass, my trig is quite good, but I could never get it to fit. Si Trew (talk) 06:02, 19 January 2015 (UTC)
.Oh, Template:Location_map_Kingdom_of_Hungary/test might help you. You see, Fiume's in the right place but Budapest is a bit too far left and the rest are well out. Si Trew (talk) 06:09, 19 January 2015 (UTC)

Seems like you're the #property fundi (too)

I need help, as usual. I asked questions on WP:VP but answers I was given there didn't help me.

Basically, #property:P625 (location) returns info as a text string, e.g. 9°39'N, 123°52'E (and beware that the apostrophe is encoded as &#39;). That's not directly useful for inputting to e.g. {{infobox settlement}}, which wants eight separate elements. First of all I though I could just have a deep nest of {{replace}} and {{str rep}} to parse the string into something which could be handed to the infobox. So {{replace|{{replace|{{replace|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep |{{#property:P635}}|,| {{pipe}}longd{{=}}}}|°|{{pipe}} latm{{=}} }}|°|{{pipe}} longm{{=}} }}|'|{{pipe}} lats{{=}} }}|'|{{pipe}} longs{{=}} }}|N|{{pipe}}latNX{{=}} N}}|S|{{pipe}}latNS{{=}} S}}|E|{{pipe}}longEY{{=}} E}}|W|{{pipe}}longEW{{=}} W}}|"| }}|NX|NS}}|EY|EW}} does that. It transforms the raw wikidata text like this:
latd= {{replace|{{replace|{{replace|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep|{{str rep | 9°39'N, 123°52'E |,| {{pipe}}longd{{=}}}}|°|{{pipe}} latm{{=}} }}|°|{{pipe}} longm{{=}} }}|'|{{pipe}} lats{{=}} }}|'|{{pipe}} longs{{=}} }}|N|{{pipe}}latNX{{=}} N}}|S|{{pipe}}latNS{{=}} S}}|E|{{pipe}}longEY{{=}} E}}|W|{{pipe}}longEW{{=}} W}}|"| }}|NX|NS}}|EY|EW}} = latd= 9| latm= 39| lats= |latNS= N |longd= 123| longm= 52| longs= |longEW= E

Looks correct, but does not work - inside infobox it is handled as a single parameter with a lot of pipes. What is needed is some mechanism for returning a string into pieces, separated at the pipe. Is there such a beast?

I thought maybe a template would do it, and I tried a subpage of my sandbox, but that principally didn't work because its nesting depth was 41/40, and that was just with a dummy text string not using #property.

After a bit of playing around, I abandoned that idea, and tried instead for a routine which returns just a part of the input, depending on what is asked for. So basically |1=1 returns latd, |1=2 returns latm etc. So for each coordinate there would need to be 8 entries. Main problem is that string handling methods of wikipedia are pretty primitive and unwieldy. In order to extract any particular piece, there would need to be several (bordering on many) calls to retrieve wikidata value. Original method had just one, this would have, I don't know, 30 - 50. (I had a thought while I was checking this - I could pass the text string as a parameter rather than extracting it n times)

So before I finally file method 1 under "too difficult", I thought I'd ask you for thoughts.

I could add that method 1 is fairly specific, oriented towards {{infobox settlement}}. A later development item for the output to be formatted according to a supplied model - |model=format.

All this stuff is in my sandbox (ignore first few lines - that's a different ongoing experiment). with subpage /parseCoords

Any thoughts? --Unbuttered parsnip (talk) mytime= Sat 12:42, wikitime= 04:42, 20 December 2014 (UTC)

Actually that Plan 2B worked out alright. Revised code is in sandbox and sandbox/parseCoords. I'm happy enough with it - I think the external data-get is a good compromise, even though it's 8 gets rather than one, it's a whole lot better than 30 - 50 of Plan 2A. I might publish it as a template. It does rely on the format of the wikidata output not changing - up to 3 digits for latitude degrees, only two for longitude; two digits each for arcminutes and arcseconds (I presume with leading zero). And arcminutes is regular apostrophe and arcseconds is plain double-quote. --Thanks for your input! --Unbuttered parsnip (talk) mytime= Sat 18:07, wikitime= 10:07, 20 December 2014 (UTC)
User:Unbuttered Parsnip, the current use (or abuse) of the property tag in articles should be cleaned up, in my opinion (e.g., Alburquerque, Bohol and others). what we need is for {{infobox settlement}} to pull data from wikidata when (1) it's available and (2) not already specified in the infobox. User:Jackmcbarn updated location map here to pull the coordinates from wikidata. we should do the same for {{infobox settlement}}, or have a keyword to say |use_wikidata=yes or something to trigger the infobox to pull the data. I started module:infobox settlement, but it will take at least a few days to finish it, so the best place to start trying this out is probably in the current sandbox. Frietjes (talk) 15:23, 20 December 2014 (UTC)
I guess changing infobox(es) is the best solution. I don't think as a rule user input should override what wikidata holds - if it's known, then that's what to use. (Might slow vandals down too!) I'm not sure how wikidata gets updated, apart from manually. I guess there's some sort of bot which crawls around, updating wikidata from page data, and 'crawls' is the word - it seems a slow process. (Hardly surprising, as manual update of data takes an age too.)
On the more general topic of wikidata, there are several "fields" I can think of which should be included, in the Philippine context. Income classification should certainly be there, and some mechanism to hang barangays off municipalities. BTW is there a simple way of counting qualifiers - for instance if I add n barangays to a municipality, can I easily get the value of n? --Unbuttered parsnip (talk) mytime= Sat 23:39, wikitime= 15:39, 20 December 2014 (UTC)

Template:Infobox U.S. state

I saw you have experience in infobox syntax and was wondering if you thought it would be possible to add a Minimum Wage section to this infobox. I thought now is a good time given all the recent changes. There is already a good list to source the info from. Thanks! EoRdE6 21:46, 1 January 2015 (UTC)

unclosed center/small tags

-- Magioladitis (talk) 08:09, 24 January 2015 (UTC)

p tags... again

Resolved

APL (programming language). It turns that we won't be able to avoid the whitelist afterall? -- Magioladitis (talk) 09:57, 14 January 2015 (UTC)

(talk page stalker) @Magioladitis: Regarding that, I reverted this Yobot edit - the markup in that example is intentionally in pure HTML. --Redrose64 (talk) 12:47, 14 January 2015 (UTC)
@Redrose64: rev 10769 on the latter. -- Magioladitis (talk) 16:37, 14 January 2015 (UTC)

Check this please Threatened species known to occur in the Great Barrier Reef World Heritage Area. -- Magioladitis (talk) 09:36, 17 January 2015 (UTC)

Navframe/Wikitable

Hi, just interested in why you are changing college baseball pages to have wikitables for schedules rather than Navframes. The consensus all along, as evidenced by every season page, is that navframes are the preferred method. I'm sure everyone would be open to a discussion but I don't see why we should just change them all of a sudden. Mpejkrm (talk) 23:35, 21 January 2015 (UTC)

massive reduction in code complexity. an even better option would be to use templates like other sports. Frietjes (talk) 23:36, 21 January 2015 (UTC)
OK, that makes sense. I'll try to see if I can play around and get a template to work. Mpejkrm (talk) 23:39, 21 January 2015 (UTC)
Mpejkrm, something like Template:NBA game log start / Template:NBA game log section would be very close to what you want. Frietjes (talk) 23:44, 21 January 2015 (UTC)
There is already a Template:CBSB Schedule Entry, I just need to create a Start and End. Mpejkrm (talk) 23:47, 21 January 2015 (UTC)
Mpejkrm, right, Template:NBA game log start / Template:NBA game log section / Template:NBA game log end are the analogous start and end templates. Frietjes (talk) 23:53, 21 January 2015 (UTC)
I see, I was just thinking along the lines of other College Sports schedule templates such as Template:CBB schedule entry or Template:CIH schedule entry. I'll play around with it. Mpejkrm (talk) 23:56, 21 January 2015 (UTC)

Your assistance is requested . . . .

Frietjes, we're looking to modify the infobox template for college football players: User:Dirtlawyer1/sandbox. After determining what data points to include, we'll need a template editor to handle the coding for us. Once we determine what fields we're adding and what we're deleting, then we'll work on the modified graphics. Are you available to help? I would prefer to have a template editor who has worked on the sports infobox templates in the past and has a solid working familiarity with them. I'm hoping you fit the bill. Dirtlawyer1 (talk) 02:56, 7 January 2015 (UTC)

I will probably have time this weekend. Frietjes (talk) 01:06, 8 January 2015 (UTC)
Thanks, Frietjes. There are four purposes in revamping the infobox: (1) make it more compatible with Template:Infobox NFL player to facilitate easier conversion for college players who play pro ball; (2) add several college-specific fields; (3) make it a lifetime infobox, so it can be used by notable former college players who never played pro ball; and (4) update the graphics to give it a more refined appearance, distinct from the infoboxes for pro players. Dirtlawyer1 (talk) 22:10, 8 January 2015 (UTC)
Frietjes, when you have time, please take a look at this wish list of design and graphics ideas for the revamped infobox: User:Dirtlawyer1/sandbox3. I am hoping for a significant refinement of the graphics and a distinctive appearance. Thanks. Dirtlawyer1 (talk) 21:02, 10 January 2015 (UTC)

More pages with empty nowiki tags

Resolved

I fixed one. I bet there are more. -- Magioladitis (talk) 17:38, 24 January 2015 (UTC)

yes, for that particular infobox they are not needed, but any which don't use {{infobox}} would need to be checked first. Frietjes (talk) 17:40, 24 January 2015 (UTC)
If there is a tracking category I can fix all at once. According to the list I created in the past here: User:WOSlinker/Infoboxes only 5 infoboxes about person still do not use Infobox. -- Magioladitis (talk)
could be possible to track. the best way would probably be to have it done within module:infobox, otherwise you would need to add tracking to every infobox? it's either that or checkwiki to look for = followed by the empty nowiki, then make sure any offending templates are okay to have the nowiki removed? Frietjes (talk) 17:47, 24 January 2015 (UTC)
I'll ask Bgwhite to perform a database scan to empty nowiki tags. -- Magioladitis (talk) 19:07, 24 January 2015 (UTC)

Full list. -- Magioladitis (talk) 10:34, 1 February 2015 (UTC)

By fixing

  • 2,000 pages in Infobox baseball biography
  • 16,500 pages in Infobox MLB player
  • 7,366 pages in Infobox NFL player

We are down to 3,234. -- Magioladitis (talk) 15:27, 1 February 2015 (UTC)

Magioladitis, good. you can do this because {{infobox single}} no longer has a |Review= parameter. and you can safely do this because {{Infobox NYCS}} uses {{infobox}}. Frietjes (talk) 15:32, 1 February 2015 (UTC)
Magioladitis, good, you can also do this because {{infobox military conflict}} uses a cousin of {{infobox}}. for the apostrophe after italics or bold you can do this. Frietjes (talk) 15:43, 1 February 2015 (UTC)

I see some problems. -- Magioladitis (talk) 16:37, 1 February 2015 (UTC)

Magioladitis, now fixed, try again. Frietjes (talk) 16:43, 1 February 2015 (UTC)
Still problem with |partof=; see Battle of Vučji Do. -- Magioladitis (talk) 16:46, 1 February 2015 (UTC)
Magioladitis, could make that work, but better to just use plainlist. Frietjes (talk) 16:49, 1 February 2015 (UTC)

Thanks. Feel free to remove fixed items from my list. I messed up and did not keep a full record of what is fixed. -- Magioladitis (talk) 17:01, 1 February 2015 (UTC)

Magioladitis, I will rescan the original list and make a smaller list of ones which still have empty nowiki tags. Frietjes (talk) 17:42, 1 February 2015 (UTC)

It turns that Template:Infobox college coach still requires the tags? . -- Magioladitis (talk) 07:57, 2 February 2015 (UTC)

Same problem for Template:Infobox officeholder but I guess this was expected since it does not use Infobox yet. -- Magioladitis (talk) 07:59, 2 February 2015 (UTC)

For Template:Infobox college coach, the empty <nowiki></nowiki> is there to prevent the next newline from being stripped as whitespace. This newline is necessary for the asterisk to be seen by the MediaWiki parser as being at the start of a line, and so interpreted as an item in a bulleted list. It is not necessary to use an empty <nowiki></nowiki> since anything invisible will do - such as an empty <span></span> or the entity for a normal space &#32; like this --Redrose64 (talk) 12:21, 2 February 2015 (UTC)
Redrose64 that's nice but I think we can get a solution similar ot all other infoboxes by tweaking the infobox code. -- Magioladitis (talk) 12:29, 2 February 2015 (UTC)
Redrose64 and Magioladitis, now fixed so this works. Frietjes (talk) 15:43, 2 February 2015 (UTC)
yes, officeholder will work after it's convert to use infobox. if you have specific examples, I can make them work now, but if you check the testcases page for officeholder, you will see there is a list test there for one particular field showing the difference between the current and sandbox version. Frietjes (talk) 15:43, 2 February 2015 (UTC)

Template:Infobox NFL coach needs code tweak too. -- Magioladitis (talk) 17:07, 4 February 2015 (UTC)

Please rescan the page once more. I did some. -- Magioladitis (talk) 18:40, 8 February 2015 (UTC)

Question on center tags

I did this. Is this OK or should I have done something else? -- Magioladitis (talk) 08:34, 26 January 2015 (UTC)

(talk page stalker) @Magioladitis: The align= attribute on a table cell is obsolete in HTML 5. If you look at the very next line in your diff, it says
| style="text-align:center" | ...
which does the same as
| align="center"| ...
but is valid HTML 5. --Redrose64 (talk) 12:10, 26 January 2015 (UTC)
correct. by the way, the really broken one was the line directly above your change. we don't need a center tag before the style statement, and the div tag is also unnecessary if the centering is specified in the style statement for the table cell. Frietjes (talk) 14:04, 26 January 2015 (UTC)

A F&R to change

align="center"

to

style="text-align:center"

would be effective? I think we need to set some rules for bot run. Manual editing will take forever especially because I am not familiar with all tricks that need to be done. -- Magioladitis (talk) 09:52, 27 January 2015 (UTC)

(stalker)In most cases, yes, that seems to be right. There are always going to be ugly edge cases in no-wiki blocks or code blocks, or something entirely different, like above, where the markup is just broken. So semi-automated (a la AWB) is good, but it needs human supervision. Martijn Hoekstra (talk) 14:50, 27 January 2015 (UTC)

Conversion to infobox

Hi! Maybe you have some time to convert these 2 infoboxes to {{infobox}} base? {{Infobox country}} and {{Infobox former country}}? --Edgars2007 (talk/contribs) 07:00, 1 February 2015 (UTC)

They could usefully be merged at the same time. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:48, 10 February 2015 (UTC)

Findargdups

Your script fails to find any duplicates at Template:Infobox historic site. I suspect the reason may be a greater depth of template nesting than your script allows for, as none of the templates it calls show a duplicate error (I checked them all). Worth getting this fixed, as it has a high transclusion count. --NSH002 (talk) 20:51, 2 February 2015 (UTC)

NSH002, fixed the infobox, will try to figure out why it couldn't find it later ... Frietjes (talk) 20:59, 2 February 2015 (UTC)

Template:URL has dublicate arguments. How weyou could fix that? --Edgars2007 (talk/contribs) 11:44, 16 February 2015 (UTC)

Edgars2007, I modified the script to handle "#invoke:". Frietjes (talk) 15:34, 20 February 2015 (UTC)
Thanks. Anyway, why Template:URL has the |1= and |2= ? I put sandbox without them, and everything looks good for me: Template:URL/testcases, even whose with =. See my tests. --Edgars2007 (talk/contribs) 10:00, 25 February 2015 (UTC)
@Edgars2007: It's for cases when the URL contains an equals sign, most often found when the URL has a query string, like the page=1 in http://www.example.com/index.php?page=1 - if there are no equals signs in the URL, you can omit the 1= from the start. --Redrose64 (talk) 14:55, 25 February 2015 (UTC)
Redrose64, as discussed above, the sandbox version doesn't have the 1= or 2= but appears to be working fine in the testcases. so, it seems that 1= and 2= are only needed when you call the template, not when the template passes the parameters to the module. for example, try {{URL| 1=http://www.example.com?foo=BaR |2=this=that}} vs. {{URL/sandbox| 1=http://www.example.com?foo=BaR |2=this=that}} Frietjes (talk) 18:38, 25 February 2015 (UTC)
On that testcases page, all but two of the examples that have an equals sign within the URL also have a 1= at the start. The two that do not are:
Code Result Sandbox Result
{{URL| http://www.example.com/foo/bar?a=b&c=d }} www.example.com/foo/bar?a=b&c=d www.example.com/foo/bar?a=b&c=d
{{URL| http://www.ex=ample.com | example }} example example
These do not yield the intended URLs. The 1= are necessary. --Redrose64 (talk) 20:28, 25 February 2015 (UTC)
Redrose64, which has nothing to do with the original question. Frietjes (talk) 20:32, 25 February 2015 (UTC)
thank you for confirming the difference between the live and sandbox versions does not change the result, even when supplied with malformed input. Frietjes (talk) 21:07, 25 February 2015 (UTC)
My intention was to show that examples (Redrose64 has given here) work the same in the live and the version. But ok, this was only just from FYI series. and yes, I know what |1= are used for :) --Edgars2007 (talk/contribs) 07:51, 26 February 2015 (UTC)

Infobox NFL coach, etc.

@Frietjes: Hey, I wanted to give you a head's up. As you may recall, we have an outstanding TfM for Infobox NFL player and Infobox NFL coach. I noticed that you were industriously working on upgrading the code for Infobox NFL coach today. Unfortunately, your changes are making the NFL coach infobox less like the NFL player infobox, and more like Infobox basketball biography, including the use of individual year and team parameters for each coach tenure, with the year-span tenure preceding the team, not the team followed by the tenure in parentheses as currently employed by Infobox NFL player. Please keep in mind, several hundred recent NFL coaches already employ Infobox NFL player. I would hate for your to invest a large amount of time in these 340 or so infoboxes for NFL coaches which are ultimately going to follow a different format for player and coach tenures. Completing revamp of Infobox NFL player was already on my to-do list (see insider discussion initiated here), to be followed by replacing all uses of Infobox NFL coach with the revamped Infobox NFL player. The primary purpose of the revamped Infobox NFL player is to pare its length, and make way for all coaches to use it in the near future. Please ping me back and let's discuss further. Dirtlawyer1 (talk) 23:23, 4 February 2015 (UTC)

Dirtlawyer1, the <br> delimited format for the years and teams is very bad on many levels, the most obvious being the difficulty in aligning the year spans with the teams. yes, I am aware, that this is eventually being merged with template:Infobox NFL player (now stagnate since 2012). it's much easier to go from the fine-grained format to a less fine-grained list format, than it is to do the reverse. Frietjes (talk) 23:27, 4 February 2015 (UTC)
Understood, Frietjes. But please be aware that it's not the several hundred coaches that are going to drive the formatting of the final version of Infobox NFL player; there are over 14,000 current uses of that template, which employs free-form player and coach tenures, with the team followed by a year-span tenure in a parenthetical. Converting those 14,000+ existing uses to double-delimited team-yearspan tenure format would be a massive undertaking, requiring more manual editing hours than we have available.
I understand if you want to complete your present tasks (it appears you are at least half way through the 340 existing uses of Infobox NFL coach). If so, I would ask that you convert the present infobox so that teams appear first, followed by the year-span in a parenthetical, consistent with our established WP:NFL format for Infobox NFL player and Infobox college football player. This is also consistent with how all infobox championships, honors and awards are formatted. When the revamped Infobox NFL player is done, it's going to look more like a slimmed-down version of its present incarnation than Infobox basketball biography or Infobox gridiron football. Design decisions were made in 2007, and a great deal of time and effort has been invested in trying to make them uniform throughout the American football universe.
What do you want to do? Dirtlawyer1 (talk) 23:41, 4 February 2015 (UTC)
Dirtlawyer1, my primary goal was to fix the screwed up alignment issues with the years not being aligned with the teams, without making any significant change to the presentation. however, you are correct, in the context of a merger with the player infobox, it's very likely that the final presentation format will be a bulleted list. while it may be feasible to make changes to {{infobox NFL coach}} to have it produce output that looks like {{infobox NFL player}}, it would not be easy. coding it to work for articles like Pat Meyer would be simple, since it's a very simple pairing of years with teams. however, articles like Terrell Williams and Dave Gettleman are going to be more difficult, since there are parenthetical designations and multilevel year spans. what I can do is make a version of {{infobox NFL coach}}, which can be substituted, to leave a pre-filled version of {{infobox NFL biography}}. however, after it is substituted, the editor performing the substitution would then need to inspect the output and fix any formatting issues. the good news is that now that I finished with my work today (empty tracking category), this is actually possible, since we now have a nearly 1-to-1 correspondence between the years and the teams (so I can write * {{{player_team1}}} ({{{player_years1}}})). whereas before, the association between the years and teams was impossible for a machine/script/template to reliably parse. Frietjes (talk) 00:56, 5 February 2015 (UTC)
Dirtlawyer1, there is now a first draft of a conversion template in the sandbox, you can see the differences in Template:Infobox NFL coach/testcases. I have marked the parameters with no obvious equivalents with a "Missing?" comment in the sandbox. I think a |current_title= would be useful for {{Infobox football biography}} to avoid overloading the |position= parameters. Frietjes (talk) 01:36, 5 February 2015 (UTC)
Alma mater might be useful for coaches who never played in college, since this conversion now lists the college in the career section. Frietjes (talk) 01:52, 5 February 2015 (UTC)

I've got no argument with any of what you say above, Frietjes (but I need to look at those three or four suggestions you mention at the end of your comments above). My initial concern was that you were investing valuable time in something that's going to get tossed aside in a few months; however, if I understand your assessment above, you're telling me it's time well spent and your present efforts will actually help facilitate a mostly automated merge of the coach data points into a revamped Infobox NFL player. Given your description of the effort required to make a temporary Infobox NFL coach look more like Infobox NFL player, that's clearly not worth anyone's time (and especially yours) for a temporary solution.

As to manual inspections of the 340 coaches' infoboxes after an automated merge, that's a relatively small task compared to dealing with manual inspections/editing of the existing 14,000+ uses of Infobox NFL player. I helped implement the last round of merges into Infobox NFL player several years ago, when we were eliminating the separate infoboxes for retired NFL and AFL players (Infobox pro player is a remnant of that effort), and I replaced several hundred old infoboxes manually with the Infobox NFL player. Most required not only inspection, but significant manual edits, and the old AFL players often required a working knowledge of 1960s NFL/AFL history to get it right. Eagles247, two or three other editors and I did virtually all of the work, and that was after a script was employed to change the parameter names and add several new ones. Frankly, I still encounter a lot of bad automated edits from the script in the older NFL articles, and that colors my reaction when anyone suggests automated script edits are some sort of panacea. If we have only three football infoboxes left at the end of 2015 (Infobox NFL player (perhaps re-styled "Infobox NFL biography"), Infobox college football player, Infobox gridiron football person), with the first two significantly revamped and upgraded, I would count this year as a huge success for the related WikiProjects.

I have Technical 13 working on the coding for a revamped Infobox college football player, but after the initial mock-ups are completed for approval by WP:CFB members, I would very much like you to review those efforts with T13 to make sure that we have done the revamped coding in the simplest, most elegant manner. After that, I intend to take a revamped Infobox NFL player to WP:CFB and WP:NFL members for comments, and I could use your help there, too, but that's probably 60 days down the road -- we've just begun the "insider" discussions on point. I'm not going to touch Infobox gridiron football person; that's the baby of WP:CFL, and I'm under the impression they like it just fine the way it is for both CFL players and the handful of notable Canadian CIS college players. American and Canadian football are different enough that they do not need to have a common infobox; the CFL guys had the opportunity to join the effort associated with the then-new Infobox NFL player in 2007, but chose to continue using the older template. Personally, I think visually distinguishing between American and Canadian pros is entirely appropriate -- it really is two different games in a lot of ways. After eliminating 8 or 9 other American football specialized templates over the last 7 years, we should call only 3 left standing a major victory. Dirtlawyer1 (talk) 01:58, 5 February 2015 (UTC)

FYI, I like your revamped "sandbox" version better than the existing rendering of the infobox. I do not that Terrell Williams needs to be converted to Infobox college coach, which is the uniform template for all American college coaches, including football -- I will mention to Jweiss11. He loves that kind of work. Dirtlawyer1 (talk) 02:05, 5 February 2015 (UTC)
Dirtlawyer1, with a |alma mater= (for coaches who never played) and |coaching_position= or |current_title= (for coaches who were both players and coaches), I believe I could convert all of the existing NFL coach transclusions to use NFL player/biography, without any loss of information. Frietjes (talk) 15:42, 6 February 2015 (UTC)

Adding error detection to Template:birth date and age

I thought you might be interested in helping with date error detection in Template:birth date and age. It seems like something that matches your skills. – Jonesey95 (talk) 23:25, 8 February 2015 (UTC)

switch

Three pages Misplaced Pages:CHECKWIKI/034 dump use switch. How do we fix these? -- Magioladitis (talk) 12:45, 10 February 2015 (UTC)

Infobox template help

Hi, Thanks for adding the "palgrid" field to Template:Infobox Palestine municipality. Can you please change Template:Infobox Israel village and so that the fields "grid_name" and "grid_position" from Infobox settlement are activated? I tried it but must have done something wrong so I reverted. The syntax scares me. It is best to allow the two raw grid fields rather than specifically "palgrid" since some places should use the new Israel grid rather than the old one. Thanks. Zero 01:51, 13 February 2015 (UTC)

Perhaps also Template:Infobox Israel municipality? Take Ein Mahil: I would like to add
|grid name=Palestine grid
|grid position=183/236
to the info box: that would be very useful. Huldra (talk) 19:34, 14 February 2015 (UTC)
@Zero0000 and Huldra:, done? you will want to update the documentation if possible. Frietjes (talk) 15:39, 15 February 2015 (UTC)
Ok thanks, but when I tried adding the above info to Ein Mahil, then nothing was visible? Got it, just adding |palgrid=183/236 works fine, Thanks! Huldra (talk) 20:15, 16 February 2015 (UTC)

I am sure you meant well, and this seems like an innocuous change, but in such a politically charged topic area, it has the (perhaps unintended) consequence of implying that Israeli localities are in Palestine. Since the Palestine grid has been superseded by the Israeli Cassini Soldner grid, could we change the grid_name in the Israeli Infobox templates to "ICS Grid"? Brad Dyer (talk) 01:12, 25 February 2015 (UTC)

@Brad Dyer, Zero0000, and Huldra: you should probably discuss this at Template talk:Infobox Israel municipality, or just change it. Frietjes (talk) 01:14, 25 February 2015 (UTC)
Ok, thanks, I just changed it (all the comments above about syntax made me a bit scared to do it, but it seems like a simple textual change). 01:22, 25 February 2015 (UTC)

There are good reasons for using the old Palestine grid for some localities, while for many modern places Israeli Transverse Mercator is appropriate. I don't know of any case where ICS would be appropriate. (Despite claims, ICS is not the same as the Palestine grid; northing differs by 1000 km). I'm changing the template to allow the "grid_name" and "grid_position" fields to be used directly, so the grid can be chosen for each locality. It also allows two grids to be mentioned at a squeeze. Zero 08:11, 25 February 2015 (UTC)

See Amka for example. Zero 08:46, 25 February 2015 (UTC)
@Brad Dyer, Zero0000, and Huldra: I modified it a bit to make the label less flexible, but the input more flexible, so you can either specify |grid_position= or the individual grid values as |palgrid=, |ICSgrid=, |ICSgrid= ... individually. hopefully, this solves the problem? Frietjes (talk) 21:04, 25 February 2015 (UTC)
Seems to work fine. Thanks. Brad Dyer (talk) 21:35, 25 February 2015 (UTC)
I didn't know that was possible. Thanks very much for your help. Can I ask a question? What is it that stops "grid_name" from being displayed if "grid_position" is omitted? Zero 08:17, 26 February 2015 (UTC)
User:Zero0000, the {{infobox settlement}} template uses {{infobox}} and {{infobox}} will not display a label if the corresponding data is blank. Frietjes (talk) 13:54, 26 February 2015 (UTC)
@Brad Dyer and Zero0000: Yes thanks, Frietjes, well done. Most of the sources I use, say on Crusader and Ottoman times (Denys Pringle, Moshe Sharon, Hütteroth, and Abdulfattah, Walid Khalidi) use the Pal. grid. I have only come across newer grids on "Hadashot Arkheologiyot – Excavations and Surveys in Israel". But more, the better. Cheers, Huldra (talk) 20:50, 26 February 2015 (UTC)

Barnstar!

The Random Acts of Kindness Barnstar
A big thanks for your help with putting in grid-numbers in info-boxes: it works like dream! With best wishes, Huldra (talk) 22:02, 2 March 2015 (UTC)

Conversion of multiple/auto images to galleries

Hi, one thing that doesn't seem to work properly with the "packed" gallery – at least using Firefox on a Mac – is that if you resize the window, the title at the top doesn't re-centre. (Try one of your conversions at Cactus.) It does re-centre if you reload the page at the changed window size. Not sure if this is a browser/operating system specific feature or not. Peter coxhead (talk) 18:07, 26 February 2015 (UTC)

User:Peter coxhead, added a work-around, but will track down the author of the gallery packed mode to report the issue. Frietjes (talk) 18:37, 26 February 2015 (UTC)
Nice work around, but annoying though. I saw your message at User talk:Bawolff. Let's hope it gets fixed. Peter coxhead (talk) 19:25, 26 February 2015 (UTC)
I'm removing this page from my watchlist. Please ping me if you reply. czar  20:09, 8 March 2015 (UTC)

Putsch

Hello Frietjes,

I requested that an edit be made to the template-protected module at Module:Infobox military conflict. Unfortunately, no answer has come. Would you take the case: Putsch. I tried it with Jackmcbarn, but he apparently is not there. --Keysanger (talk) 10:16, 27 February 2015 (UTC)

Fetching coords from wikidata

Tired of waiting for action, and unable to make sense of info snippets offered, I have developed {{ParseWDCoords}} which will do that job. I'd like to hear any thoughts from you before I go fully public (or not). Examples are in Madridejos, Cebu and Bantayan Airport. -- Unbuttered parsnip (talk) mytime= Sat 08:16, wikitime= 00:16, 28 February 2015 (UTC)

I started a thread at template talk:infobox settlement, once that one is worked out, we should be able to do the same for template:infobox airport. Frietjes (talk) 15:09, 28 February 2015 (UTC)

Tracking category

Hi Frietjes. Good day to you. Just a quick and possibly silly question, all the tracking fields that you have added at the bottom of the Infobox Power Station template, will trigger the articles using them to be automatically listed in the tracking category right? Rehman 01:46, 28 February 2015 (UTC)

Rehman pages will be listed in the tracking category if they have a parameter other than those listed. -- Magioladitis (talk) 14:21, 28 February 2015 (UTC)
that's right. the list is the list of supported parameters, and using anything that is not on the list will cause transcluding page to be placed in the category. by the way, I have a script that builds the list of valid parameters by parsing the template code, which makes it very easy to generate the list. Frietjes (talk) 14:24, 28 February 2015 (UTC)
Okay. Thanks for the replies both :] Regards, Rehman 03:02, 1 March 2015 (UTC)

Frietjes, don't you mind to tell, which is the script you mentioned? I'm interested in using it :) --Edgars2007 (talk/contribs) 21:51, 6 March 2015 (UTC)

User:Edgars2007, the script is on my personal computer, invoked using Greasemonkey. however, in the next couple days, I will upload it here to make it more widely available. will let you know when I do so. Frietjes (talk) 22:10, 6 March 2015 (UTC)
:) --Edgars2007 (talk/contribs) 22:17, 6 March 2015 (UTC)

Infobox academic division

Hey, Frietjes. Could you insert tracking categories into this template for the following parameters:

1. "type";
2. "closed";
3. "type";
4. "parent"; and
5. "affiliation".

A group of us are working to revamp this template, and we may eventually need your help with the coding -- if you're available. Dirtlawyer1 (talk) 01:59, 28 February 2015 (UTC)

Dirtlawyer1, done, the list of tracking categories are in my edit summaries for that template. note, 1 == 3 in your list. Frietjes (talk) 14:13, 28 February 2015 (UTC)
Thanks, Frietjes. I am still learning the coding, and I am obviously no master in that regard. We would like to implement the original intent behind this template: an infobox with subdivision-level parameters that are discipline- and profession-specific for business, divinity, law, medical schools, etc., while excluding those university-level parameters that are inappropriate for constituent academic colleges and schools. If you have any thoughts on how these purposes should be best accomplished, we would love to hear them. Dirtlawyer1 (talk) 15:20, 28 February 2015 (UTC)

Thank you

Thanks for the userbox regarding HP. Half of the userboxes, or the majority from my userpage, are missing and have yet to be added, apparently. Jon the VGN3rd (talk) 02:40, 3 March 2015 (UTC)

Quick question

Hello. I have a quick question that regards an edit you made to the Emporia State Hornets basketball article. Because I don't know much about this area, I would like to thank you for fixing the table. I thought all of that extra space to the right was a bit excessive. In regards to the color, is there a guideline against school colors (or any colors for that matter) being used on the collapsible table like it was before? If there is, that is fine, I just though the color made it stand out and looked better than being that boring grey. Like I said, I don't much about the guidelines the go with these sort of things, so I'm just curious. Thanks, Corkythehornetfan | Chat? 04:06, 3 March 2015 (UTC)

(talk page stalker) @Corkythehornetfan: Yes, WP:CONTRAST. Black text on that colour #BB8D0A   is very difficult to read. --Redrose64 (talk) 09:24, 3 March 2015 (UTC)
Okay, thanks! Corkythehornetfan | Chat? 14:58, 3 March 2015 (UTC)

A barnstar for you!

The Tireless Contributor Barnstar
For your endeavor in template cleanup, where I sometimes feel overwhelmed, and wish I were more like you. -- ] {{talk}} 19:55, 3 March 2015 (UTC)

Public art tables

Please could you take a look at {{Public art header}} and {{Public art row}}? There is an extraneous column at List of public art in the City of Westminster (but not at List of public art in Birmingham) and I can't find what's causing it. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 05:52, 4 March 2015 (UTC)

@Pigsonthewing: Well it seems to be to do with the column 'owner': this is suppressed in header but not in body. It's too late in the day (GMT+8) for my eyes to be looking at curly brackets. -- Unbuttered parsnip (talk) mytime= Wed 22:39, wikitime= 14:39, 4 March 2015 (UTC)
yes, basically there are two methods for fixing it. (1) would be to make that a zero width column in the header and (2) would be to omit the column in the row template. I will fix it shortly. Frietjes (talk) 14:42, 4 March 2015 (UTC)
Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:51, 4 March 2015 (UTC)

Blank infobox parameters

Hi, Frietjes. I'm wondering what the point of this is. I've seen you do the same in a few other places. Alakzi (talk) 18:47, 8 March 2015 (UTC)

two reasons, (1) it exposed a bug in the template and (2) the presentation is more compact since the documentation is contained on the documentation page. Frietjes (talk) 18:48, 8 March 2015 (UTC)
My question was about (2); thanks. I suppose your way is tidier. Also, about this: the point of having four columns was that the arrow would be vertically centred where the label spanned multiple lines. I thought plain HTML would've been too cumbersome. Alakzi (talk) 18:58, 8 March 2015 (UTC)
changed to 4 columns, although it would be better to use {{align}} instead. Frietjes (talk) 19:02, 8 March 2015 (UTC)
How's my previous/next markup in {{Infobox European Parliament}}? Should we do the same in {{Infobox legislative session}}? Alakzi (talk) 18:51, 9 March 2015 (UTC)

Template:Infobox national basketball team

Hello, I was quite unable to successfully improve that template, making it more similar like the football one. I saw that you fixed a part of it and all these games are now shown, however it is a little bit distorted: the second flag and the date doesn't fit in one line. "First international", "Biggest win" and "Biggest defeat" needs to be headers in order to display it like in the football template (like the "Olympic Games", "FIBA World Cup", "FIBA EuroBasket", etc). Please rework it as I'm not experienced enough for that. Example with these three games provided is available at Lithuania national basketball team. -- Pofka (talk) 09:24, 11 March 2015 (UTC)

Eric Robot the first humanoid robot

Hello Frietjes, I wanted to place a picture from Eric Robot, Category:Eric Robot from 1928, at the article Robot, section Humanoid robots, but I have no acccess to this article. Can you do it for me? Thanks --Agaath (talk) 11:01, 11 March 2015 (UTC)

infobox coords from WD

A couple of suggestions about this change:

  1. When there are no arcseconds held on file (and presumably arcminutes too), display shows '00"' when it ought to show nothing – I think you're imputing an accuracy that isn't there.
  2. the parameter value is |wikidata=yes. I think this is rather vague. I think it should specify what it's doing (as a list) (|wikidata=coords,population,etc). Or change param name – |wikidata_pop=true, |wikidata_coords=true.

Currently WD is quite deficient in its attributes – nothing at all for area, or Philippine-related stuff such as income classification. -- Unbuttered parsnip (talk) mytime= Fri 11:04, wikitime= 03:04, 13 March 2015 (UTC)

User:Unbuttered Parsnip, I changed the syntax to |coordinates_wikidata=yes or any non-blank value, and added a hack to module:geobox coor to reduce the precision. hopefully someone can fix the import from wikidata and I can remove the hack. Frietjes (talk) 16:17, 14 March 2015 (UTC)

Template:Geobox coor issues

Since this change to {{Geobox coor}} a number of infoboxes that I edit that call the template have broken, with articles displaying "Coordinates: Unknown argument format". The most notable of these is {{Infobox Australian place}}. I've temporarily fixed that template by calling Geobox coor's sandbox code. A direct call to {{coord}} also works. Could you please have a look, because I can't see what the issue is. These infoboxes have used the same code, with only minor tweaks, for years. --AussieLegend () 18:25, 14 March 2015 (UTC)

odd, but now fixed. it turns out that module:coordinates only strips the leading/trailing whitespace when invoked from outside of lua. I added the whitespace processing to module:geobox coor and everything looks like it's working as expected. thank you for finding the bug :) Frietjes (talk) 16:42, 15 March 2015 (UTC)
Thanks for fixing it. --AussieLegend () 17:26, 15 March 2015 (UTC)

Special barnstar

Philippine barnstar

"My own work" (the pic not the star!) --Unbuttered parsnip (talk) mytime= Sun 07:11, wikitime= 23:11, 14 March 2015 (UTC)

thank you. Frietjes (talk) 16:43, 15 March 2015 (UTC)

Can I use findargdups without an edit summary?

Usually I come across dupes (often my own) while I'm making major changes to a section, so clicking to find the dupes overwrites the default section edit summary. Is it possible to turn this off? --NE2 00:14, 15 March 2015 (UTC)

NE2, see User:Frietjes/findargdups#Changing the default edit summary. Frietjes (talk) 16:41, 15 March 2015 (UTC)
@NE2: In Firefox, once the edit summary has been set by the script, click in the edit summary, and use either Ctrl+Z or Alt+← Backspace to undo. This may work in other browsers too. --Redrose64 (talk) 23:59, 15 March 2015 (UTC)

Template:Geobox coor

Hi, I had to do an emergency revert of this edit of yours because it broke saving of geographical coordinates for mw:Extension:GeoData, affecting our mobile apps and lots of reusers. From a qucik glance, this is because {{#coordinates:}} invocation is still in Template:Coord instead of Module:Coordinates as it haven't been migrated in. I really wanted to fix the underlying cause, however I didn't feel like my basic Lua skills would have produced a safely functional change in a hurry. Max Semenik (talk) 00:46, 17 March 2015 (UTC)

Eh, due to breakage I had to revert myself, so the database is currently losing coordinates - can you look into it, please? Max Semenik (talk) 02:02, 17 March 2015 (UTC)
Max Semenik, I switched the lua module to use a less efficient method, which expands the template rather than calling the module directly. I will assume this fixed it. but, I would like to go back to using the more efficient method. can you provide me with a method for testing if I break this feature? I may be able to help with moving the '#coordinates:' call inside of module:coordinates. Frietjes (talk) 14:43, 17 March 2015 (UTC)
Whee, thank you so much! You can test coordinate scraping by saving a page with template being tested and looking whether the API call https://en.wikipedia.org/w/api.php?action=query&prop=coordinates&coprimary=all&titles=<page title here> returns any coordinates. Max Semenik (talk) 19:16, 17 March 2015 (UTC)

Category:Pages using infobox cyclist with deprecated parameters

Hi Frietjes. I see you created the above category. Could you give me more background on why it was created? Thanks. Lugnuts 10:33, 19 March 2015 (UTC)

User:Lugnuts, it's for tracking uses of the XYZyears and XYZteams instead of XYZyears1 XYZteam1, XYZyears2 XYZteam2, ... basically, the old syntax is bad for wp:accessibility since the years and teams are not aligned in the output (e.g., try cut-and-paste with the output and you will get all the years followed by all the teams). so, the solution is to not use <br> with XYZyears and XYZteams, but instead use XYZyears1 XYZteam1, XYZyears2 XYZteam2. I have a script that automagically converts them (you just have to inspect the output to make sure it didn't screw up, which only happens in very rare cases). Here is a sample conversion. Frietjes (talk) 14:36, 19 March 2015 (UTC)
Brilliant - thanks for getting back to me. Lugnuts 14:45, 19 March 2015 (UTC)

Conference basketball season pages

Hey, I saw you have been actively editing a college basketball conference season page, so please see this discussion here so we can get a consensus of editors. While this discussion is specifically on the SEC page, it concerns all conferences' pages. Jhn31 (talk) 22:35, 21 March 2015 (UTC)

DSB template

Frietjes, I am having trouble with template:DSB. {{DSB |last=Zuoyue |first=W. |title=Wu Chien-Shiung |volume=25 |pages=363-368}} Contains a ref=harv but generates a ref that looks like "Zuoyue 1970.E2.80.9380". Can we alter it to something like "Zuoyue 1970-80"? Hawkeye7 (talk) 22:09, 23 March 2015 (UTC)

Hawkeye7, use 1970–80 instead of 1970.E2.80.9380. I fixed it in the last article you were editing. Frietjes (talk) 22:16, 23 March 2015 (UTC)
Thanks Frietjes. I thought I tried that. Hawkeye7 (talk) 00:52, 24 March 2015 (UTC)

wikidata coords (again)

I noticed that there are in fact four elements to the coordinate statement on wikidata:

  1. Latitude
  2. Longitude
  3. Precision
  4. Globe

but they're not "qualifiers" within the WD meaning. I don't know how to extract them either, but Precision is the one you want. It is specifiable when editing actual coordinate values.
Don't know if this helps. Unbuttered parsnip (talk) mytime= Tue 16:32, wikitime= 08:32, 24 March 2015 (UTC)

User:Unbuttered Parsnip, yes thank you, see this thread and the fix here where we use the value of precision. Frietjes (talk) 13:55, 24 March 2015 (UTC)

Color contrast issues

Good morning. The current Columbia Lions color contrast (white text reversed out of powder blue background) clearly fails the contrast requirements. See Harold Weekes article infobox for an example. Dirtlawyer1 (talk) 10:10, 24 March 2015 (UTC)

Dirtlawyer1, fixed here, you can find others by looking for red 1st/2nd columns in the pages linked from User:Frietjes/ncaa. Frietjes (talk) 13:53, 24 March 2015 (UTC)
Thanks, Frietjes. That's definitely much better. Dirtlawyer1 (talk) 14:22, 24 March 2015 (UTC)

Question about the NFL colors

Hello. Since there is a module for the college colors, I was wondering where I might find the pages on Misplaced Pages for the National Football League template colors? I've found the {{NFLPrimaryStyle}} tag, but not the actual page that lists the colors. Also, is there one for the Major League Baseball as well? If so, I would like that page too. Thanks, Corky | Chat? 21:07, 24 March 2015 (UTC)

User:Corkythehornetfan, the templates for NFL colors are somewhat complicated. basically there are three different templates, Template:NFLPrimaryColor, Template:NFLSecondaryColorRaw, and Template:NFLTertiaryColorRaw. the code is kind of complicated, since the colors change depending on the year. at some point, I would like to unify all three into one easier to read module, but that hasn't happened yet. Frietjes (talk) 23:00, 24 March 2015 (UTC)
for baseball, we have Template:Baseball primary color, Template:Baseball secondary color, Template:Baseball alternative primary color, and Template:Baseball alternative secondary color. again, I would like to unify these, but it hasn't happened yet. note that all sports-related color templates should be in Category:Sports color templates, or in the Category:American college sports color templates subdirectory. if you find one that isn't let me know, or put it in the category. thank you. Frietjes (talk) 23:00, 24 March 2015 (UTC)
Okay, thank you! You've been helpful, and I appreciate it! Corky | Chat? 23:03, 24 March 2015 (UTC)

Pages with empty span tags

Here. -- Magioladitis (talk) 22:27, 24 March 2015 (UTC)

Problem with colors in a few basketball infoboxes

For Liu Wei (basketball) and Andray Blatche, the colors for their team, Xinjiang Flying Tigers, are having problems in the infobox. The text color seems fine, but the black background is only around the team name only, and not the rest of the header, which is transparent. The other headers have no background color, not even around the text. Module:Basketball color/data seems fine AFAICS. Thanks in advance.—Bagumba (talk) 08:17, 25 March 2015 (UTC)

Bagumba, can you tell me if this fixed it? you may need to save, and then reload the article. Frietjes (talk) 14:16, 25 March 2015 (UTC)
Darn whitespace! Looks good now. Thanks.—Bagumba (talk) 17:52, 25 March 2015 (UTC)

2nd Hum Awards

Hello, can you help me in above mentioned article by linking the best_drama_serial and best_drama_serial_popular in the template. Because only in this article it is not working, like in 1st Hum Awards and 3rd Hum Awards if we mention any drama name in front of the category it automatically links. But for 2nd Hum Awards it is not working. Faizan 12:57, 30 March 2015 (UTC)

fixed. Frietjes (talk) 18:17, 29 March 2015 (UTC)

Precious again

tireless template help
Thank you for quality help in all kinds of template questions, even creating a template that should not be needed rather than "some hack of div tags and html tables", finding solutions with sense and offering them with kindness, - you are an awesome Wikipedian!

--Gerda Arendt (talk) 17:01, 31 March 2013 (UTC)

Two years ago, you were the 441st recipient of my PumpkinSky Prize, --Gerda Arendt (talk) 06:02, 31 March 2015 (UTC)

thank you for the reminder that I need to merge more of these hacks into the actual infoboxes. just fixed template:infobox dog breed which accounted for about half the uses. Frietjes (talk) 14:13, 1 April 2015 (UTC)

Width on anthropology template

I notice you took out the ability to set width on that, without stating a reason. I put the width parameter in earlier to allow the user to adjust the width of the box relative to any different-width elements. Boxes of different widths look pretty tacky. However I look through the link list and now I can't find any of different-width elements. Obviously, someone is working on the boxes. Well, I like it but I am not sure the width capability should not be there. Of course, if there are multiple boxes and you change the width on one then you have to do it on all, and there are now quite a few boxes. I would like to know your reasoning for removing this capability. You are supposed to give reasons. Thank you.Botteville (talk) 07:11, 1 April 2015 (UTC)

Botteville, it's better to use the default for all sidebar/infoboxes to avoid this issue. Frietjes (talk) 13:39, 1 April 2015 (UTC)
Granted as a general rule, but for every rule there are exceptions. Sometimes I DO encounter boxes of different default widths or other elements of awkward width. I usually do slip in some code to alter the width and it usually does work. Before I could do that I was always limited as to what design elements I could use. So, although I can agree with your policy as a general rule, it seems to me an "escape clause" is needed for some cases. For Misplaced Pages policy, I do not see any policy of always using the default width. Why would the designer create the capability of setting width if he did not intend it to be used? The capability does not change the default. It is just there until someone uses it. So, sadly, I think I must disagree with your removal of the width parameter. As to what form the protocol of disagreement should take I am not sure. I don't currently see any instances where setting a new width would be required. The same is not true of the subsidiary boxes. So, if you are saying, it is required always to use the default width on all these boxes, I cannot agree. I don't like fighting over abstracts and possibles, however. If I see any instances where I really need a width change I will put the code back in. Until then I think it looks quite acceptably handsome. There is one more thing. Sometimes it is better to face an issue than to evade it. I guess the trick is to know when. Thank you for the reply.Botteville (talk) 01:06, 2 April 2015 (UTC)

Infobox dog breed

You are very welcome to go collapse each dog breed infobox, it you feel like it! It would be a tremendous help. Hafspajen (talk) 01:06, 1 April 2015 (UTC)

Hafspajen, if you want them all collapsed, we should just make that the default. Frietjes (talk) 13:47, 1 April 2015 (UTC)

Infobox college football player

Hey, Frietjes. Are you available to help with layout and design issues for the revised template? There is a sandbox version under development here: . There will be formatting issues involving internal margins, internal justification, lists, graphics, colors, etc. Please let me know. Dirtlawyer1 (talk) 14:12, 22 March 2015 (UTC)

Dirtlawyer1, yes, if there is a concrete task/goal. I don't really have any strong opinion on how it actually looks, so long as it is generally conforming to wp:accessibility. Frietjes (talk) 16:07, 22 March 2015 (UTC)
Yes, ma'am. The concrete goal is to clean up the layout and design while conforming to WP:ACCESS. If you're amenable, why don't you take a look at the present state of the template's coding, and then we can discuss specific changes to the layout and design? Dirtlawyer1 (talk) 16:21, 22 March 2015 (UTC)
Please see Special:Diff/653046718. Is there a better way to avoid overriding the default? Alakzi (talk) 18:49, 22 March 2015 (UTC)

Follow-up re color graphics

3-pixel accent with white text
Alabama Crimson Tide
3-pixel accent with white text
UCLA Bruins

Frietjes, here are examples of the team color graphics I propose to use for the revamped Infobox college football player:

Do you have time to prepare a sandbox mock-up using these "college varsity stripe" graphics for the infobox section headers? Please let me know. Thanks. Dirtlawyer1 (talk) 13:30, 1 April 2015 (UTC)

Dirtlawyer1 see here. Frietjes (talk) 14:12, 1 April 2015 (UTC)
Dirtlawyer1, please let me know when you ask somebody to do something you asked me too next time. Alakzi (talk) 14:17, 1 April 2015 (UTC)
Please accept my apologies, Alakzi. Dirtlawyer1 (talk) 14:45, 1 April 2015 (UTC)
Frietjes, please accept my sincere thanks for your quick work -- I greatly envy your skills. The combined graphics and use of color that you and Alakzi have created for the sandbox template over the last 10 days is exactly how I imagined the upgraded infobox would appear in January (see ).
I note that your new Template:College stripe style uses Module:College color. Do you anticipate any problems using the module for this purpose -- or do you believe that the module's designated primary, secondary and tertiary colors are compatible with their use for the college varsity stripe graphics? Dirtlawyer1 (talk) 14:45, 1 April 2015 (UTC)
Dirtlawyer1, we can see all the possibilities in the table in Module:College color, including the contrast ratios (the 1/2 ratio is the important one). this is the best way to make sure that we don't have a contrast problem. the only possible problem that I can see would be generating a border when we want no border (e.g., cases where we have passed border=0 to Template:CollegePrimaryStyle in a navbox), but we can deal with that issue when it comes up. I already have it so it won't generate borders if the border color is white. Frietjes (talk) 14:53, 1 April 2015 (UTC)
Frietjes, I will experiment with the various team color schemes in the module, with a particular emphasis on those teams that have white as their second color. Based on your comments above, am I correct in assuming that Template:College stripe style will not generate the accent stripes for the section headers if the module entry is set for border=0? If so, I have an easy solution for cases like Alabama, Penn State, etc. Dirtlawyer1 (talk) 15:04, 1 April 2015 (UTC)
Dirtlawyer1 if the border color is white (FFFFFF) it won't generate a border. this is automatic, no need to set border=0. Frietjes (talk) 15:08, 1 April 2015 (UTC)
Understood -- that's what I thought from your explanation. Then the simple solution for those cases is that we do what the likes of Alabama and Penn State do in reality: the accent stripes in the "college varsity stripe" should be the same color as the middle strip with a white stripe between. Dirtlawyer1 (talk) 15:13, 1 April 2015 (UTC)
sure, will do that in a second. Frietjes (talk) 15:14, 1 April 2015 (UTC)
Dirtlawyer1, done. Frietjes (talk) 15:18, 1 April 2015 (UTC)
Damn, that looks good, Frietjes. I could play in the sandbox all afternoon.
In order to maximize text/background contrast, I would suggest that we use white text for most, but not all, varsity stripe section headers. As we have previously discussed, there are certain instances (e.g., Columbia Lions) where using white text on a background of the primary team color actually reduces the text/background contrast. Dirtlawyer1 (talk) 15:46, 1 April 2015 (UTC)
Dirtlawyer1, sure, that's possible. we could probably even handle the Columbia case automatically by computing the contrast ratio within the module. I already have some support for computing it for generating the table of all the colors. but, that will have to wait at least 24 hours. other stuff to do today. Frietjes (talk) 15:55, 1 April 2015 (UTC)

"we could probably even handle the Columbia case automatically by computing the contrast ratio within the module. I already have some support for computing it for generating the table of all the colors." Wow. Just wow. This gets better and better. Thank you for your time today -- I look forward to seeing your next round of "college colors" innovation. Dirtlawyer1 (talk) 16:08, 1 April 2015 (UTC)

Dirtlawyer1, I just updated the module so it uses either white or black text depending on which has the higher contrast ratio. interestingly, the UCLA blue has a higher contrast with black text, but it looked odd. so, I tweaked the formula for deciding to say if the ratio for black is greater than the ratio for white plus 1, then use black. the plus 1 is a fudge factor to bias towards white. in any case, you can see the entire list of contrast ratios with white and with black (see columns 1/w and 1/b) in the table in Module:College color. the ones where (1/w) < (1/b) + 1 will use black text. I can adjust the '+ 1' to something else if necessary. Frietjes (talk) 00:44, 2 April 2015 (UTC)
Freitjes, I am impressed.
So far, I have noticed one anomaly, however. The Boise State Broncos are missing their second team color, orange (F1632A). Next time you're playing with the table, I would be grateful if you could make that tweak. Dirtlawyer1 (talk) 01:16, 2 April 2015 (UTC)

Okay, Frietjes, I've got some feedback for you. I've plugged 70 teams into the sandbox template, and reviewed the results first-hand in the format in which they will actually be used. I've got two classes of minor problems where the text setting automatically switched to black text based on calculated contrast.

  • First class has the primary color of orange. Contrast is high with white text on orange background, but calculated contrast is apparently better with black. Suggest text be switched to white in all instances.
  • Clemson Tigers: looks better with white text; highlight is purple;
  • Illinois Fighting Illini: looks better with white text; second color is a dark blue;
  • Oklahoma State Cowboys: looks better with white text; second color is actually black;
  • Oregon State Beavers: looks better with white text; second color is actually black; and
  • Syracuse Orange: looks better with white text; unofficial highlight is blue.
  • Second class has gold as the primary color. Contrast is lower than white text with orange background, but still looks better than black text on gold background. Oddly, not all gold backgrounds I have reviewed were automatically switched to black text; some still have white text, and I can see no obvious reason why some text on a gold background was black and some white.
  • Georgia Tech Yellow Jackets: looks better with white text; white is the secondary color, blue is unofficial accent color;
  • Purdue Boilermakers: looks better with white text; black is the second color; and
  • Wake Forest Demon Deacons: looks better with white text; black is the second color.
  • Third class has red as the primary color and "cream" as the secondary color. "Cream" just disappears on a white background on a computer screen, and the problem is identical in all three instances. Perhaps we can highlight the "cream" colored accent stripes with a black hairline?
  • Indiana Hoosiers --;
  • Nebraska Cornhuskers --;
  • Oklahoma Sooners --.
  • Special case / Ohio State Buckeyes: primary color is garnet red; secondary is supposed to be dark gray, but we are currently showing a garnet red highlight. Secondary color needs to be switched to dark gray.
  • Special case / Rutgers Scarlet Knights: primary color is scarlet red; secondary colors are supposed to be black and gray, but we are currently showing a scarlet red highlight.

So, we need some tweaks. The orange and gold backgrounds are easy fixes (switch to white text). The cream-colored highlights are going to require a creative solution. Ohio State and Rutgers should maintain white text, but their highlights need to be switched to gray and black, respectively. That's all I've got for now. I will try to review the remaining 50+ Division I FBS teams this weekend. Dirtlawyer1 (talk) 04:58, 2 April 2015 (UTC)

Dirtlawyer1, see User:Frietjes/ncaa which now automatically generates all the stripes. also, I modified the algorithm to (a) if 3 exists then uses background = 1, font = 2, border = 3, or (b) if 3 does not exist then use background = 1, font = white/black, border = 2. the near white border is going to require some more thought, Austin Peay is particularly bad. one option would be to check if the border is close to white, and if so, use the same scheme we use to avoid white borders. Frietjes (talk) 14:37, 2 April 2015 (UTC)

Template:Infobox men's college basketball team‎, etc.

Frietjes, here's a template merge I would support in a heartbeat: Template:Infobox men's college basketball team‎ and Template:Infobox women's college basketball team‎.

Have you ever contemplated a comprehensive merge of all the college sports team infobox templates? With a handful of options, I think all U.S. college sports could be accommodated and the team infoboxes would then have a uniform appearance across all sports. Just a thought . . . . Dirtlawyer1 (talk) 21:48, 23 May 2013 (UTC)

the first is already proposed here. I had thought about the second as well, but it will take more time to work out all the details, since there are differences in the post-season tournament section for various sports. Frietjes (talk) 22:19, 23 May 2013 (UTC)
I just posted a comment in support of the merge of men's and women's college basketball templates. That pending merge should be a no-brainer, and you are clearly already on top of the two minor issues to be addressed in the combined template.
The creation of a combined infobox template for all U.S. college sports teams would require a lot of work and the inclusion of several options, but the core information to be included is common to all. Differences in NCAA playoff structure, etc., could be accommodated by options to be toggled as needed. The payoff would be worth the effort. Not only should these infoboxes have a common appearance within a given sport, the teams affiliated with a given university should also have a common appearance and graphics style, and that can only be accomplished by a common template across all college sports teams. I think you would find the college football, basketball and baseball sports projects to be supportive, and the other college sports do not have active/vocal WikiProjects and tend to follow the lead of the football, basketball and baseball projects. I would be grateful for your help in making this happen, but I also understand that you have numerous pending template projects already. Dirtlawyer1 (talk) 11:14, 24 May 2013 (UTC)

Frietjes, these example "college stripe" color graphics are exactly the direction in which I would like to go with a standardized infobox for all college sports -- with appropriate options and switches for all NCAA sports teams. It may be that Infobox college football team remains outside such a uniform infobox scheme because of its differences, but we could at least conform its graphics to those of a uniform template used by the other 20-odd NCAA sports. What's your reaction to these ideas, in light of what we have previously discussed above? Dirtlawyer1 (talk) 14:45, 1 April 2015 (UTC)

Help needed (later)

I've just been told, six months later, that usage of {{#property:P6}} is incorrect, and it should in fact be {{#property:P1313}}. There are probably a couple of hundred that will need changing (more or less all in Central Visayas). Could you possibly knock up some sort of automatic way of fixing this? But not yet – needs to be changed on wikidata first. I can do most things, but nearly 40 years in computing taught me to stay away from areas I have no mastery in (or even passing acquaintance). Unbuttered parsnip (talk) mytime= Thu 08:16, wikitime= 00:16, 2 April 2015 (UTC)

User:Unbuttered Parsnip, I may be able to help, but I don't control a bot. so either (a) ask User:Magioladitis or User:Plastikspork or (b) ask at WT:BOTREQ. by the way, isn't there a way to grab the data from wikidata by name, rather than by number? what are P6 and P1313? Frietjes (talk) 00:22, 2 April 2015 (UTC)
(edit conflict) Maybe one of those unconstructive "waste-of-time bots" would come in handy; you can ask at WP:AWB/TA or WT:BOTREQ. Alakzi (talk) 00:26, 2 April 2015 (UTC)
Removing readability spaces is certainly an unconstructive waste of time, as is mending anything that isn't actually broken. Doing useful repetitive work is what bots are for. Unbuttered parsnip (talk) mytime= Thu 13:37, wikitime= 05:37, 2 April 2015 (UTC)
The "bot" was indeed doing something useful, as I did explain to you. What is a readability space? And how does its removal justify your incivility? Alakzi (talk) 10:18, 2 April 2015 (UTC)

What should I do exactly? Directly adding wikidata items should be avoided at this stage. -- Magioladitis (talk) 00:27, 2 April 2015 (UTC)

Magioladitis, I believe the request is to find all articles which are within Central Visayas, and change property:P6 to property:P1313. however, I completely agree that directly adding wikidata seems like a bad idea for this exact reason. perhaps we can solve two problems at the same time. step 1, create a template which takes as its input the plain text label, in this case 'leader_name' and returns the wikidata property. step 2, replace all the raw calls to 'property:' with the templates. that way, if there is a need to change from P1313 to something else, we can change it in one place. since there are probably some outside of Central Visayas, you would want to scan all populated places in the Philippines. Frietjes (talk) 00:32, 2 April 2015 (UTC)
for example, in case this isn't clear, {{#property:P6}} would be replaced by {{PH Wikidata|leader_name}} or whatever is decided as the name for the new template. I don't have time to create the template today, but I could have a look in about 15 hours from now. Frietjes (talk) 00:35, 2 April 2015 (UTC)

If someone was adding wikidata items in templates then we should replace them with the exact value and wait until the template automatically grabs info from wikidata. Magioladitis (talk) 00:36, 2 April 2015‎ (UTC)

yes, I agree, but User:Unbuttered Parsnip seems set on doing this before we have support for it in template:infobox settlement. I have added support for grabbing the coordinates, but haven't added other parameters. Frietjes (talk) 00:38, 2 April 2015 (UTC)
if you want an example of all the data being pulled from Wikidata, check, for example, Muntinlupa. Frietjes (talk) 00:40, 2 April 2015 (UTC)
Not |leader-name= but |leader_title=. {{#property:P6}} is "head of government", {{#property:P1313}} is "office held by head of government". Seems like it needs doing pdq because charming wikidata editor has removed all incorrect P6 claims rather than correcting them. So all (about 200) pages are now broken. Unbuttered parsnip (talk) mytime= Thu 09:23, wikitime= 01:23, 2 April 2015 (UTC)
|leader_title1= is 'Vice&nbsp;'{{#property:P1313}} Unbuttered parsnip (talk) mytime= Thu 13:40, wikitime= 05:40, 2 April 2015 (UTC)
This is one of the reasons that at some point we should grab the entire information for a Infobox and for single parameters. When we are done {{Infobox foo}} would be suffice to display the entire data. -- Magioladitis (talk) 12:04, 2 April 2015 (UTC)