Topic on Extension talk:TemplateStyles

TemplateStyles wont load css, but gives no error

3
Semmelrocks (talkcontribs)

Hi,

I exported the 'Template:Mainpage/styles.css' from Wikipedia. But when I try to include the css via <templatestyles src="Template:Mainpage/styles.css" /> it shows me not the formated text I'd expected, at least nothing formatted. If I corrupt the line (e.g. src="Template:Mainpage/styles") I get an error.
Direct including via <templatestyles>…</templatestyles> is not possible anymore, so I'm not sure how to find the failure. Did I forget something?
Mainpage/styles.css is classifed as sanitized css.

Tgr (WMF) (talkcontribs)

Possibly some of the main page formatting on Wikipedia is via MediaWiki:Common.css and similar, and not TemplateStyles?

Izno (talkcontribs)

I don't know which Wikipedia page you're taking from, but en.WP's TemplateStyles page is at w:Wikipedia:Main Page/styles.css which is a) in the Wikipedia namespace and b) accordingly may need to have its content model changed to sanitized-css from wikitext.

Reply to "TemplateStyles wont load css, but gives no error"