Wikivoyage/Lounge/Archive/2017-08
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Lint errors
In the last few days I've working to solve some errors listed in the "it:voy lint errors special page" that will turn into layout issues once the server software migration will occur (i.e. 2018).
I suggest that all the maintainers of every language version would do the same. Here the links:
- voy:de:Special:LintErrors
- voy:el:Special:LintErrors
- voy:en:Special:LintErrors
- voy:es:Special:LintErrors
- voy:fa:Special:LintErrors
- voy:fi:Special:LintErrors
- voy:fr:Special:LintErrors
- voy:he:Special:LintErrors
- voy:it:Special:LintErrors
- voy:nl:Special:LintErrors
- voy:pl:Special:LintErrors
- voy:pt:Special:LintErrors
- voy:ro:Special:LintErrors
- voy:ru:Special:LintErrors
- voy:sv:Special:LintErrors
- voy:uk:Special:LintErrors
- voy:vi:Special:LintErrors
- voy:zh:Special:LintErrors
--Andyrom75 (talk) 08:03, 17 July 2017 (UTC)
- I will look into this, in regard to voy:sv during the next days. Dan Koehl (talk) 15:53, 17 July 2017 (UTC)
- Thanks.--Ymblanter (talk) 20:16, 17 July 2017 (UTC)
- If you run into problems, then you can ping me. I don't know how to fix most of them myself, but I do know several people who have been working on them. You can also leave a message at w:en:Wikipedia talk:WikiProject Check Wikipedia to find some of them.
- By the way, if your wiki has a large number of errors, then start by fixing as many errors in templates as you can. I'm told that fixing just one template solved thousands of these errors at one of the Wikipedias. Whatamidoing (WMF) (talk) 05:47, 18 July 2017 (UTC)
- I propose to check highly-used templates first to reduce the numbers of lint errors. Unfortunately, there is a bug checking module pages for lint errors although they use a different content model. --RolandUnger (talk) 07:06, 18 July 2017 (UTC)
- In case of "Obsolete HTML tags" we should ask for a bot. --RolandUnger (talk) 07:11, 18 July 2017 (UTC)
- I confirm that the "template approach" helps a lot, I've removed thousands of issues just with them. I've noticed that also our "base listing template" generate a "span" issue (that generate thousands of low priorities occurrences) but I'm not still able to solve it. --Andyrom75 (talk) 10:20, 18 July 2017 (UTC)
- If you can, please tell me where I can find more information to fix these errors. --Zerabat (discusión) 20:17, 19 July 2017 (UTC)
- Generic information about the issues can be found here. In most cases, to fix them is enough to know well both HTML and wiki-syntax rules. --Andyrom75 (talk) 06:41, 20 July 2017 (UTC)
- On en:voy I've solved around 200K issue working only Template:Listing. See comments in history and in talk page. It would be useful for other language versions. --Andyrom75 (talk) 00:38, 23 July 2017 (UTC)
- Generic information about the issues can be found here. In most cases, to fix them is enough to know well both HTML and wiki-syntax rules. --Andyrom75 (talk) 06:41, 20 July 2017 (UTC)
- If you can, please tell me where I can find more information to fix these errors. --Zerabat (discusión) 20:17, 19 July 2017 (UTC)
- I confirm that the "template approach" helps a lot, I've removed thousands of issues just with them. I've noticed that also our "base listing template" generate a "span" issue (that generate thousands of low priorities occurrences) but I'm not still able to solve it. --Andyrom75 (talk) 10:20, 18 July 2017 (UTC)
- In case of "Obsolete HTML tags" we should ask for a bot. --RolandUnger (talk) 07:11, 18 July 2017 (UTC)
- I propose to check highly-used templates first to reduce the numbers of lint errors. Unfortunately, there is a bug checking module pages for lint errors although they use a different content model. --RolandUnger (talk) 07:06, 18 July 2017 (UTC)
- With only two templates, font color and de:Vorlage:Center|center, we could remove most of our obsolete tag failures. The usage of regular expressions with a JavaScript was really helpful to replace these tags by the templates. --RolandUnger (talk) 18:16, 23 July 2017 (UTC)
- RolandUnger in de:voy you already had voy:de:Vorlage:Color. In it:voy I used voy:it:Template:ColoreTesto and accoding to Wikidata link the de:voy template should be equivalent. Why you have created a new one?
- By the way, watch out on replacing straight that template because there are some cases where you need to apply a different rule, let me give you two example:
- FONT can be applied to an anchor (i.e. A) while SPAN must be applied to the label. This is valid for both external and internal link
- CENTER can be applied to an IMAGE (or also a more complex content) while DIV should be treated in a slight different way to obtain same effect (in most cases I have used style="margin:auto;" in an inner DIV).
- --Andyrom75 (talk) 20:35, 23 July 2017 (UTC)
- With only two templates, font color and de:Vorlage:Center|center, we could remove most of our obsolete tag failures. The usage of regular expressions with a JavaScript was really helpful to replace these tags by the templates. --RolandUnger (talk) 18:16, 23 July 2017 (UTC)
┌─────────────────────────────────┘
Most wikis including meta use both font color and color. It makes maybe sense to use one of them as a redirect to the other. Both templates were imported from the English Wikipedia. From our experience, about 95% of all <font>
tags were used to set colors, the other ones to format headers (instead of h3 or h4). Nobody used the font tag for anchors. We could replace them all.
Our center template uses both margin (0 auto) and text-align (center) styles which is suitable for all cases. There is a set of templates and other tools to do the same: to center. Images (center parameter), galleries (class="center") and maps have built-in center opportunities. Style-sheet declarations are useful means for instance in case of tables, too. There were no cases where we could not found a substitute. --RolandUnger (talk) 04:44, 24 July 2017 (UTC)
- RolandUnger, although is not strictly related to lint errors, I take the chance to ask you a question. In the past if I applied align="center" to galleries works correctly but recently don't. As far as you know, is a current bug or is correct that it doesn't work? I haven't found anything on MW documentation. --Andyrom75 (talk) 07:49, 24 July 2017 (UTC)
- In galleries class="center" is working; align="center" seems not to be supported. Stylesheets can be used to format the captions. You cannot combine perrow="n" and class="center"; perrow is stronger. --RolandUnger (talk) 09:21, 24 July 2017 (UTC)
- Maybe align will be/is removed for all elements like the intended removal of font, center, etc. --RolandUnger (talk) 09:24, 24 July 2017 (UTC)
- Thanks for the advice. I've replaced both the align="center" and the "center tag" that surround a gallery with class="center". Now everything works perfectly. --Andyrom75 (talk) 10:56, 25 July 2017 (UTC)
- Maybe align will be/is removed for all elements like the intended removal of font, center, etc. --RolandUnger (talk) 09:24, 24 July 2017 (UTC)
- In galleries class="center" is working; align="center" seems not to be supported. Stylesheets can be used to format the captions. You cannot combine perrow="n" and class="center"; perrow is stronger. --RolandUnger (talk) 09:21, 24 July 2017 (UTC)
┌─────────────────────────────────┘
At Wikivoyage/de we solved most of the lint errors. The remaining errors are false positives or were produced by one (unused) template. --RolandUnger (talk) 04:37, 3 August 2017 (UTC)
The visual editor
Hello, all! This is just a note to say that, if you're involved in the smaller Wikivoyages, please check your local Traveller's Pub or equivalent page this week for information about editing tools.
Also, I noticed that the listings buttons in the toolbar for the wikitext editor are showing the wrong icons on several Wikivoyages – curved lines, rather than the correct icons. (Example) It seems to me that this has been discussed before and that someone knows how to fix it. (This problem doesn't affect the bigger Wikivoyages: German doesn't seem to have these, and en, fr, it, and ru are displaying them correctly.) If you know or can find out how to fix these, then maybe we can work together to get this fixed. Whatamidoing (WMF) (talk) 18:30, 8 June 2016 (UTC)
- This issue with the listings buttons comes from several months ago, and I particulary don't know how to fix it. --Zerabat (discusión) 15:36, 13 June 2016 (UTC)
- About the listings buttons, it has been fixed in eswikivoyage: voy:es:Special:Diff/128406. --Zerabat (discusión) 21:54, 5 November 2016 (UTC)
- It looks like https://uk.wikivoyage.org and https://pt.wikivoyage.org still need to have this fixed. Whatamidoing (WMF) (talk) 20:07, 11 August 2017 (UTC)
- About the listings buttons, it has been fixed in eswikivoyage: voy:es:Special:Diff/128406. --Zerabat (discusión) 21:54, 5 November 2016 (UTC)