Template talk:Nowrap

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Use TemplateStyles[edit]

It is requested that an edit or modification be made to this protected page.
Administrators: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.

Speravir

Please apply Special:Diff/588325537 in order to use TemplateStyles (Template:Nowrap/styles.css). — ExE Boss (talk) 12:00, 3 September 2021 (UTC)[reply]

Note, that the loading line has to be written without template namespace, cf. the linked TemplateStyles help page. So it is rather <templatestyles src="Nowrap/styles.css" />.
ExE Boss, what’s the purpose of .nowrap a:before, .nowrap .selflink:before? Can you provide some counter examples? I found that in Enwiki there is a separate template en:Template:Nowraplinks. (BTW it should be written as ::before with two colons).
— Speravir – 18:25, 6 September 2021 (UTC)[reply]
@Speravir:

So it is rather <templatestyles src="Nowrap/styles.css" />.

‎<templatestyles src="Template:Nowrap/styles.css" /> works too, see: {{nowrap/sandbox}}{{mono}}, and {{plainlist}}.

(BTW it should be written as ::before with two colons)

I simply used what’s being used on other multilingual wikis (e.g.: mw:Template:Nowrap/styles.css, m:Template:Nowrap/styles.css, d:Template:Nowrap/styles.css, etc.), which all use the single colon format in order to support Internet Explorer 8[1]. — ExE Boss (talk) 17:40, 7 September 2021 (UTC)[reply]
@ExE Boss: Thanks for the references. But in parts I am still not convinced:
  • We should use the documented syntax, hence without template namespace.
  • Internet Explorer 8 is officially not supported anymore, cf. meta:Tech/News/2017/42, mw:Compability and phab:T248061 (apparently in effect since June 2020). And the double colons would be the smallest problem I guess.
— Speravir – 00:13, 8 September 2021 (UTC)[reply]