Topic on Project:Support desk

VOIstri (talkcontribs)

Hello.

When links are produced with the ref tag, they are small numbered "boxes". Is there a way to change this to be the same size as the text itself? Basically, to produce links like how latex creates them?

Thanks.

This post was hidden by 85.237.234.250 (history)
AhmadF.Cheema (talkcontribs)

Maybe Extension:CrossReference will suit your purpose?

To edit how references are rendered, you will need to edit particular MediaWiki messages, a list of those related to cite references is available from here.

MediaWiki:Cite reference link will be the one relevant for your purpose. Using <span> instead of <sup> will level the reference tags, after which one CSS rule addition to MediaWiki:Common.css will be required to change the font-size from the present 80% to 100%.

VOIstri (talkcontribs)

Hi. Sorry for the lack of reply. I will take a look, but I can't really tell from the description exactly what that extension will do. It looks like it allows for a different type of reference rather than amending the way mediawiki renders references. I might just try poking around the code, since I can see that it's the result of the sup tag being used. The problem is that if I hack the core code to remove it there's no knowing what it might mess up...

Thanks anyway.

AhmadF.Cheema (talkcontribs)

If by "core code", you mean MediaWiki's core code, then it is definitely recommended against. There isn't even any need for such here.

As mentioned above, in the source code of your Wiki's MediaWiki:Cite reference link page, change <sup> to <span> and then add the following in your Wiki's MediaWiki:Common.css:

span.reference {
	font-size: 100% !important;
}
VOIstri (talkcontribs)

Ah, sorry I don't know how I missed that; I must have been too distracted to read your reply properly, I'm sorry. But, that that's what I needed to know, thanks! I can probably amend the CSS to tweak exactly how I want it to look.

Thanks a lot! You've been a real help.