Hey, I am the Technical Admin for DoveArchives, and was wondering if someone could help me out with Template:Multiple image. I've whacked at it for a bit and not gotten anywhere, and imported it a few times with transclusions from dev & from wikipedia. Neither seemed to work. I checked on another wiki and it was working perfectly on theirs but seems non-functional for DA, would very much appreciate help. (for context, it is unable to float on either side, and does not have a grey box around the multiple images, which seems to be an error in Module:Message box, though when I imported that it did not fix it).
#Am struggling with Template:Multiple image to work, imported and it still is not properly working
75 messages · Page 1 of 1 (latest)
Here is an example of it working properly in the documentation vs how it looks on our wiki with the same code
Please, always provide the link to your wiki, so It's easier for the volunteers to look what goes on behind the code
Ah yeah, here is the link to the template
https://www.dovearchives.wiki/wiki/Template:Multiple_image
You took this from Wikipedia?
I imported it yeah
You are likely missing som important css from [MediaWiki:Common.css]
You can see I imported from dev & from wikipedia in the page history, I did both with transclusions
Checking
Please add
margin: 0 0 0.5em 0.5em;
clear: right;
float: right;
}
.floatleft {
margin: 0 0.5em 0.5em 0;
float: left;
clear: left;
}``` to:
https://www.dovearchives.wiki/wiki/MediaWiki:Common.css
And feel free to add other codes from our [MediaWiki:Common.css] that you don't have in your own.
To which section? Want to check I'm not messing things up, and I might grab some more then yeah, since a lot of our common.css is out of use
Just in Miscellaneous or so. You can't really mess it up.
Most just add it at the bottom.
But can just as well be added to Infoboxes, navbar, navboxes, tables etc
Put it in in misc
The multiple images one still doesn't seem to be functioning right
Here I'm going to do a massive test with the commons.css
For the most part, from a technical standpoint, it doesn't matter what order the various stuff are in, in CSS. Any ordering is mostly for the sake of making it easier to find it for us puny humans, when needing to potentially edit it later
You can try by replacing it with our own template:
https://dev.miraheze.org/wiki/Template:Multiple_image
Miraheze Developers Wiki
Yeah I had tried importing that, also I just put in the Wikipedia commons.css (and ofc warned users on our official server that the wiki might be down for a bit to fix some stuff with this), checking if things are broken, but multiple image still doesn't seem to work
No I meant, importing the MediaWiki:Common.css from our own DEV wiki
Miraheze Developers Wiki
Yeah I'm testing if the wikipedia commons.css functions with our wiki on the multiple images one
Yeah, reverted the test with the wikipedia one, can try the miraheze dev one but am going to recheck most of ours since it has some features we use a lot (like the image in the top left for a background and stuff)
Imported this with just the background image added, multiple image still seems not to work
Having the same
Yeah, it's still glitched out with that, it can't float to one side or the other and has no message box around it
| align = center
It didn't work with "left" or "right"?
It doesn't function with left or right, you can see that in the documentation page for Template:multiple image, it doesn't float and there's no message box
You can see with a similar use of Multiple image on Wikipedia there is the box
I thought that the code I provided would have solved that . . hmm
margin: 0 0 0.5em 0.5em;
clear: right;
float: right;
}
.floatleft {
margin: 0 0.5em 0.5em 0;
float: left;
clear: left;
}```
Yeah, no matter the edits I've made to the CSS I've kept that in
Truly terrifying when you give up, since I know how good you are with this stuff
I'm well with templates, not with css.
I know a basic level, but fixing is above my know how
.tright {
margin: 0 0 0.5em 0.5em;
clear: right;
float: right;
}
.tleft {
margin: 0 0.5em 0.5em 0;
float: left;
clear: left;
}```
Replace floatright and floatleft with that or just add that
It still doesn't' seem to be working after I put that in and I'm getting a lot of 502 errors
yeah... We are having a DDos I guess
You can see them still sticking and taking over the entire row
But you need to purge the css
I purged my cache after editing the CSS
Okay
Open your page in Incognito (logged out)
It does work. It just takes time to kick in
Ah okay, it didn't work when I did that same thing before but now it is
When it comes to CSS changes in MediaWiki pages, cache purges aren't always enough, sometimes, you just have to wait for it to kick in properly
Wondering why there is still no box around this
I quite like it without boxes
It's supposed to have a box though via the template so that not having them is an error
It's a glitch that seemingly is only happening whenever I put center
Gonna try fiddling with tnone
I don't know if you're still interested, but this topic helped me a lot, and I came to talk about how to install the box. It's with this code:
div.thumbinner { border: 1px solid var(--border-color-subtle, #c8ccd1); background-color: var(--background-color-interactive-subtle, #f8f9fa); font-size: 94%; }
Where would I put this bit of code? Wanting to check before I do anything with the css, would it be on the template's css?
I don't have much knowledge about it and I also took it from Wikipedia, put it in the /styles.css template where it will only work for that specific template, but I'm still having trouble getting the right to work.
Looks like we might both need help on it getting it all to work, strange that it’s repeatedly this template messing things up
Because these CSS codes are in some secret place on Wikipedia, which is weird since it should be public, but I'm close to making it work 100%.
I have now managed to make it 100% functional, I was trying to implement the alignment by placing it in /styles.css, but all the other functions worked except the alignment, so I placed it in MediaWiki:Common.css and everything worked!
So put this bit in the commons.css?
If you have the TemplateStyles extension activated, you can put it in /styles.css of the template, the only thing you need to put in common.css is the alignment. Which is what you already put.