Difference between revisions of "Template:CategorizeBrand"

From FountainPen
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
{{#if: {{#var: lang}}|{{#switch: {{#var: lang}}
 
{{#if: {{#var: lang}}|{{#switch: {{#var: lang}}
 
| it = [[Category:Tradotte]]
 
| it = [[Category:Tradotte]]
| en = [[Category:Translated]]
+
| en = [[Category:Translated Pages]]
 
| fr = [[Category:Traduites]]}}|[[Category:Marche]]{{#ifexist: {{FULLPAGENAME}}/en|[[Category:Brands]]}} {{#ifexist: {{FULLPAGENAME}}/fr|[[Category:Marques]]}}{{#if: {{{1|}}}|[[Category:{{{1}}}]]}}{{#if: {{{2|}}}|[[Category:{{{2}}}]]}}{{#if: {{{3|}}}|[[Category:{{{3}}}]]}}}}
 
| fr = [[Category:Traduites]]}}|[[Category:Marche]]{{#ifexist: {{FULLPAGENAME}}/en|[[Category:Brands]]}} {{#ifexist: {{FULLPAGENAME}}/fr|[[Category:Marques]]}}{{#if: {{{1|}}}|[[Category:{{{1}}}]]}}{{#if: {{{2|}}}|[[Category:{{{2}}}]]}}{{#if: {{{3|}}}|[[Category:{{{3}}}]]}}}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
Line 9: Line 9:
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:Brand Templates]]
 
[[Category:Brand Templates]]
 +
[[Category:Translation Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:07, 7 March 2018

Template per la gestione automatica e l'inserimento delle categorie di una marca. Inserisce automaticamente nella pagina principale la Categoria:Marche e le varie altre categorie se esistono traduzioni della pagina. Vengono aggiunte eventuali altre categorie date dai parametri successivi, mentre nelle pagine tradotte mette solo la categoria "tradotte" (espresso nelle varie lingue). Per ora gestisce solo francese e inglese.