Hello,
I have done a Special:Export latest revision of http://en.wikipedia.org/w/index.php?title=Diabetes_mellitus including templates, and copied:
{{Infobox Disease | Name = TestSMW | Image = | Caption = | DiseasesDB = | ICD10 = {{ICD10|Group|Major|minor|LinkGroup|LinkMajor}} | ICD9 = 000000 | ICDO = | OMIM = | MedlinePlus = | eMedicineSubj = | eMedicineTopic = | MeshID = }}
Into my test page http://wiki.medicalstudentblog.co.uk/index.php/ TestSMW -- However as you can see, it comes out all garbaged. Can anyone advise? I should now have all the templates from the export/ import, perhaps I'm missing some other extension(s)?
Thanks, Dawson
Dawson schreef:
Hello,
I have done a Special:Export latest revision of http://en.wikipedia.org/w/index.php?title=Diabetes_mellitus including templates, and copied:
{{Infobox Disease | Name = TestSMW | Image = | Caption = | DiseasesDB = | ICD10 = {{ICD10|Group|Major|minor|LinkGroup|LinkMajor}} | ICD9 = 000000 | ICDO = | OMIM = | MedlinePlus = | eMedicineSubj = | eMedicineTopic = | MeshID = }}
Into my test page http://wiki.medicalstudentblog.co.uk/index.php/ TestSMW -- However as you can see, it comes out all garbaged. Can anyone advise? I should now have all the templates from the export/ import, perhaps I'm missing some other extension(s)?
You're missing the ParserFunctions extension.
Roan Kattouw (Catrope)
You should also create a namespace alias File for Image.
On Thu, Jan 15, 2009 at 3:00 PM, Dawson costelloe@gmail.com wrote:
Thanks Roan,
All working now.
On 15 Jan 2009, at 13:49, Roan Kattouw wrote:
You're missing the ParserFunctions extension.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hi Bryan, can you link me this name alias File, I have no clue what it is or what it will do = )
2009/1/15 Bryan Tong Minh bryan.tongminh@gmail.com
You should also create a namespace alias File for Image.
On Thu, Jan 15, 2009 at 3:00 PM, Dawson costelloe@gmail.com wrote:
Thanks Roan,
All working now.
On 15 Jan 2009, at 13:49, Roan Kattouw wrote:
You're missing the ParserFunctions extension.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Dawson wrote:
Hi Bryan, can you link me this name alias File, I have no clue what it is or what it will do = )
MediaWiki 1.14alpha, which is what Wikipedia is running, has renamed the "Image:" namespace to "File:", and a lot of Wikipedia editors have already switched to using the new name. If you want to copy templates from Wikipedia to a wiki running an older version and be sure that all images in them will work, you have (at least) three options:
1. Use an older version of the template, from November 2008 or earlier.
2. Replace all instances of "File:" (and "File talk:") with "Image:" (and "Image talk:", respectively) in the template code.
3. Add the following lines to the LocalSettings.php file for your wiki:
$wgNamespaceAliases['File'] = NS_IMAGE; $wgNamespaceAliases['File_talk'] = NS_IMAGE_TALK;
On Fri, Jan 16, 2009 at 6:10 AM, Ilmari Karonen nospam@vyznev.net wrote:
MediaWiki 1.14alpha, which is what Wikipedia is running, has renamed the "Image:" namespace to "File:", and a lot of Wikipedia editors have already switched to using the new name. If you want to copy templates from Wikipedia to a wiki running an older version and be sure that all images in them will work, you have (at least) three options:
Use an older version of the template, from November 2008 or earlier.
Replace all instances of "File:" (and "File talk:") with "Image:"
(and "Image talk:", respectively) in the template code.
- Add the following lines to the LocalSettings.php file for your wiki:
$wgNamespaceAliases['File'] = NS_IMAGE; $wgNamespaceAliases['File_talk'] = NS_IMAGE_TALK;
The best option is none of the above. Wait a little while and use 1.14, which has the change by default. Failing that, you can use the 1.14 branch right now, which also has the change. In general, you can't always get compatibility with Wikipedia content unless you're running the same version or later, although usually it will pretty much work.
wikitech-l@lists.wikimedia.org