Jump to content

Topic on Extension talk:Description2/Archive 2

Multiple descriptions on file description page

6
Ciencia Al Poder (talkcontribs)

On file description pages, this extension is adding 3 descriptions:

  • View Original file, and list of sizes.
  • The actual file description description
  • This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.

Looks like Manual:Hooks/ParserAfterTidy is firing for each generated content, each one adding its own description.

Nicole Sharp (talkcontribs)

CSS pages (e.g. "MediaWiki:common.css") also have a double description:

<meta name="description" content="Note: After publishing, you may have to bypass your browser's cache to see the changes." />
<meta name="description" content="/* Cascading stylesheets (CSS) here will be applied to all skins. */" />

Nicole Sharp (talk) 03:59, 30 March 2023 (UTC)

Nicole Sharp (talkcontribs)

W3C HTML Validator gives an error message for this: "Error: A document must not include more than one meta element with its name attribute set to the value description." Nicole Sharp (talk) 04:03, 30 March 2023 (UTC)

Nicole Sharp (talkcontribs)

If this bug only affects MediaWiki pages for files (CSS or uploads), maybe just disable the plugin for those page types? Nicole Sharp (talk) 04:11, 30 March 2023 (UTC)

Nicole Sharp (talkcontribs)

This may be a conflict between Extension:WikiSEO and Extension:Description2. They are supposed to work together, but disabling Description2 and instead enabling "$wgWikiSeoEnableAutoDescription = true;" appears to have resolved the problem. Nicole Sharp (talk) 05:52, 30 March 2023 (UTC)

Nicole Sharp (talkcontribs)

I haven't seen any problems using WikiSEO without Description2. I recommend leaving Description2 disabled and using WikiSEO instead until some of the bugs outlined on this talkpage have been fixed. WikiSEO does not provide META descriptions for CSS pages but that might be because of the same double-description bug that happens with Description2. Nicole Sharp (talk) 13:32, 2 April 2023 (UTC)

Reply to "Multiple descriptions on file description page"