User talk:Frietjes

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Barnstar for you![edit]

Template:Infobox pipeline[edit]

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)

Beagel, has this been fixed? if not, you should as User:Jimp who wrote Template:Bbl to t. Frietjes (talk) 14:54, 2 April 2015 (UTC)
Wikipedia:Manual_of_Style/Dates_and_numbers#Unit_names_and_symbols states "Do not use M for 103, MM for 106, or B for 109." Jimp 18:12, 2 April 2015 (UTC)
Thank you. The problem was/is that a number of complains about this has been made in the different articles and in several cases numbers were changed to correspond M to 103 (e.g. in the case of the Keystone Pipeline). I solved the problem by turning abbreviation off for this unit in this template, so this should avoid a confusion. Beagel (talk) 09:46, 9 April 2015 (UTC)

Need(s) proper infobox[edit]

I like the header ;)

Something from Lua[edit]

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 Wikipedia, 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):

[[File:{{{parameter 3}}}|{{{parameter 4}}}]] [[Portāls:{{{parameter 2}}} portāls|{{{parameter 1}}}]]

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 (talk/contribs) 14:20, 26 May 2014 (UTC)

CHECKWIKI February lists are available[edit]

Pages with tt tags[edit]

[19]. -- 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[edit]

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)

unclosed center/small tags[edit]

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


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

Pages with empty span tags[edit]

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

Follow-up re color graphics[edit]

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 [20]).
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)
Frietjes, Alakzi implemented the new "varsity stripe" graphics and other sandbox changes to the template earlier today. We still have to resolve the issue regarding those handful of teams that have a near-white second color (e.g., "cream"). For an example of this, please see the Jason White (American football) article, which uses the Oklahoma Sooners' colors, red and cream. As you can see, the "cream" highlight stripes are barely visible, if at all, depending on the monitor on which the article is viewed. I think we have two viable solutions: (1) shadow the near-white second color stripes with thinnest available black stripe, or (2) use the red primary color for both primary and secondary color stripes. What's your reaction? This same problem exists for the Nebraska Cornhuskers, too. Dirtlawyer1 (talk) 20:35, 13 April 2015 (UTC)
Dirtlawyer1, now adjusted to treat "near white" the same as white. it uses a threshold for the definition of "near white", which can be adjusted. in the case that the secondary is "near white" it uses the primary as the border stripe and the secondary as the font color. another option would be to use the primary as the border stripe and white as the font color (basically ignore the secondary). you can see them all in User:Frietjes/ncaa. let me know if you see a problem. Frietjes (talk) 16:04, 14 April 2015 (UTC)
Thank you for all of your work on this, Frietjes. I think that takes care of all of the previously identified issues. I'm sure we will encounter the need for a few tweaks as we review the individual teams' colors in actual use, but the overall scheme looks pretty darn good for now. Dirtlawyer1 (talk) 16:31, 14 April 2015 (UTC)

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

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 [21] 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)[edit]

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)
Five months editing, clocking up counts with clumsy use of bot, does not give one mastery of civility. Unbuttered parsnip (talk) mytime= Wed 13:47, wikitime= 05:47, 8 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)
can we generate a list of all articles which use '#property:' directly? I am guessing there are more than 500? Frietjes (talk) 01:09, 3 April 2015 (UTC)
I think |PH wikidata=province will need a tweak – application of regexp (not my strongest suit by a long chalk) – because some of them include disambiguation, e.g. Leyte (province). Siquijor is the opposite, where the capital page is (rather ludicrously) Siquijor, Siquijor. Left you a message on the talk page. Unbuttered parsnip (talk) mytime= Tue 21:31, wikitime= 13:31, 7 April 2015 (UTC)
User:Unbuttered Parsnip can you provide an example where it is doing the wrong thing? the first few I checked in Leyte are linking to Leyte (province). Frietjes (talk) 16:09, 7 April 2015 (UTC)
Sorry I wasn't thinking straight / seeing straight Unbuttered parsnip (talk) mytime= Wed 13:43, wikitime= 05:43, 8 April 2015 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────This is latest from wikidata bod. Honestly, this just confirms my opinion of wikidata being the biggest load of ordure inflicted on man. Validation and constraints aren't normaly built in – they're just written on the property talk page. Don't know by whom.
In this case, maybe solution would be to hold a list of ISO 01366-2 codes by province. I can't do it myself as I've been feeling ill for a couple of days. Unbuttered parsnip (talk) mytime= Thu 16:02, wikitime= 08:02, 9 April 2015 (UTC)

Balilihan, Bohol[edit]

The location map at Balilihan, Bohol is broken and I can’t see why. You were the last to edit it but I don’t think that’s the cause, but I can't see what is; the data looks all OK, the templates look OK (and if they weren’t I think the errors would be far more widespread). I tried purging it in case it was stuck with some old version of the data/template. I could probably fix it by inlining the coordinates but that effectively undoes the work of moving the data to wikidata.--JohnBlackburnewordsdeeds 15:26, 9 April 2015 (UTC)

All Wikidata-generated location maps were broken; this should fix it. Alakzi (talk) 16:00, 9 April 2015 (UTC)
A belated thanks. Odd it didn't show up earlier; perhaps something changed in the underlying Mediawiki extension which made such code no longer work.--JohnBlackburnewordsdeeds 21:33, 9 April 2015 (UTC)
Indeed, it did; see WP:VPT#Wikibase API changelog. Alakzi (talk) 21:44, 9 April 2015 (UTC)

Help with CHECKWIKI errors[edit]

Magioladitis (talk) 15:49, 9 April 2015 (UTC)

Magioladitis, I think these are mostly all done. Frietjes (talk) 18:37, 9 April 2015 (UTC)

Thank you very much. One page left with table not correct end. Here's some more I need help with:

-- Magioladitis (talk) 21:30, 9 April 2015 (UTC)

Magioladitis, could you recheck some of these? many of the ones in 43 were also in 34. Frietjes (talk) 13:07, 10 April 2015 (UTC)
Rechecked. 0 in 28, 43 and 46. 35 in 85. -- Magioladitis (talk) 14:21, 10 April 2015 (UTC)
Magioladitis, should be mostly done. Frietjes (talk) 15:20, 10 April 2015 (UTC)

85 done. Three more lists:

-- Magioladitis (talk) 15:59, 10 April 2015 (UTC)

59 in 47, 250 in 10, 5 in 63 (after updating lists and rechecking). -- Magioladitis (talk) 16:25, 10 April 2015 (UTC)

Magioladitis, you can recheck these. I won't have any time to work on 10 for a couple days. Frietjes (talk) 17:28, 10 April 2015 (UTC)
Thank again. All done now! Only error 94 left. -- Magioladitis (talk) 09:49, 11 April 2015 (UTC)

Infobox UK Fire and Rescue[edit]

Hello! I wanted to chat with you about the {{Infobox UK Fire and Rescue}}. A quick look at the history of that template shows that you were a major contributor. There is currently an ongoing conversation about merging this template with that of {{Infobox fire department}}. Consensus seems to be leaning in favor of merging and I wanted to chat with you about it. My main question for you is do you feel that {{Infobox fire department}} has the necessary fields or do you feel that it is missing things that should be added IF it is to be used instead of {{Infobox UK Fire and Rescue}}? I am very familiar with the fire service, but as a resident of the US, I have only been focused on departments in the US. My main concern is WP:WORLDVIEW... I KNOW that I have a certain bias towards the US because I am a US resident. So just want to make sure that this template truly is usable world wide. Any feedback you have would be most appreciated. Thanks so much and hope you are having a great day! --Zackmann08 (talk) 18:49, 12 April 2015 (UTC)

Conversion to Lua[edit]

Hi! If Module:Basketball color/data would be stand-alone page, would it be possible to use Module:Data to get color codes? I'm thinking, could I convert to Lua this template. --Edgars2007 (talk/contribs) 17:57, 13 April 2015 (UTC)

User:Edgars2007, I was not aware of Module:data. feel free to try something in Module:Basketball color/sandbox. I will check any changes for issues. thank you. Frietjes (talk) 18:04, 13 April 2015 (UTC)
No, you misunderstood me :) Will try to rephrase question. I have no intention to make changes in basketball color module. Was just asking, how Module:Data could be used for module, that has the same structure as this data module. My intention was to convert this template to Lua :) --Edgars2007 (talk/contribs) 18:28, 13 April 2015 (UTC)
User:Edgars2007, yes, I did misunderstand you. I don't recall where Module:Data is used, so I can't really comment on the applicability to this particular application. however, you could easily write your application in lua by creating a data table, and then just looking up the result. you just need to make sure you fail correctly when the target is not in the table. by the way, it looks like {{#time:F|2015-{{{2}}}-1}} and {{#time:xg|2015-{{{2}}}-1}} cover two of the cases in your template. I am wondering if there are other 'x' codes for the other grammatical cases. if I knew where to find the code, I could check. Frietjes (talk) 15:40, 14 April 2015 (UTC)
It is used, for example, in this template. I'm just trying to simplify our (lvwiki) date template, and doing things one by one, so that after some time (when I will be hopefully Lua professional in Wikipedia terms :) ) we could switch to completely Lua module, but not for now. This template was proposed to replace bunch of templates. And as I suppose such "switch" in Lua (when there is switch in each switch) is much more better ten in parser functions, I though it could be converted in such manner. But if not, then not, it isn't the main problem. Well, now at least you'll be aware of data module, which maybe someday will help :) --Edgars2007 (talk/contribs) 21:14, 14 April 2015 (UTC)

Cite isbn[edit]

Any idea of how we get rid of Template:Cite isbn? I noticed that you tried safesubst with no success? -- Magioladitis (talk) 08:07, 16 April 2015 (UTC)

Magioladitis, Template:Cite isbn/subst should work safely. basically, you want the equivalent to the javascript
txt.value = txt.value.replace(/<ref[\t\r\n ]*>[\t\r\n ]*(\{\{)[Cc]ite[_ ]+isbn[_ ]*(\|[^{}]*\}\})[\t\r\n ]*<\/ref>/gi, '\{\{subst:#tag:ref|$1subst:cite isbn/subst$2\}\}');
txt.value = txt.value.replace(/<ref[\t\r\n ]* (name[ ]*=[^<>]*)>[\t\r\n ]*(\{\{)[Cc]ite[_ ]+isbn[_ ]*(\|[^{}]*\}\})[\t\r\n ]*<\/ref>/gi, '\{\{subst:#tag:ref|$2subst:cite isbn/subst$3|$1\}\}');

but double check to make sure nothing goes wrong. the Template:Cite isbn/subst should fail gracefully when substituted with bad inputs (i.e., a non-existing subpage or an isbn of the wrong length). it also tries to clean up the substituted output by removing excess space and blank parameters. let me know if you see any problems. Frietjes (talk) 15:53, 16 April 2015 (UTC)

Do you know how I ca use this through script or through AWB? The latter is preferable. -- Magioladitis (talk) 15:32, 17 April 2015 (UTC)

Magioladitis, the pattern is inside the / / and the replacement is inside the ' '. note that these patterns are only for replacing ones that are inside ref tags, which only works if you do the extra transformations. assuming you have a method for detecting when a template is inside or outside a ref tag, you can just use standard substitution for ones that are outside of ref tags (i.e., {{cite isbn| -> {{subst:cite isbn/subst|). Frietjes (talk) 15:38, 17 April 2015 (UTC)
Thank you. I tried to implement it and fail. Anyway, if you have some please subst some. I am trying to reduce any ISBN related templates. -- Magioladitis (talk) 15:50, 17 April 2015 (UTC)
you should ask someone who knows more about AWB and regexp to write a pattern for you for substituting templates that are inside of ref tags. the key is that you can't substitute "cite isbn" but you can substitute "cite isbn/subst". and that you have to transform any ref tags to subst:#tag:ref since, otherwise, substitution doesn't work inside of ref tags. Frietjes (talk) 15:53, 17 April 2015 (UTC)
Magioladitis, if you want a script instead, you can try User:Frietjes/substciteisbn.js. Frietjes (talk) 16:18, 17 April 2015 (UTC)

Castell Coch[edit]

Hi, for some reason the Grade I listed parameter is not showing in the infobox. It works on infobox building, can you add heritage designation to ib military structure?♦ Dr. Blofeld 18:29, 16 April 2015 (UTC)

User:Dr. Blofeld you will need to be more specific, there is no |heritage designation= in {{infobox building}}. Frietjes (talk) 18:58, 16 April 2015 (UTC)
See Little Moreton Hall for instance. I want that Grade I pink banner section to display in Coch.♦ Dr. Blofeld 19:36, 16 April 2015 (UTC)
use either Template:Infobox historic site or Template:Infobox designation list as a module. Frietjes (talk) 19:42, 16 April 2015 (UTC)
Looks good now, thanks for that!♦ Dr. Blofeld 20:31, 16 April 2015 (UTC)

Dominican Republic[edit]

Spotted some really Jurassic looking infoboxes in the likes of Azua Province. Perhaps you could replace them when you have some spare time!♦ Dr. Blofeld 14:02, 17 April 2015 (UTC)

ask at Template talk:Geobox or send Template:Geobox to WP:TFD. Frietjes (talk) 14:04, 17 April 2015 (UTC)

city timelines[edit]

Hello. Your recent edits are incorrect. The timelines were compiled from various sources, including a wide variety of articles in non-English Wikipedia. Please stop editing the timeline articles (eg Dusseldorf, Khartoum, Samarkand) as you have done today, since your edits do not reflect how the articles were actually created. Thanks. -- M2545 (talk) 17:11, 17 April 2015 (UTC)

M2545, please read Wikipedia:Copying within Wikipedia#Translating from other language Wikimedia projects. Frietjes (talk) 17:12, 17 April 2015 (UTC)
Non-English Wikipedia articles were used to check facts, but nothing was copied. -- M2545 (talk) 17:15, 17 April 2015 (UTC)
M2545, either it requires attribution or not, either way the note doesn't go in the article. Frietjes (talk) 17:17, 17 April 2015 (UTC)

Seriously, please stop adding incorrect info. The timelines do not contain translated content. Nothing was copied. Thanks for your cooperation. M2545 (talk) 17:31, 17 April 2015 (UTC)

M2545, please read Wikipedia:Copying within Wikipedia#Translating from other language Wikimedia projects, if no attribution is required, then no disclaimer is needed. Frietjes (talk) 17:32, 17 April 2015 (UTC)
The note you have added eg "This article contains a translation of an Unspecified article from fr.wikipedia" is just not true, so please stop adding it. The articles DO NOT "contain a translation." M2545 (talk) 17:36, 17 April 2015 (UTC)
the articles state ''This article incorporates information from the [[Arabic Wikipedia]].'' again, if no attribution is required, then remove it. however, either way, no disclaimer is needed in the article. Frietjes (talk) 17:37, 17 April 2015 (UTC)

I have added eg This article incorporates information from the Arabic Wikipedia to articles that have, for instance, a link to an English-language Wikipedia article, but the salient fact is found in the (for instance) Wikipedia Arabic-language version of that article about the stadium. In Aden, Yemen, for instance, the year a stadium opened is not in the English article, but is in the Arabic article. The English timeline thus includes the year that is linked via the English version of the stadium article. It seems fair to include the vague, yet true statement about "incorporating info." M2545 (talk) 18:09, 17 April 2015 (UTC)

no disclaimer is needed in the article, just a citation using a WP:RS, and another wiki is not a reliable source. see WP:NOATT. Frietjes (talk) 19:16, 17 April 2015 (UTC)

Please remove your recent additions eg, "This article was edited to contain a total or partial translation of an Unspecified article from the Chinese Wikipedia. Consult the history of the original page to see a list of its authors." This type of message doesn't lead anywhere helpful. Your intention may be good, but your persistently inaccurate edits seem misleading and disruptive.

M2545 (talk) 08:50, 18 April 2015 (UTC)

Center tags[edit]

Please have a look at Symbols of Serbia. -- Magioladitis (talk) 20:53, 17 April 2015 (UTC)

Big Four international beauty pageants. 280 unclosed tags. It turns this is a problem in many beauty pageant pages. -- Magioladitis (talk) 07:34, 19 April 2015 (UTC)

Coding for Infobox swimmer[edit]

Hey, Frietjes. As part of my education, can you tell me what the PAGENAMEBASE coding does here: [22]? Dirtlawyer1 (talk) 15:30, 18 April 2015 (UTC)

see template:PAGENAMEBASE? Frietjes (talk) 15:30, 18 April 2015 (UTC)
Not a lot of explanation on the documentation page. Does this simply insert the page name in the infobox if the name is not specified in the infobox "name" parameter? Dirtlawyer1 (talk) 16:44, 18 April 2015 (UTC)
@Dirtlawyer1: {{PAGENAMEBASE}} simply takes the name of the page the infobox is transcluded on and removes any text inside brackets. It is used in place of |name= when the latter is blank, but that's not a function of {{PAGENAMEBASE}}. Alakzi (talk) 17:39, 18 April 2015 (UTC)
"removes any text inside brackets" -- does that mean that it eliminates parenthetical disambiguations? Dirtlawyer1 (talk) 17:43, 18 April 2015 (UTC)
Correct. Alakzi (talk) 17:50, 18 April 2015 (UTC)
That is useful coding. Thanks. Dirtlawyer1 (talk) 18:00, 18 April 2015 (UTC)