Jump to content

Wikivoyage/Lounge/Archive/2013-06

From Meta, a Wikimedia project coordination wiki
Latest comment: 11 years ago by Atsirlin in topic Pagebanners

New script : Semi-automatic merging of recent changes from WT to Wikivoyage

WT still gets good edits, mostly by Wikivoyage-unaware IPs. We should merge these good edits into WikiVoyage. I wrote a Linux script that makes it semi-automatic:
https://github.com/nicolas-raoul/MergeFromWt

For each article recently modified on WT, it shows the differences between WT&WV in a diff editor, and give you a link to easily upload the merged wikicode if there are edits worth taking. You can easily choose what changes to take in the diff editor. To make it perfectly legal, the script also gives you the list of attributions to paste as an edit summary.

The script is pre-configured for English, but for another language just change the LANGUAGE setting at the top of the *run.sh* file.
Please use it :-) Waiting for your feedback! Nicolas1981 (talk) 07:46, 27 March 2013 (UTC)

That's very cool. SJ talk  03:23, 1 June 2013 (UTC)

If there are legal issues with current one why dont we just change it's colors? As i can remember there was choosing color discussion when it was elected. I think its better idea than use something extremely different. And there was other proposals during the last vote - why we look only on one? Sure voting by nonvoycommunity is bad but im not sure we can change it. E.g. current name of voy:uk: have been choosen mostly by ones that are not contributing in it, wy/uk editors supported mostly other variant. --Base (talk) 10:25, 1 June 2013 (UTC)

While using different colors may have prevented the WTO from complaining, now that they have filed a cease and desist, changing the colors would be similar to plagiarizing text, but changing the word order. In any rate, how to respond to legal issues is the one thing that is not community-decided; WMF legal makes this decision. --Peter Talk 19:59, 1 June 2013 (UTC)
I was explicitly told that we must start from scratch and cannot use a derivative of the current logo. LtPowers (talk) 20:52, 1 June 2013 (UTC)
Originally current logo was created as some portal's logo, as I can remember, and the font was created before choosing logo and there were no problems with them in that time so I don't understand why we cant just create a new one that will only have different colors. I see no similarities to plagiarizing text here because the problem is only in appearance. WTO cant usurpate all logos that have horizontal strokes in it. I think it's too trivial picture and here only colors have some value. I think we should rollback to Wikivoyage/Logo/Round_2 but not create new from scratch. It will be not derivative from current, it will be derivative from the same material, IMO. --Base (talk) 16:03, 3 June 2013 (UTC)
I'm afraid your opinion on the matter is irrelevant. WMF insists. LtPowers (talk) 20:09, 4 June 2013 (UTC)

If we must choose a new logo then I believe that it would only be fair that we held a new contest to the old one. ויקיג'אנקי (talk) 05:36, 3 June 2013 (UTC)

We're working on it; please see Wikivoyage/Logo announcement and Logo selection procedure and their associated talk pages. LtPowers (talk) 15:28, 3 June 2013 (UTC)

Interwiki map

Can anyone help me adjust the interwiki map on pt:? We don't know how to do it. When we put the wikipedia interwiki [[wikipedia:Pagename]] at the bottom of articles to create the sidebar links, those automatically go to English wikipedia unless we put "pt:" before the page name every time. I'd like to set it to go to the corresponding WP:pt: page every time without having to specify the language every time. Does anyone know how to do that? Is it something we have to open a bugzilla request for? Any help would be greatly appreciated... Texugo (talk) 02:13, 6 June 2013 (UTC)

Try [[w:Foo]]. wikipedia: -> enwiki, w: -> xx.wikipedia.org. PiRSquared17 (talk) 16:34, 6 June 2013 (UTC)
Sorry if I wasn't clear. I know that w: works, but that creates an in-line link in the article, not the sidebar interwiki link I'm trying to fix. Any other ideas? 187.70.115.113 17:06, 6 June 2013 (UTC)
Have a look at #Wikivoyage_in_French above. Looks like the Germans created a new template. -- Torty3 (talk) 14:05, 7 June 2013 (UTC)

Pagebanners

Hello, en.wikivoyage is looking at implementing pagebanners (example en:voy:Garibaldi_Provincial_Park) throughout the site, and a few other language versions have copied over their own. Concerns have come up over the duplication of titles, and we've been informed that we need to set $wgRestrictDisplayTitle to false in InitialSettings.php in order to remove the duplication. We were in the middle of requesting this for en alone, before expanding it to all of Wikivoyage (bugzilla report).

The decision to use pagebanners will still need to be made on each individual Wikivoyage, and this is a global technical change as a proactive step in any future usage of pagebanners for all Wikivoyages, removing the need for individual site requests. There will not be a visible change on sites that do not use pagebanners, but do note that this setting will allow the title to be displayed/renamed without restrictions.

Comments

  • I have found discussion about pagebanners in en, fr, it and uk among others and will need further comments about using pagebanners or about the configuration request. Firm support for pagebanners would be great. -- Torty3 (talk) 14:22, 7 June 2013 (UTC)
Question: setting $wgRestrictDisplayTitle to false in InitialSettings.php, will vanish the title in ALL the pages, or it can be configured to hide it only in the ones equipped with topbanner? --Andyrom75 (talk) 15:52, 7 June 2013 (UTC)
It allows changing the title arbitrarily, while the default is to allow only minor changes (capitalisation, accents, dashes etcetera?). The setting seems not to change how the title is displayed by default. There might of course be security issues with being able to make the title of one page be that of another, but I cannot think of any exploits. --LPfi (talk) 18:38, 7 June 2013 (UTC)
  • Looks nice at the first glance. As long as it does not look as ugly as your main page on my screen (here). Be sure to use a minimum of 1920px image. But i suppose there wont be not that many suitable pictures on commons. Hopefully I am not right. -- DerFussi 05:56, 8 June 2013 (UTC)
I renew my doubt stated above, because I'm not sure that I've properly highlighted the main point.
If the $wgRestrictDisplayTitle it's not able to automatically show/hide the title according to the presence of the topbanner (consequently it's a global setting), maybe, regardless of it's current value, it would be better/easier to manage it through JS.
Let me know your thoughts. --Andyrom75 (talk) 08:24, 8 June 2013 (UTC)
What this setting does is allows free use of the magic word DISPLAYTITLE. The pagebanner template uses this and CSS to hide the title, ie only pages with the pagebanner will be affected. Other pages without the banner (or the magic word) will look the same as always.
If there is a solution with JS, that would be nice too, but I think a basic config is simpler (though tedious to request). -- Torty3 (talk) 08:58, 8 June 2013 (UTC)
Got it. I've understood the purpose and that it will work only for the article with the pagebanner. Now, since I haven't seen the desired layout (if you have a screenshot, it would be fine), I can only make some guess with the JS. Try to test these two patch and let me know how they works:
1) $(".topbanner").closest(".mw-body").children(".firstHeading").hide(); ... this will hide both the page title and the line below it
2) $(".topbanner").closest(".mw-body").children(".firstHeading").children("span").children("span").text(""); ... this will hide just the title, leaving the line below of it.
In both cases the world icone should be relocated, but if I'm not wrong the final position of it should be inside the pagebanner (topright corner) as in en:voy:Garibaldi Provincial Park, right?
Let me know, --Andyrom75 (talk) 11:30, 8 June 2013 (UTC)
Works great Andy, so question is what do we do now? I feel like this is technically against the rules of changing page titles, or maybe it just shows how easy it is to break MediaWiki. -- Torty3 (talk) 01:41, 9 June 2013 (UTC)
Doesn't really break MediaWiki--in fact, it only works with JavaScript enabled. PiRSquared17 (talk) 02:05, 9 June 2013 (UTC)
  • Setting $wgRestrictDisplayTitle to false is not a problem, quite the contrary: we can display completely different titles for instance for sites and subsites containing for instance slashes. But I am not really sure if it is useful to suppress the display of the article title. Because users of the mediawiki software expect the title at this place. Another problem is the breadcrumb trail which is not shown any longer or flying in the nonentity. --RolandUnger (talk) 08:26, 12 June 2013 (UTC)