Module talk:Redirect hatnote: Difference between revisions

Content deleted Content added
Line 247:
 
--[[User:TZubiri|TZubiri]] ([[User talk:TZubiri|talk]]) 23:45, 2 July 2021 (UTC)
 
*<p>This isn't ''quite'' possible with the software as it is; the page is rendered to HTML before anyone would be redirected or not, so the template can't control its display or not ''directly''.</p><p>If the redirect message included an embedded stylesheet with some ugly rule like <code>.redirect-message-hatnote {display: block !important;}</code>, then we could perhaps hide the ''class'' of message by default and show it again when a redirect message is present … but it would require editing the interface, i.e. [[MediaWiki:Redirectedfrom]], and I'm not sure that that message ''supports'' embedding an inline stylesheet that way.</p><p>It's certainly not totally impossible, but it's ''impractical'', and I think there might be pushback from the community elsewhere in that redirect messages can be useful for clarification even when a reader hasn't been ''directly'' redirected, so I'd want a serious discussion of the merits of the approach before pushing forward on interface-message-based hacks. <span style="white-space:nowrap;">{&#123;[[User:Nihiltres|<span style="color:#233D7A;">Nihiltres</span>]]&#8202;&#124;[[User talk:Nihiltres|talk]]&#8202;&#124;[[Special:Contributions/Nihiltres|edits]]}&#125;</span> 17:44, 6 July 2021 (UTC)</p>