The center for all Wikitravel images!

Tech:"add listing" link occurrence improvements

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

Currently, "add listing" link appears:

  1. in Talk pages, next to same headings "Eat", "Sleep" etc
  2. in article pages, under Eat/Sleep/See/Do/Buy/Drink sections that have sub-sections (and in most cases sub-sections are supposed to be the only place for new listings).


When it happens[edit]

What should happen[edit]

  1. in Talk pages, they should not appear at all
  2. in listing sections with sub-sections, probably only sub-sections should allow adding listings (or, alternatively, the last listing item occurring before a new heading should display an "add listing" link)


Here's another wrinkle, which I think I mentioned somewhere before—would it be possible to suppress the "add listing" buttons on specific articles? It would be great if we could auto-suppress this option for all region and country articles (which should all be marked with the rdf template en:Template:Regionguide or en:Template:Countryguide. Otherwise, it would be very nice to have a template we could add to specific articles to stop people from adding extraneous listings. (I'd add one right away to the en:USA page... --Peter Talk 16:31, 21 August 2008 (EDT)

How to fix it[edit]

Additional comments[edit]

The tech team has been looking into determining if section A is a subsection of a "listing" section, but it's more complicated than it seems. They haven't been able to find a way to make it happen yet. JuCo 21:25, 2 June 2008 (EDT)

What about "alternatively, the last listing item occurring before a new heading should display an "add listing" link)"? --DenisYurkin 12:15, 3 June 2008 (EDT)
Doesn't work if a section has no listings... JuCo's right, it really is complicated. Jpatokal 12:46, 3 June 2008 (EDT)

BTW, why a new listing is added to the beginning of the section, not to the end? This way it always need manual moving--while when it's placed in the end, it's at least not always (in many cases it's OK). --DenisYurkin 16:48, 21 June 2008 (EDT)

Because Figuring out where section ends is also really hard. More specifically, MW considers a section to include the section text and the full text of any of its children. I can put the listings at the end of the section after any subsections, but I'm not sure that's much of an improvement. I'm planning to take another stab at detecting the start of the first subsection and put it just before that, but I can't make any promising KevinSours 15:08, 19 August 2008 (EDT)
I figured out how to put listings at the end of the section. The new listings will now appear at the bottom of the section but before any child sections. This is up on reviews and I'll push live when I finish up some other items with the Listing Editor.
I took another look at putting the "add listing" links on child sections. I've wanted to do this from the very beginning but its just not possible. The amount of computation I'd need to do to determine if a section is a descendant of a listing section (given the way the Mediawiki hooks are set up and the way sections are handled) would slow the page load to a crawl. If I come up with a clever way to do this I will, but I wouldn't expect that to happen KevinSours 12:10, 21 August 2008 (EDT)
It's a shame we can't both get "add listing" buttons on subsections, and auto-sort listings by alphabetical order, but seeing as these tasks are not feasible, I think the current set up is as good as we can hope for. --Peter Talk 16:32, 21 August 2008 (EDT)
We checked again with Kevin Sours but this unfortunately cannot be fixed. Can we please remove this request from the road map? Thanks Ibsteph 4:34 pm, 18 February 2010 (EDT)
Is this problem possible to solve with the new MediaWiki upgrade? If not, I suggest we close the ticket and reopen it as a feature request. Riggwelter 15:20, 20 June 2012 (EDT)
Agreed. I'm closing this and spinning out the two remaining requests into separate feature requests. --Peter Talk 22:06, 20 June 2012 (EDT)

Sign below, please[edit]

DenisYurkin 14:19, 31 May 2008 (EDT)

Removing from region, country, and huge city articles[edit]

It was mentioned above, but brought up again in the pub on En... is it in any way possible to remove/suppress when the "add listing" button shows up? It's never relevant to region, country, or huge city articles. I know we have rdf (?) info that differs for each type of article, ie {{regionguide}}, {{countryguide}}... perhaps it can be related to which of those shows up on a given page? – cacahuate talk 10:16, 12 January 2009 (EST)

Update[edit]

I have closed this bug report, and spun out the two feature requests here to Tech:Add listing links for subsections and Tech:Remove add listing links from region, country, and huge city articles. --Peter Talk 22:12, 20 June 2012 (EDT)

Variants

Actions

In other languages