Description2

From Support Wiki
Jump to navigation Jump to search
Description2
Version 0.4.1
Author(s) Daniel Friesen
Requirements
Description
Adds a description meta tag for articles automatically based on the content.
Default?
Default extensionY

Description2 is a default extension that allows you to add a description meta tag for articles automatically based on the content. This extension also adds the description to the parser output in a way that other extensions can leverage to provide the description in a different format as Extension:OpenGraphMeta does.

Custom description

You can also use a parser function {{#description2:}} to control the description displayed for the page and replace it with a custom one. You can use these parser extensions like so:

{{#description2:This is a description.}}

Things to consider

When using templates at the top of the articles, if you use <div> instead of tables for the template, be sure it doesn't render paragraphs, which otherwise will be used as the description. This may happen if you have several <div> inside the template with newlines.

See also