Skip to content
#

mediawiki

Here are 594 public repositories matching this topic...

halfak
halfak commented Dec 30, 2015

It looks like strip_code() interprets File-links like they are regular wikilinks. Instead, it should remove everything except the caption/alt-text. In the example below, the size param is dumped into the text.

$ python
Python 3.4.3 (default, Jul 28 2015, 18:20:59) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mwparserfromhell 

pytablewriter is a Python library to write a table in various formats: CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.

  • Updated Feb 18, 2020
  • Python
nemobis
nemobis commented Jan 30, 2017

Example recent output:

Checking Wikimedia Commons files from 2015-07-22 to 2015-07-22
== 2015-07-22 ==
Plymouth_Citybus_136_WA08LDF_(8975821135).jpg Plymouth_Citybus_136_WA08LDF_(8975821135).jpg corrupt (2690205 of 2758220 bytes)
Plymouth_Citybus_144_WA08LDZ_(7988771620).jpg Plymouth_Citybus_144_WA08LDZ_(7988771620).jpg corrupt (2028138 of 2076561 bytes)
Plymouth_Citybus_503_WF63LZC_(153
mwjames
mwjames commented Jun 30, 2019

To help users unfamiliar with SMW to find features and supplementary functions which are normally not enabled by default, I created [0] as starting point.

I would appreciate if some people from the community find the time to finalize and complete the list.

Tasks

  • Identify features and supplementary functions
    • SMWSearch
  • Add separate summary sections to the smw@wiki
asifkhan69
asifkhan69 commented Oct 1, 2019

Can we get more detail documentation with examples specially how to get data for wikidata method once it is fetched such as to get "date of birth, gender" which can cover for people who are new to python. There are examples but not enough to utilise this great package for usage.

nnt0
nnt0 commented Mar 17, 2018

Hi,

im trying to use random() and recentchanges() but everytime i print the output of one of them i get this:

>>random = site.random(namespace=0, limit=10)
>>random
<List object 'random' for <Site object 'test.wikipedia.org/w/'>>

and the same for recentchanges()

>>> recent = site.recentchanges()
>>> recent
`<List object 'recentchanges' for <Site object 'test.wikipedia.or

gesinn-it
gesinn-it commented Oct 16, 2019
  • MW 1.31
COMPOSER=composer.local.json composer require --update-no-dev mediawiki/chameleon-skin 2.1.0

fails with

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for mediawiki/chameleon-skin 2.1.0 -> satisfiable by mediawiki/chameleon-skin[2.1.0].
    - mediawiki/chameleon-skin 2.1.0 requires mediawiki/m

Improve this page

Add a description, image, and links to the mediawiki topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mediawiki topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.