Difference between revisions of "Template:Keywords"

From The Lion King Wiki
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><keywords content="{{#vardefine:i|0}}{{#while:
+
<includeonly>{{#vardefine:str|{{#vardefine:i|1}}{{#while:
| {{{{{#var:i}}|}}}
+
|{{{{{#var:i}}|}}}
|{{{{{#var:i}}}}},
+
|<nowiki/>{{#ifexpr:{{#var:i}} > 1|, }}{{{ {{#var: i }} }}}{{#vardefine: i| {{ #expr: {{ #var: i }} + 1 }}  }}
}}" /></includeonly><noinclude>
+
}}}}<keywords content="{{#var:str}}" /></includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
[[Category:Special templates]]
 
[[Category:Special templates]]

Latest revision as of 23:53, 6 April 2011

Template-info.png Documentation
Sorry!
This template doesn't work right now.

This is a special template that takes any number of parameters without keys and adds it to the <meta keywords="" /> tag in the document header. This helps to improve search results.

Usage

{{keywords|template|keywords|test}}

Produces a string: template,keywords,test and adds it to the meta keywords of this document. View the source of this page to see the <meta keywords="" /> tag.

The above documentation is transcluded from Template:Keywords/doc. (edit | history)