Last modified: 2013-12-31 15:00:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57027, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55027 - solve_disambiguations and templates
solve_disambiguations and templates
Status: NEW
Product: Pywikibot
Classification: Unclassified
solve_disambiguation.py (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:06 UTC by Kunal Mehta (Legoktm)
Modified: 2013-12-31 15:00 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:06:18 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/317/
Reported by: jandudik
Created on: 2012-10-04 20:02:23
Subject: solve_disambiguations and templates
Assigned to: xqt
Original description:
It would be fine, if I can define \(or global defined\) templates and parametersm which means links.
example: 
\{\{Infobox foo
|name = bar
|link=Article
|description=Lorem ipsum
\}\}

where \[\[Article\]\] is  disambiguation
When I run solve\_disambiguation, bot got message No changes needed in "Page"

I want to replace Article -> Article \(main\)
but when it is not in brackets...
If there exists such list of templates and parameters, bot should recognize parameter link= in template \{\{Infobox foo\}\} and replace it
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:06:20 UTC
I don't agree with this feature. \{\{Other uses\}\} and other templates which have the same function will be affected incorrectly.
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:06:22 UTC
There is a way to use the more generic replace.py or fixes.py to do that. There is no way to see whether the link parameter is a real wiki link. It may also be a database link of a foreign databased website
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:06:24 UTC
- **assigned_to**: nobody --> xqt
- **status**: open --> closed-rejected
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:06:26 UTC
There are huge pages on cs.wiki containing only such  templates \(WLM\).
and there are often several links to disambiguations - village with same name in one list - sou replace or fixes are hard-to-use, solve\_disambiguation woud be better.

And there should be definition lists for every language

cs \{
template1=Památky v Česku
link1=Odkaz\_obec
template2=foo
link2=bar
\}
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:06:27 UTC
- **status**: closed-rejected --> open-rejected

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links