Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All The Tropes Wiki Project, Part XXIX
RE: All The Tropes Wiki Project, Part XXIX
#59
I have some interesting news.  I had to learn Wikibase from scratch for a job last week, so I thought I'd make a little task here that might help people put infoboxes on our website.  The idea is that only knowing the wikipedia page, you can use an infobox generator template, pulling info from Wikidata, which would be substituted into the page you edit.  Once generated, you edit the page again to clean up after it, or link it up.

I've been developing it over on our fanfic wiki, and it currently consists of three files, Module:GetWikibaseQID, Module:Geninfobox, and Template:Generate Infobox Book.  The name was chosen here so that you could take {{Infobox Book|...}}, replace the first part of the template with {{subst:Generate Infobox Book|...}}, and it would fill in missing data for you while not messing with any current data in the template.  And you can add it to new pages with a simple {{subst:Generate Infobox Book|wikipedia page= ...}} (default {{PAGENAME}}).

I chose "book" as the first one.  Now that everything is working, we can easily make more.  I'll have to have some discussion with Rob to make sure the output format lines up with the current infobox before deploying.
"Kitto daijoubu da yo." - Sakura Kinomoto


Messages In This Thread
RE: All The Tropes Wiki Project, Part XXIX - by Labster - 03-20-2024, 04:21 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)