Template:Expand language/howto/sandbox: Difference between revisions

Content deleted Content added
Invoke sandbox version of {{EL table row/sandbox}} to test addition of 3rd column for count of articles in subcat. Test from Special:ExpandTemplates, or a sandbox version of {{Expand French/sandbox}}.
Sync to template rev. 1039769679‎.
 
(5 intermediate revisions by 2 users not shown)
Line 14:
=== Parameters ===
 
AllThe article title is required; all named parameters are optional:
 
* <code>{{!}}1=''ARTICLE''</code>{{snd}}title of the article on {{{1}}} Wikipedia. This is required.
* <code><nowiki>|section=yes</nowiki></code>{{snd}}changes notice to "This section may be expanded..." (default: 'article'){{#ifexist: Category:Featured articles needing translation from {{{1}}} Wikipedia |
* <code><nowiki>|fa=yes</nowiki></code>{{snd}}used to tag articles that are [[WP:FA|featured articles]] in {{{1}}}; used in category name generation.}}<noinclude>
Line 23 ⟶ 24:
* <code>{{!}}date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}</code>{{snd}} set by bot if omitted.
 
=== CategorizationTopics and categorization ===
 
This template categorizes articles into categories. Basic categorization is into: ⟶ [[:Category:Articles needing translation from {{{1}}} Wikipedia]]. Usage of parameters <code>fa</code> and <code>topic</code> define subcategories<!--
Line 34 ⟶ 35:
<table class="wikitable" style="margin-left:4em">
<tr> <th>topic code</th> <th>topic name<br/>and category</th> <th>articles in<br/>category</th></tr>
{{EL table row/sandbox|{{{1}}}|bio}}
{{EL table row/sandbox|{{{1}}}|cult}}
{{EL table row/sandbox|{{{1}}}|geo}}
{{EL table row/sandbox|{{{1}}}|gov}}
{{EL table row/sandbox|{{{1}}}|hist}}
{{EL table row/sandbox|{{{1}}}|mil}}
{{EL table row/sandbox|{{{1}}}|sci}}
{{EL table row/sandbox|{{{1}}}|sport}}
{{EL table row/sandbox|{{{1}}}|struct}}
{{EL table row/sandbox|{{{1}}}|tech}}
{{EL table row/sandbox|{{{1}}}|transport}}
{{#ifexist: Template:Expand {{{1}}}/topics | {{Expand {{{1}}}/topics}} |}}
<tr> <th>&nbsp;</th> <td>[[:Category:Articles needing translation from {{{1}}} Wikipedia|Main category]]</td> <td style="text-align:right">{{#ifeq: {{PAGESINCATEGORY:Articles needing translation from {{{1|}}} Wikipedia|subcats}} | 0 | | ({{PAGESINCATEGORY:Articles needing translation from {{{1|}}} Wikipedia|subcats}}&nbsp;C)&#32; |}}{{PAGESINCATEGORY:Articles needing translation from {{{1|}}} Wikipedia|pages}}</td> </tr>
</table>}}
 
== See also ==
* [[WP:CWW]], policy which governs copying and translating articles from other language Wikipedias