Template:PageSeo: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#seo:
<includeonly>{{#seo:
|title = {{{title|{{PAGENAME}}}}} - {{SITENAME}}
|title = {{{fulltitle|{{{title|{{PAGENAME}}}}} - {{SITENAME}}}}}
|keywords = {{{keywords|{{PAGENAME}}}}}, {{SITENAME}}, baldur's gate, baldur's gate 3, wiki
|keywords = {{{fullkeywords|{{{keywords|{{PAGENAME}}}}}, {{SITENAME}}, baldur's gate 3, bg3, wiki}}}}}}
|description = {{{description}}}
|description = {{{description}}}
|image = {{{image|BG3Logo.webp}}}
|image = {{{image|BG3Logo.webp}}}
Line 17: Line 17:
</pre>
</pre>


See the source of the template to see the default values for the settings, and text that is automatically appended to some of the settings.
The {{c|title}} and {{c|keywords}} parameters will automatically have more text appended to them.  (The title will have " - BG3Wiki" added to the end, and the keywords will have ", baldur's gate 3, bg3, wiki" added to the end.)  You may instead use {{c|fulltitle}} and {{c|fullkeywords}} to control the fully generated title/keywords without anything added automatically.
</noinclude>
</noinclude>

Revision as of 01:17, 31 December 2021

Use this template to optimize a page for SEO. It uses the {{#seo:}} tag underneath, which is added by the WikiSEO plugin.

Example usage:

{{PageSeo
|title = An alternative title
|keywords = blah, blub, blip
|description = A summary of what this wiki page is about
|image = Some_image.jpg
}}

The title and keywords parameters will automatically have more text appended to them. (The title will have " - BG3Wiki" added to the end, and the keywords will have ", baldur's gate 3, bg3, wiki" added to the end.) You may instead use fulltitle and fullkeywords to control the fully generated title/keywords without anything added automatically.