(4 intermediate revisions by the same user not shown)
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)
 +
|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)
 +
}}
 
</pre>
 
</pre>
  
</noinclude><includeonly>
+
</noinclude><includeonly>{{#seo:
 +
|title={{#if: {{{Title|}}} |{{{Title|}}} |{{PAGENAME}} }}
 +
|title_mode={{#if:{{{Title mode|}}} |{{{Title mode|}}} |replace}}
 +
|title_separator={{#if: {{{Title separator|}}} |{{{Title separator|}}} |- }}
 +
|keywords={{{Keywords|}}}
 +
|description={{{Description|}}}
 +
 
 +
|robots={{#if: {{{Robots|}}} |{{{Robots|}}} |index, follow}}
 +
|googlebot={{#if: {{{Googlebot|}}} |{{{Googlebot|}}} |index, follow}}
 +
 
 +
|type={{{Type|}}}
 +
|image={{{Image|}}}
 +
|image_alt={{{Image alt|}}}
 +
|image_width={{{Image width|}}}
 +
|image_height={{{Image height|}}}
 +
|locale={{#if: {{{Locale|}}} |{{{Locale|}}} |en_US}}
 +
|site_name={{#if: {{{Site name|}}} |{{{Site name|}}} |OpenCSP}}
  
</includeonly>
+
|author={{{Author|}}}
 +
|section={{{Section|}}}
 +
|published_time={{{Published time|}}}
 +
}}</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) 
}}