Topic on Project:Support desk

Import Templates from Wikipedia

8
MarinaTheRanger (talkcontribs)

Hi, I'm looking to import templates from Wikipedia, such as Infobox: military conflict or Template: flag but can't figure it out. Can anyone tell me how I can import Templates or do I have to write my own?

Thanks for any help.

TheDJ (talkcontribs)

English Wikipedia has extremely complex infoboxes, and they are pretty difficult to import. You'll need a good dose of knowledge of Wikipedia, and several extensions like ParserFunctions, Scribunto, TemplateStyles. And even then, many Infoboxes now have a level of integrations with Wikidata, which you won't have, that might require you to explicitly REMOVE that code from your imported templates. In many cases it will be easier to make your own simpler version of infoboxes.

Leaderboard (talkcontribs)

It may be worth looking at older versions of the infobox, or those from other wikis, which may be less complex.

MarinaTheRanger (talkcontribs)

Sorry for the late reply, but I'm having trouble viewing anything but the documentation. How could I view the source code for the older infobox versions??

Leaderboard (talkcontribs)

Hi try going to the history of that infobox and scrolling down years back (say 2013 or so). Click View History on the template itself.

MarinaTheRanger (talkcontribs)

I found the version and tried to copy the table content, but when I use the template it doesn't have parameters. Can you help?

Leaderboard (talkcontribs)

Which version and which template?

MarinaTheRanger (talkcontribs)

Nevermind. I got it solved.

Reply to "Import Templates from Wikipedia"