(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
|Title mode= (optional: replace/append/prepend)
 
|Title mode= (optional: replace/append/prepend)
 
|Title separator= (text)
 
|Title separator= (text)
 +
|Keywords= (text)
 
|Description= (text)
 
|Description= (text)
|Keywords= (text)
+
 
 +
|Robots = (text)
 
|Googlebot= (text)
 
|Googlebot= (text)
|Hreflang= (text) exemple "de-de=https://example.de/page", for multiple values start each one on a new line
+
 
 
|Type= (text)
 
|Type= (text)
 
|Image= (text)
 
|Image= (text)
Line 25: Line 27:
 
|Image width= (number)
 
|Image width= (number)
 
|Image height= (number)
 
|Image height= (number)
 +
|Locale= (text)
 +
|Site name= (text)
 +
 
|Author= (text)
 
|Author= (text)
 +
|Section= {text)
 
|Published time= (date)  
 
|Published time= (date)  
 
}}
 
}}
Line 31: Line 37:
  
 
</noinclude><includeonly>{{#seo:
 
</noinclude><includeonly>{{#seo:
|title=OpenCSP - {{#if: {{{Title|}}} |{{{Title|}}} |{{PAGENAME}} }}
+
|title={{#if: {{{Title|}}} |{{{Title|}}} |{{PAGENAME}} }}
 
|title_mode={{#if:{{{Title mode|}}} |{{{Title mode|}}} |replace}}
 
|title_mode={{#if:{{{Title mode|}}} |{{{Title mode|}}} |replace}}
 +
|title_separator={{#if: {{{Title separator|}}} |{{{Title separator|}}} |- }}
 
|keywords={{{Keywords|}}}
 
|keywords={{{Keywords|}}}
 
|description={{{Description|}}}
 
|description={{{Description|}}}
  
 +
|robots={{#if: {{{Robots|}}} |{{{Robots|}}} |index, follow}}
 +
|googlebot={{#if: {{{Googlebot|}}} |{{{Googlebot|}}} |index, follow}}
 +
 +
|type={{{Type|}}}
 
|image={{{Image|}}}
 
|image={{{Image|}}}
 
|image_alt={{{Image alt|}}}
 
|image_alt={{{Image alt|}}}
 
|image_width={{{Image width|}}}
 
|image_width={{{Image width|}}}
 
|image_height={{{Image height|}}}
 
|image_height={{{Image height|}}}
 
+
|locale={{#if: {{{Locale|}}} |{{{Locale|}}} |en_US}}
|locale=en_US
+
|site_name={{#if: {{{Site name|}}} |{{{Site name|}}} |OpenCSP}}
|site_name=OpenCSP
 
  
 
|author={{{Author|}}}
 
|author={{{Author|}}}
 +
|section={{{Section|}}}
 
|published_time={{{Published time|}}}
 
|published_time={{{Published time|}}}
 
|robots=index, follow
 
|googlebot=index, follow
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:01, 12 June 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)
|Keywords= (text)
|Description= (text)

|Robots = (text)
|Googlebot= (text)

|Type= (text)
|Image= (text)
|Image alt= (text)
|Image width= (number)
|Image height= (number)
|Locale= (text)
|Site name= (text)

|Author= (text)
|Section= {text)
|Published time= (date) 
}}