Line 2: Line 2:
  
 
This is the '''SEO''' template. It should be called in the following format:
 
This is the '''SEO''' template. It should be called in the following format:
 +
 +
{{Alert|Type=danger|Please use the CMS sidebar to fill in the seo settings instead of trying to do it manually}}
 +
 +
static properties:
 +
* locale = en_US
 +
* site name = OpenCSP
 +
* Title always gets 'OpenCSP - ' prefix
 +
* robots & googlebot are set to 'index, follow'
  
 
<pre>
 
<pre>
{{SEO }}
+
{{SEO
 +
|Title= (text)
 +
|Title mode= (optional: replace/append/prepend)
 +
|Title separator= (text)
 +
|Description= (text)
 +
|Keywords= (text)
 +
|Googlebot= (text)
 +
|Hreflang= (text) exemple "de-de=https://example.de/page", for multiple values start each one on a new line
 +
|Type= (text)
 +
|Image= (text)
 +
|Image alt= (text)
 +
|Image width= (number)
 +
|Image height= (number)
 +
|Author= (text)
 +
|Published time= (date)
 +
}}
 
</pre>
 
</pre>
  
</noinclude><includeonly>
+
</noinclude><includeonly>{{#seo:
 +
|title=OpenCSP - {{#if: {{{Title|}}} |{{{Title|}}} |{{PAGENAME}} }}
 +
|title_mode={{#if:{{{Title mode|}}} |{{{Title mode|}}} |replace}}
 +
|keywords={{{Keywords|}}}
 +
|description={{{Description|}}}
 +
 
 +
|image={{{Image|}}}
 +
|image_alt={{{Image alt|}}}
 +
|image_width={{{Image width|}}}
 +
|image_height={{{Image height|}}}
 +
 
 +
|locale=en_US
 +
|site_name=OpenCSP
 +
 
 +
|author={{{Author|}}}
 +
|published_time={{{Published time|}}}
  
</includeonly>
+
|robots=index, follow
 +
|googlebot=index, follow
 +
}}</includeonly>

Revision as of 16:18, 9 February 2023


This is the SEO template. It should be called in the following format:

Note: Please use the CMS sidebar to fill in the seo settings instead of trying to do it manually

static properties:

  • locale = en_US
  • site name = OpenCSP
  • Title always gets 'OpenCSP - ' prefix
  • robots & googlebot are set to 'index, follow'
{{SEO
|Title= (text)
|Title mode= (optional: replace/append/prepend)
|Title separator= (text)
|Description= (text)
|Keywords= (text)
|Googlebot= (text)
|Hreflang= (text) exemple "de-de=https://example.de/page", for multiple values start each one on a new line
|Type= (text)
|Image= (text)
|Image alt= (text)
|Image width= (number)
|Image height= (number)
|Author= (text)
|Published time= (date) 
}}