PCJD:Guidelines: Difference between revisions

This is actually hard to write, there's a lot of things to think about
No edit summary
(This is actually hard to write, there's a lot of things to think about)
Line 18: Line 18:
=== How to use ===
=== How to use ===
The meta tags are added via a parser function magic word, in this case being <code><nowiki>{{#seo}}</nowiki></code>, but to actually use the parser function and the meta tags it needs to look like this: <code><nowiki>{{#seo:|}}</nowiki></code> after the first pipe you start with the tags while then also separating the other tags with pipes. | is the pipe character.
The meta tags are added via a parser function magic word, in this case being <code><nowiki>{{#seo}}</nowiki></code>, but to actually use the parser function and the meta tags it needs to look like this: <code><nowiki>{{#seo:|}}</nowiki></code> after the first pipe you start with the tags while then also separating the other tags with pipes. | is the pipe character.
<br>Each element consists of a keyword and a value,
<br>Each element consists of a keyword and a value, separated by an equal sign (=). The keyword can't be separated by a space, any space in a keyword would be replaced with and underscore (_). There should be no space before or after the equal sign. In the value you can have spaces.


So the parser looks like this: <code><nowiki>{{#seo:|keyword1=value1|keyword2=value2}}</nowiki></code>
So the parser looks like this as an example: <code><nowiki>{{#seo:|keyword1=value1|keyword2=value2|keyword3=Text with spaces}}</nowiki></code>