User talk:Karlfk

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


Welcome to Wikimedia Commons, Karlfk!

-- 09:35, 3 February 2012 (UTC)

SVG

[edit]

You may be right about this.[1] However, I haven't a clue how to create an SVG file. One thing I do know is that my PC doesn't support that format. ←Baseball Bugs What's up, Doc? carrots22:20, 25 July 2014 (UTC)[reply]

The SVG format will be automatically rendered as bitmap in different sizes (see File:Badminton court.svg), so everybody can see it. I will make the transformation. Karlfk (talk) 11:19, 4 August 2014 (UTC)[reply]

SVG map into geology

[edit]

Hi,

Why are you changing all "SVG|..." into "SVG|geology" without looking at what is the subject. Meteorological map and diagrams are not in geology. Please stop this.

Pierre cb (talk) 00:37, 15 August 2014 (UTC)[reply]

Hello Pierre. As far as I know, meteorology is a subdivision of geology. But if this is not wanted here, I will keep it in mind. What do you suggest? Should I open a new category "meteorology images..." or move them back to "map images..."? Karlfk (talk) 06:53, 15 August 2014 (UTC)[reply]
Meteorology is science of its own, part Earth Sciences and Physics. It has nothing to do with geology. Pierre cb (talk) 10:43, 15 August 2014 (UTC)[reply]
OK - I created a new category Meteorology images that should use vector graphics and shifted the two images there. Why did you revert it? Karlfk (talk) 10:50, 15 August 2014 (UTC)[reply]
Because there is more than a category of meteorological images : maps, diagrams, pictures, etc... Furthermore, the template has to be under the License, not at the beginning of the file. Pierre cb (talk) 02:34, 16 August 2014 (UTC)[reply]

To SVG sorting

[edit]

Hello Karlfk, I guess you do this all manually!? I've a script, I will make an user config-option for more flexibility, (there can be also a drop-down-button). I also guess you do this alone, because there is nothing mentioned about "your new" categorization (Template:To SVG).User: Perhelion (Commons: = crap?)11:18, 16 August 2014 (UTC)[reply]

Thank you for your help. I'm not familiar with the usage of scripts. If you give me some hints. Karlfk (talk) 06:40, 18 August 2014 (UTC)[reply]
Give me the list of categories that you use. I'll give you than the import-code for the script (PS: I'll optimize this script with Ajax, so you also don't need to open the files anymore, what is yet not fully implemented).
For the first time you can use the following code. Simply paste it into your common.js (or other MediaWiki skin related) JavaScript page, you can edit this simply also per user-preferences:
importScript('User:Perhelion/fixconverttosvg.js');
User: Perhelion (Commons: = crap?)09:58, 18 August 2014 (UTC)[reply]
For now let's get started with Category:Transport map images that should use vector graphics and Category:Map images that should use vector graphics. I imported the code above and some buttons appear: "Console" "Inspector" "Debugger" "Style Editor" "Profiler" "Network". Karlfk (talk) 10:31, 18 August 2014 (UTC)[reply]
What? %Þ This are the buttons from the FF web console. This buttons appears on the thumbs in the categories???User: Perhelion (Commons: = crap?)10:50, 18 August 2014 (UTC)[reply]
Sorry for being late. These buttons appear on shift-f5. When I installed the script, I was instructed to press this key. What is "thumbs in the categories"? Karlfk (talk) 13:01, 18 August 2014 (UTC)[reply]
Oh, I see! When I open one of the categories, behind the filenames several keywords (as "art" "biology" ...) are showing up. Karlfk (talk) 13:16, 18 August 2014 (UTC)[reply]
So when I click one of the keywords, the category is changed. That really helps a lot. Karlfk (talk) 13:37, 18 August 2014 (UTC)[reply]
Good! :-) Here is the user custom code, for example, you must modify it:
var convertToSVGTypes = "transport map, geology, meteorology";
importScript('User:Perhelion/fixconverttosvg.js');
The default list is:
["alphabet", "art", "biology", "chemical", "chemistry", "circuit", "coat of arms", "diagram", "flag", "graph", "icon", "logo", "map", "math", "military insignia", "musical notation", "physical", "signature", "sport", "symbol", "technology", "text"]
Hope that helps (I'll improve the script more). @Technical: The convertToSVGTypes can be a string or list type, you must separate the values with a comma. The links open now automatically in a new tab!? RegardsUser: Perhelion (Commons: = crap?)07:23, 19 August 2014 (UTC)[reply]


Code issues in User:Karlfk/common.js (fixconverttosvg)

[edit]

Hallo Karlfk, sorry für den Timer, habe ihn wieder rausgenommen. Genauer gesagt funzt das Script bei mir gar nicht, wegen einem anderen Script. Du kannst ruhig, nein du musst sagen wenn etwas nicht stimmt. Ich bin mit dem Script noch nicht fertig. Ich werde gleich das Ajax-Feature einsetzen (dann arbeitet es wie ein Bot, die Seiten müssen gar nicht mehr geöffnete werden). Ich habe auch die fehlenden Synonyme eingetragen, das alles habe ich nur aus deinem Editierverhalten gelesen. Desweiteren habe ich eine Schaltfläche in den WikiEditor um weiterhin manuelle Dateien zu taggen (allerdings noch nicht voll ausgereift da hier ebenfalls eine Funktion zum Prüfen rein muss, daher bis jetzt nur normaler Button-Text). Desweiteren hat mich gewundert, dass du deine Liste ständig verkleinert hast⁈ Ich habe auch eine Möglichkeit eingebaut die Default-Liste zu ersetzen (braucht man das?). VG und frohes SchaffenUser: Perhelion (Commons: = crap?) 07:39, 22 August 2014 (UTC)[reply]

PS: Ich habe ebenfalls ein Schutz, bzw. die Möglichkeit eingebaut auch mit dem 2. Parameter in der ToSVG Vorlage umzugehen. Hier ein Code der das Script länger in deinem Cache hält:
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Perhelion/fixconverttosvg.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=86400&bcache=1');
User: Perhelion (Commons: = crap?) 08:00, 22 August 2014 (UTC)[reply]
Ja ich möchte gelegentlich die Default-Liste ersetzen, da ich zu bestimmten Zeiten nur bestimmte Tags abarbeite. Wie macht man das?
Ich liste Dir nochmal alle Synonyme der Vorlage auf, die ich gefunden habeː
2svg
Convert to svg
ConvertToSVG
ConverttoSVG
In SVG konvertieren
Shouldbesvg
ShouldBeSVG
ShouldbeSVG
Should Be SVG
Should be svg
Should be SVG
SVG
Svg
ToSVG
To SVG
To svg
Vectorize
Groß- und Kleinbuchstaben werden unterschieden, außer beim ersten Buchstaben. Nochmal vielen Dank für Deine Mühe. Karlfk (talk) 08:19, 22 August 2014 (UTC)[reply]
Hej gut, ich habe eine Affinität zum Scripten (und zu SVG) und du vermutlich zum Aufräumen.:-D. Kein Ding, ich habe ja einen Orden bekommen.;-) (PS: wenn du magst kannst du auch mal mein brandneues SmilieScript ausprobieren, allerdings eher für Unterhaltung). Das Script sollte jetzt alle diese erkennen (seit gestern). Wobei eigentlich man jemand fragen könnte (ruhig im Forum/VP) ob man nicht 2-3 Löschen lassen sollte, da hier der Sinn etwas überstrapaziert wird. Hier der Trick mit dem Default, du musst aus dem Parameter eine echte (JS-) Liste machen, in der Form:
var convertToSVGTypes = ["transport map", "geology", "meteorology"];
Daher bietet es sich an die obige (JS-)Default-Liste als Vorlage zu nehmen. PS: Scheinbar scheint nicht jede Parameter zu funzen, mir war auch eigentlich so, dass die erstmal irgendwo registriert werden müssen⁈ Siehe Category:Other images that should use vector graphics PPS: es kann sein dass du nun den Cache löschen musst, da ich dies erst ebengrad freigeschaltet habe (ich dachte ich hatte dies schon, @Cache: STRG+F5 je nach Browser) User: Perhelion (Commons: = crap?) 08:40, 22 August 2014 (UTC)[reply]
AW: Sorry, ist wohl doch besser wenn du erst mal eine Kopie behältst. Wie gesagt konnte ich das Script live nicht testen (jetzt schon), scheint irgendwie ein RegExp-Fehler zu sein, kann mir das aber erst morgen wirklich anschauen. Schönen SonntagUser: Perhelion (Commons: = crap?) 15:47, 23 August 2014 (UTC)[reply]
Habe nun eine neue Version zum Testen erstellt (den vorherigen seltsamen Fehler habe ich mal hier kurz beschrieben). Neue Features sind:
  • Erkennung von doppelten Einbindungen (was ich schon öfters gesehen habe),
  • Ein Button-Menue (welches die gleiche Funktion zur Doubletten-Erkennung benutzt) Allerdings nur die die auch in der konfigurierten Liste sind(!?)
  • Schutz von weiteren Parametern (wie vectordata), die vorher einfach gelöscht wurden.
  • Alle bekannten Synonyme werden erkannt.
  • Ein klein wenig Geschwindigkeitsoptimierung (beim Aufbau und beim Laden)
Die Ajax-Version ist ebenfalls fast fertig, aber ich muss sie ordentlich testen. VGUser: Perhelion (Commons: = crap?) 16:26, 24 August 2014 (UTC)[reply]
Ein kleines Problem gibts noch. Der alphabetisch letzte in der Liste "convertToSVGTypes" erscheint als "undefined". Kann man umgehen, indem man einen Schein-Eintrag einfügt, der noch weiter hinten im Alphabet steht. Karlfk (talk) 12:56, 25 August 2014 (UTC)[reply]
Irgendetwas stimmt noch nicht. Ich habe die vorletzte Version (12:46, 25 August 2014) bei mir lokal, das funktioniert.
I've fixed this "undefined" (yesterday), what do you exactly mean with "Irgendetwas"?? You also have an "undefined" in your common.js.:-P (this only happens in sub-categories, because than this types get removed from the list ).User: Perhelion (Commons: = crap?)08:41, 26 August 2014 (UTC)[reply]
Der Editor wird geöffnet, aber es werden keine Veränderungen vorgenommen und es wird nichts abgespeichert. Karlfk (talk) 12:44, 26 August 2014 (UTC)[reply]
Oh yes, das war irgendwie ein Schusselfehler (kann ich mir eigentlich nicht erklären, deshalb hatte ich es auch nicht weiter getestet, da die Zeit knapp war).:-S Ist nun gefixt. Wenn du irgendwelche VerbesserungsIdeen hast, sag mir Bescheid! PS: Wozu hast du ein "undefined" in deiner "convertToSVGTypes"?User: Perhelion (Commons: = crap?)14:45, 26 August 2014 (UTC)[reply]
Weil der letzte Eintrag in der Liste sonst ausgelöscht wird. Vielleicht ist das mit der neuen Version nicht mehr nötig. Karlfk (talk) 14:47, 26 August 2014 (UTC)[reply]
Ich arbeite jetzt mit der vorletzten Version Deines scripts (11:49, 28 August 2014). Bei der aktuellen Version erscheinen unter den Bildern keine Links zum automatischen Edit. Karlfk (talk) 09:53, 29 August 2014 (UTC)[reply]
Aja, ich hatte nur kurz mit Chrome getestet. Es ist schon etwas zeitraubend jede kleine Änderung durchzutesten, deshalb danke dir dafür. Darf ich vermuten dass du FF benutzt? Neu in letzter Version sind (eher Kosmetik):
  • (der Text der) Schlüsselwörter/Typen werden nun nicht mittendrin umgebrochen (sofern mit Leerzeichen)
  • (die Text-)Breite für jedes Bild habe ich auf ~280px erhöht!?
  • Der LinkName des Bildes ist nun ein Edit-Link!?
  • Bestehender ZusammenfassungsText wird erhalten.
So ich muss wieder los, bis dann. VG (PS: ja das "undefined" sollte nicht mehr erscheinen, bzw. letzter Eintrag nicht verschwinden)User: Perhelion (Commons: = crap?)13:03, 29 August 2014 (UTC)[reply]
Ja, ich benutze Firefox. Ich werde die neue Version ausprobieren und Dir bescheid geben. Karlfk (talk) 13:07, 29 August 2014 (UTC)[reply]
Ausprobiert. Die Links erscheinen nicht. Karlfk (talk) 13:22, 29 August 2014 (UTC)[reply]
Oha* sehr seltsam, FF meldet aus Sicherheitsgründen ist die Funktion gesperrt, lokal funktioniert sie aber. Ich habe eine subtile Alternative genommen (mittels Kompatibilitäts-lib, man lernt halt immer dazu :P). Desweiteren muss die Vorlage unter den Info-Block gesetzt werden, was auch nicht ganz so einfach ist wie es scheint, mal sehen.User: Perhelion (Commons: = crap?)04:30, 30 August 2014 (UTC)[reply]

Bot

[edit]

Please stop your bot and file a request , see also COM:AN/U. --Steinsplitter (talk) 11:56, 19 September 2014 (UTC)[reply]


Hi Karlfk, I am a bored bot (this is kind of a computer program) that is watching the recent changes and tapping buttons like I did now.

Curious about the reason? Possibly not but I will tell you anyway:

  1. You edited User:Karlfk/fixconverttosvg.js. Glad to see you coding in javascript! Have you ever considered becoming a MediaWiki hacker?
  2. Though, that change appears to introduce 1 new jshint issue — the page's status is now having warnings. Note that invalid or ambiguous code often has unwanted side effects like breaking other tools for you. If you cannot find out how to fix it, I suggest blanking the page for now.
  3. To help you understanding where the issues are, I have aggregated a report here and now. If you have questions, don't hesitate to ask users experienced in javascript writing for help. But do not ask the bot's operators (chronically overwrought) unless you suspect an error of mine. If you prefer not getting spammed by me, you can opt-out reports by adding {{ValidationOptOut|type=all}} to your user page or cmb-opt-out anywhere on your your global user page on Meta. Good luck at Wikimedia Commons and happy hacking!
  1. ISSUE: line 21 character 69: Expected an assignment or function call and instead saw an expression. - Evidence: par = /\|[^|}]*\s*(\|[^|}]+)/.exec(RegExp.lastMatch) || par;

Your CommonsMaintenanceBot (talk) at 09:17, 29 September 2014 (UTC).[reply]

Category discussion warning

Category:Languages_of_Europe_by_region has been listed at Commons:Categories for discussion so that the community can discuss ways in which it should be changed. We would appreciate it if you could go to voice your opinion about this at its entry.

If you created this category, please note that the fact that it has been proposed for discussion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with it. If the category is up for deletion because it has been superseded, consider the notion that although the category may be deleted, your hard work (which we all greatly appreciate) lives on in the new category.

In all cases, please do not take the category discussion personally. It is never intended as such. Thank you!


Zoupan (talk) 18:32, 22 December 2015 (UTC)[reply]

Battle map images that should use vector graphics

[edit]

Hi Karlfk,

what about merging Category:Battle map images that should use vector graphics and Category:Military map images that should use vector graphics? In the "Military map" category there are still many battle maps. Reducing the number of different categories could enhance the overall completeness of the classification.

Cheers, Sascha GPD (talk) 07:47, 2 May 2017 (UTC)[reply]

Notification about possible deletion

[edit]
Some contents have been listed at Commons:Deletion requests so that the community can discuss whether they should be kept or not. We would appreciate it if you could go to voice your opinion about this at their entry.

If you created these pages, please note that the fact that they have been proposed for deletion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with them, such as a copyright issue. Please see Commons:But it's my own work! for a guide on how to address these issues.

Please remember to respond to and – if appropriate – contradict the arguments supporting deletion. Arguments which focus on the nominator will not affect the result of the nomination. Thank you!

Affected:


Yours sincerely, P 1 9 9   18:21, 21 May 2021 (UTC)[reply]

Category discussion warning

Battle maps of the Seven Years' War has been listed at Commons:Categories for discussion so that the community can discuss ways in which it should be changed. We would appreciate it if you could go to voice your opinion about this at its entry.

If you created this category, please note that the fact that it has been proposed for discussion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with it. If the category is up for deletion because it has been superseded, consider the notion that although the category may be deleted, your hard work (which we all greatly appreciate) lives on in the new category.

In all cases, please do not take the category discussion personally. It is never intended as such. Thank you!


Enyavar (talk) 16:27, 1 December 2021 (UTC)[reply]