Guillaume Paumier | 12 Feb 2012 14:42
Picon
Gravatar

Upcoming deployment of MediaWiki 1.19 to Wikimedia sites.

Greetings,

The Wikimedia Foundation is planning to upgrade MediaWiki, the
software powering Wikipedia and its sister sites, to its latest
version.

The upgrade will happen in several stages over the month, starting this week.

You can still help to test it before it is enabled, to avoid
disruption and breakage.

More information:
* Announcement on the Wikimedia blog:
https://blog.wikimedia.org/2012/02/11/mediawiki-1-19-deployment/
* The announcement in other languages:
https://www.mediawiki.org/wiki/MediaWiki_1.19/Deployment_announcement

Thank you for your understanding.

--
Guillaume Paumier
Technical Communications Manager — Wikimedia Foundation

_______________________________________________
Wikipedia-l mailing list
Wikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikipedia-l
Erick Fonseca | 14 Feb 2012 22:14
Picon

List of all wikipedia macros

Greetings,

I'm writing a script to read Wikipedia dump files and generate raw
text from them, much like it would appear in a web browser.
At first, I ignored all macros, discarding anything between {{ ... }},
but I soon learned that some macros generate useful text. Now I need a
comprehensive list of all existing macros, to know which of them I
should treat.
As I believe some macros are language dependent, I am dealing with the
Portuguese Wikipedia.

Thank you for any help,
Erick
Pete Forsyth | 14 Feb 2012 22:28
Picon
Gravatar

Re: List of all wikipedia macros

Hi Erick,

What you are calling "macros" are actually called "templates" in the Wikipedia (or, more generally,
MediaWiki) context. In Portuguese, the name is "Predefinição."

You can find all the templates on a wiki through the "Special:AllPages" page, and then choose the
"Template" or "Predefinição" namespace. 

Here is a direct link. I suspect you will find there are many thousands of templates; breaking that down into
those that supply significant text (which I would guess are the majority) vs. those that do not will
probably be a difficult task; sorry, I don't have much to offer in that area.

http://pt.wikipedia.org/w/index.php?title=Especial:Todas_as_páginas&namespace=10

I hope this helps!
-Pete

--
Pete Forsyth
[[User:Peteforsyth]]
peteforsyth <at> gmail.com
503-383-9454 mobile

On Feb 14, 2012, at 1:14 PM, Erick Fonseca wrote:

> Greetings,
> 
> I'm writing a script to read Wikipedia dump files and generate raw
> text from them, much like it would appear in a web browser.
> At first, I ignored all macros, discarding anything between {{ ... }},
(Continue reading)

Kevin Gorman | 14 Feb 2012 22:30
Picon

Re: List of all wikipedia macros

Although templates are normally in their own separate namespace, any page
can theoretically be transcluded - so a comprehensive list of possible
transclusions would consist of literally every single page of every single
namespace on any given mediawiki installation.

----
Kevin Gorman
User:Kgorman-ucb

On Tue, Feb 14, 2012 at 1:14 PM, Erick Fonseca <erickrfonseca <at> gmail.com>wrote:

> Greetings,
>
> I'm writing a script to read Wikipedia dump files and generate raw
> text from them, much like it would appear in a web browser.
> At first, I ignored all macros, discarding anything between {{ ... }},
> but I soon learned that some macros generate useful text. Now I need a
> comprehensive list of all existing macros, to know which of them I
> should treat.
> As I believe some macros are language dependent, I am dealing with the
> Portuguese Wikipedia.
>
> Thank you for any help,
> Erick
>
> _______________________________________________
> Wikipedia-l mailing list
> Wikipedia-l <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikipedia-l
>
(Continue reading)

Francis Tyers | 14 Feb 2012 22:22

Re: List of all wikipedia macros

El dt 14 de 02 de 2012 a les 19:14 -0200, en/na Erick Fonseca va
escriure:
> Greetings,
> 
> I'm writing a script to read Wikipedia dump files and generate raw
> text from them, much like it would appear in a web browser.
> At first, I ignored all macros, discarding anything between {{ ... }},
> but I soon learned that some macros generate useful text. Now I need a
> comprehensive list of all existing macros, to know which of them I
> should treat.
> As I believe some macros are language dependent, I am dealing with the
> Portuguese Wikipedia.

What a fantastic idea!!! Do let the list know how you get on :)

Fran
Erick Fonseca | 15 Feb 2012 13:26
Picon

List of all wikipedia macros

Thank you for all the help. I didn't know that there were so many
templates, I think I'll try to treat a few of the most common and
discard the rest.

Erick
Stefan Kühn | 15 Feb 2012 17:25
Picon

Re: List of all wikipedia macros

Hallo Erick,

I use the same way (Dump-Scan) for the Project "TemplateTiger"
http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Vorlagenauswertung/en
Maybe this is a help for your project.

If you want parse the templates, than maybe you can use the API of the mediawiki-Software. Every
foundation-project has own API.

See:
http://www.mediawiki.org/wiki/API:Parsing_wikitext

For Example:
http://pt.wikipedia.org/w/api.php?action=parse&text={{Commons|Einstein}}

Hope this help!

Stefan (sk)

-------- Original-Nachricht --------
> Datum: Wed, 15 Feb 2012 10:26:21 -0200
> Von: Erick Fonseca <erickrfonseca <at> gmail.com>
> An: wikipedia-l <at> lists.wikimedia.org
> Betreff: [Wikipedia-l] List of all wikipedia macros

> Thank you for all the help. I didn't know that there were so many
> templates, I think I'll try to treat a few of the most common and
> discard the rest.
> 
> Erick
(Continue reading)


Gmane