Difference between revisions of "Template:AutoCategory"

From Lazarus wiki
(+ ar, vi)
(added "Español" for "/es", corrected {{PAGENAME}}|1|2} to {{PAGENAME}}|1|-1}, deleted debugtime things)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{ #switch:{{#titleparts:{{PAGENAME}}|1|2}}
+
{{ #switch:{{#titleparts:{{PAGENAME}}|1|-1}}
| af= [[Category:Afrikaans|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| af= [[Category:Afrikaans]]
| ar= [[Category:Arabic|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| ar= [[Category:Arabic]]
| cs= [[Category:Czech|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| cs= [[Category:Czech]]
| de= [[Category:Deutsch|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| de= [[Category:Deutsch]]
| es= [[Category:Castellano|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| es= [[Category:Castellano]][[Category:Español]]
| fi= [[Category:Suomi|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| fi= [[Category:Suomi]]
| fr= [[Category:Français|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| fr= [[Category:Français]]
| hu= [[Category:Magyar|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| hu= [[Category:Magyar]]
| id= [[Category:Bahasa Indonesia|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| id= [[Category:Bahasa Indonesia]]
| it= [[Category:Italiano|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| it= [[Category:Italiano]]
| ja= [[Category:Japanese|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| ja= [[Category:Japanese]]
| ko= [[Category:Korean|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| ko= [[Category:Korean]]
| nl= [[Category:Nederlands|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| nl= [[Category:Nederlands]]
| pl= [[Category:Polski|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| pl= [[Category:Polski]]
| pt= [[Category:Português|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| pt= [[Category:Português]]
| ru= [[Category:Russian|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| ru= [[Category:Russian]]
| sk= [[Category:Slovensky|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| sk= [[Category:Slovensky]]
| vi= [[Category:Vietnamese|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| vi= [[Category:Vietnamese]]
| zh CN= [[Category:zh|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| zh CN= [[Category:zh]]
| zh TW= [[Category:zh|{{#titleparts:{{PAGENAME}}|1|}}]]
+
| zh TW= [[Category:zh]]
 
}}
 
}}
<!-- Witch title for this category???
 
*'''عربي (ar)
 
*'''Español (es)
 
*'''Français (fr)
 
*'''日本語 (ja)
 
*'''Македонски (mk)
 
*'''Português (pt)
 
*'''Русский (ru)
 
*'''Shqip (sq)
 
*'''Українська (uk)
 
*'''Việt Nam (vn)
 
*'''中文(简体)(zh_CN)
 
*'''中文(正體)(zh_TW)
 
-->
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
This template automatic add a page to category by check title suffix
 
This template automatic add a page to category by check title suffix
Line 44: Line 30:
 
</nowiki></pre>
 
</nowiki></pre>
  
[[Category:Template|A]]
+
[[Category:Template]]
  
 
</noinclude>
 
</noinclude>

Revision as of 22:49, 9 June 2015

This template automatic add a page to category by check title suffix

Template use

Copy and paste this line on top of your page:

{{AutoCategory}}