Module talk:WikiProject banner/Archive 15: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
Line 435:
::Interesting! I had always assumed that <nowiki><span class="foo"><span class="bar"></nowiki> was equivalent to <nowiki><span class="foo bar"></nowiki> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:33, 28 September 2024 (UTC)
:::Sometimes, but not always. Consider the rule added in [[Special:Diff/1248296760|this edit]]. It will be applied to <syntaxhighlight lang=html><!-- HTML example 4 --><span class=wpb><span class=assess>HTML example 4</span></span></syntaxhighlight> which emits "<span class=wpb><span class=assess>HTML example 4</span></span>", but not to <syntaxhighlight lang=html><!-- HTML example 5 --><span class="wpb assess">HTML example 5</span></syntaxhighlight> which emits "<span class="wpb assess">HTML example 5</span>", or to <syntaxhighlight lang=html><!-- HTML example 6 --><span class=assess><span class=wpb>HTML example 6</span></span></syntaxhighlight> which emits "<span class=assess><span class=wpb>HTML example 6</span></span>". This is because the space in the middle of <code>.wpb .assess</code> is a [https://www.w3.org/TR/selectors-3/#descendant-combinators descendant combinator]: in HTML example 4 we have one span that is the descendant of the other, but in HTML example 5 we have only one span, that is of class <code>assess</code> but is not the descendant of any element of class <code>wpb</code>. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:12, 28 September 2024 (UTC)
 
== listas ==
 
Is there a way to set separate sort keys for different wikiprojects? I get the general sortkey from {{tl|WPBS}}, but that doesn't always seem the best for each wikiproject contained within -- [[Special:Contributions/65.92.246.77|65.92.246.77]] ([[User talk:65.92.246.77|talk]]) 20:26, 2 October 2024 (UTC)
 
:No, it just uses DEFAULTSORT which sets the sort key for all categories &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:48, 2 October 2024 (UTC)
:The standard doc follows below. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 21:34, 2 October 2024 (UTC)
{{WPBannerDoc|listas|last=Smith|first=John}}