On Mon, 2025-07-21 at 12:10 +0100, Andrew Sayers wrote: > On Mon, Jul 21, 2025 at 11:48:52AM +0200, Taavi Väänänen wrote: > > On 7/20/25 10:20 PM, Andrew Sayers wrote: > > > Wikipedia has a huge collection of templates and seem to encourage other wikis > > > to import them. I maintain a personal wiki, and if memory serves, I had to > > > give up on the attempt because I made some simple mistake and would have needed > > > to reset the database to fix it. Consider importing MW templates now while > > > resetting the whole database (or just rolling it back to a known-good instance) > > > is an option. A quick look suggests [0] is a good place to start. > > > > The templates used on en.wikipedia have gotten very complex over the > > years. If there is a need for features they have that would be difficult > > to otherwise implement then I think that's an option, but importing some > > unspecified set of very complicated templates without clear use is > > something I'd rather not do. > > That's fair, but as an exercise in wiki-building, how would you (all) translate > the "svn-buildpackage" page to MW? It's a complex page about a package, forces > us to think about CategoryProposedDeletion, and is a low-risk experiment > because it probably won't actually be migrated. > > My first instinct would involve an infobox reused on every package page, > and a navbox at the bottom linking to other *-buildpackage pages. That would > push us towards including at least a large subset of WP templates. At least for the infobox, I was able to adapt the Note template from MediaWiki without needing to import any other templates. Importing from other wikis is really finicky since all the templates are intertwined, and often rely on modules as well which are even more finicky. (It might just be me though since I'm trying to import content from MediaWiki 1.43 to 1.39.) It is annoying though that a single template can't be imported without bringing in three dozen other templates and modules. I'd prefer that each template is self-contained, or even if it uses other templates, it doesn't turn into a complicated mess. Take this with a grain of salt though, I'm no MediaWiki expert, just someone messing about with it :) -- Maytham
Attachment:
signature.asc
Description: This is a digitally signed message part