Atšķirības starp "Veidne:Define place" versijām
No Barikadopēdija
14. rindiņa: | 14. rindiņa: | ||
{{DEFAULTSORT:{{SortKey|{{{2|{{PAGENAME}}}}}}}}} | {{DEFAULTSORT:{{SortKey|{{{2|{{PAGENAME}}}}}}}}} | ||
− | [[Category:Places]][[Category:Vietas]] | + | [[Category:Places]] |
+ | {{#vardefine: article_count|{{#ask:[[Category:Articles]][[About place::{{PAGENAME}}]]|format=count|limit=10000}}}} | ||
+ | {{#ifexpr: {{#var: article_count}} > 0 |[[Category:Vietas]]|}} | ||
<!--{{#if: {{{1|}}}|[[Category:{{{1}}}]]|[[Category:Places]][[Category:Vietas]]}}[[Category:{{{2|{{PAGENAME}}}}}]]--> | <!--{{#if: {{{1|}}}|[[Category:{{{1}}}]]|[[Category:Places]][[Category:Vietas]]}}[[Category:{{{2|{{PAGENAME}}}}}]]--> | ||
</includeonly> | </includeonly> |
Versija, kas saglabāta 2012. gada 11. janvāris, plkst. 04.16
This is the "Define place" template. It should be called in the following format:
{{Define place|Parent place|Place}}
Edit the page to see the template text.