#Adding templates of multiple types into the Cosmos editor

57 messages · Page 1 of 1 (latest)

dusky jetty
#

I had previously asked how to turn my wiki from the default into the Fandom design (or a close replica) but now I need to ask how to add some of the smaller features. Stuff like a template for colored text (where I could change the text color to be whatever choice of color needed for a certain character).

sleek hazel
#

if you are migrating an entire wiki, templates from that wiki will also migrate

#

otherwise you can export/import templates from one wiki to another, one a the time

dusky jetty
#

I know the migration has yet to happen; I sent the template files and articles to the Miraheze team near the start of the month.

sleek hazel
#

via Phabricator?

dusky jetty
#

The only manual changes I've made are adjusting the wiki's UI to be Cosmos and adding the background changes.

sleek hazel
#

if it's the same wiki you mentioned in another thread, it already migrated, there's content?

#

oh my bad

#

I'm silly

dusky jetty
sleek hazel
#

7am

dusky jetty
#

Ah, it's early for ya on the other side?

#

(I'm in West Coast USA for context, so it's 8:30pm)

sleek hazel
#

yes

dusky jetty
#

I do know I was told by the Miraheze team to be patient, as the team was made of volunteers. So I don't want to get in the way of their work. But I do know that I'll likely end up working on the wiki from the ground up if the team tells me they're unable to make the migration work.

sleek hazel
dusky jetty
#

Wait, did the article export not go through...?

sleek hazel
#

when you migrate an entire wiki you need 2 data dumps
one is textual, wiki dump, an xml file - Fandom can give you it of you click generate new dump or something like that on Special:Statists page, the most important part here - you should get the one w/ full history
another dump is archive of actual files - images etc, but Fandom won't give you that, you'll have to scrap files by yourself (manually or w/ a script from github)

dusky jetty
#

I was planning to migrate all images from my own personal set (as the images have changed a lot since the original wiki's start) but I didn't know that was a necessity.

sleek hazel
#

okay, so just textual dump

dusky jetty
#

I ended up sending two textual dumps; one with all articles and one with all templates

sleek hazel
#

alright, where you've sent them on Miraheze?

dusky jetty
#

I did it through the "Request Import" feature

sleek hazel
#

there's currently no pending requests in ImportDump queue

dusky jetty
#

For specifically my wiki? Lemme see about sending another textual dump with BOTH articles and templates.

sleek hazel
#

wait a second

#

what's your username?

dusky jetty
#

TrueArena111

#

(I'm guessing my Miraheze username)

sleek hazel
#

it says both imports went tru, third one was duplicate and declined

#

but I see wiki is empty

dusky jetty
#

I might have ended up doing it wrong the first time around.

sleek hazel
#

did you made dumps via Special:Export on Fandom?

dusky jetty
#

Yes, I did

sleek hazel
#

@raw tree this isn't the first time import doesn't actually gets tru

#

but I suggest to request xml dump on Special:Statistics on Fandom and sent it instead
problem in this case would be that it also fetches user pages, comments and other fandom garbage you'll have to clean up later (if it's presented)

dusky jetty
#

I'll have to sift through what pages I wanna keep (and what images need updating) when the import actually goes through. But I've requested an update on that.

sleek hazel
#

as I said before, Fandom won't give you images, only text
if you need less that the wiki actually has then I agree, choosing w/ Special:Export is more convenient
I will try to make a Phab task about this, but I won't find previous time it was reported

dusky jetty
#

(Wait, I'm a dumbass, I didn't notice the timestamps were links. Clicked that and downloaded the file; should I send the zipped or unzipped version?)

sleek hazel
#

unzipped, just xml

#

actually wait

#

you still have first dumps you've made?

#

articles + templates

dusky jetty
#

I sent the Statistics file into the import requester already; didn't see the "actually wait" until after the fact

sleek hazel
#

alright

#

was going to suggest to send them via Phabricator

sleek hazel
#

seems like full dump import succeeded

sleek hazel
#

for mass garbage deletion I suggest to use NukeDPL extension (first requires enable DPL3 extension)

#

the query would be, for example
namespace = 0 titlematch = Thread%

dusky jetty
#

I guess one last question; I do wanna change the wiki's default font for headers and text; what'd be the best way to do that?

sleek hazel
#

that's CSS

#

first you need to find the font, I suggest to use something free off Google Fonts, since it can be easily added to the wiki w/ a single line code

#

then you'll have to poke around web elements

#

layout modifications better to be applied to skin specific CSS pages, in your case MediaWiki:Cosmos.css
but the font has to be added in MediaWiki:Common.css, this one affects the wiki no matter which skin is used, and must be used for such additions