User:Trilobite/MEP script

How about this as a starting point. I can add in things like a link to an official website if there is one. The names in the categories are also best put in as they appear and then I can change them manually so that they follow the "surname, firstname" format, because of the way naming conventions vary. There will need to be a male/female flag of some kind to determine whether the output of the script should have "he" or "she", but you've probably got this sorted already. Of course, it could just as easily be done manually. I think the delegations don't deserve wikilinks, but the committees do. I don't know how much rewriting of the script there needs to be to get this output, but if there's something that can't be done I'm sure we can work around it somehow.

Here's a sample output for countries divided into EP regions:

NAME (born DATE YEAR in PLACE) is a NATIONALITY politician and Member of the European Parliament for the REGION of COUNTRY. He is a member of the PARTY, part of the EUROPARTY.

He sits on the COMMITTEE1 and is a subsitute for the COMMITTEE2. He is also a member of the DELEGATION1 and a substitute for DELEGATION2.



Further Updates
I've done another upload and created another template for creating a link to the declaration of financial interests:

It's not neccesary to use it but it allows for more flexibilty and for some regarding these links: We could (whould we need to, maybe the URL might change some day in the future) change the URL to the PDF files by changing one central place and have all URLs where it's used updated and it allows for a compact way to create the language link, he "fr" in the source is translucded by the Termplate(s) behind it to "in French; " and the PDF notice is also defined once for all in as part of the template.

If a template like this shows a red "Template:ISO 639-1/it" string, this is an indication that the template for providing the link " Italian " has to be created:



You only have to click on the red link, click edit there and create the template only using this string: Italian

After saving it, this becomes part of the above link. (You only have to do a reload of the page to test the result.)

Tests/already created templates:

The list of ISO 639-1 codes to use is in the article ISO-639, in the column with the two-letter (Aplha-2) codes for ISO-639-1.

The list of Templates for this is linked from Template:ISO 639-1. It also demo's to what the templates expand. It's a good place for creating all templates for the 20 EU languages and these templates can be used everywhere in the wikipedia where you want to refer to a language:


 * transcludes to:

Looking at this, I think a template called by could be nicer for common use - we can rename these internals of the declarations template this way possibly, for a start I have tried to use the most specific Template name possible and "ISO 639-1" is really very specific, so I can't think of any conflicting use of the same template names for a different purpose.

I've done a new upload which has most of the time information of the biography moved at the start of the line. I have not catched all cases, but most, I'll work on the rest now.

It also tries to separate the biography (where Education, Career and Decorations where all under in the Section Career) into three sections: Education, Career and Decorations. Of course the respective section titles only appear when I have found an indication that there is now information for such section coming, e.g. of course not every MEP has decorations.


 * Fixed some bugs with the new feature now, but it seems you were not hit by it or you corrected it yourself like you corrected the other bugs which I didn't see (missing chairmanships of Committees). I also fixed the Chair/Vicechair issue where the script produced wrong output and the committee was completely missing now. Have a look at the output which it produces now. I tried to match on your edits, althogh it's not 100% done yet) --NoSoftwarePatents 07:00, 14 Apr 2005 (UTC)


 * The server were I've put the files is offline now, so I have uploaded the files here http://ffii.org/~bkaindl/MEPs/ updated the MEP stub template to point it the new URL.