Template:PNT table/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. This template displays a table of category counts for categories populated by translation templates placed at the top of articles needing translation and associated with entries at WP:Pages needing translation into English.

{{PNT table}}
{{PNT table|Language1, Language2, Language3, ...}}

Parameters

[edit source]

There is one positional parameter and four named parameters; all optional:

  • |1= ⟶ comma-separated list of languages (e.g., French, Dutch, German) (alias: config; default: 52 languages at WP:PNT/config)
  • |caption= ⟶ caption displayed above the table (default: 'PNT Category counts')
  • |col2= ⟶ column 2 header (default: 'to be checked')
  • |col3= ⟶ column 3 header (default: 'needing cleanup'}
  • |style= ⟶ table style: unquoted, semicolon-separated CSS parameters; e.g.: font-size:90%; float:right

Note: if you have a long list of languages for param 1 (config), you can place the list into its own page instead and transclude the pagename in param 1. For example: if you use param |config=WP:PNT/config EU then you have the result shown in example 4 below. You can make up your own config file and pass it in the same way. Note that lists longer than about ten languages will cause a vertical scroll bar to appear to view remaining rows.

Examples

[edit source]
1. {{PNT table|French}}
PNT Category counts
Language to be
checked
needing
cleanup
French 155 84
2. {{PNT table|config=Chinese, Dutch, Indonesian, Russian}}
PNT Category counts
Language to be
checked
needing
cleanup
Chinese 15 64
Dutch 0 4
Indonesian 5 8
Russian 17 109
3. {{PNT table|Portuguese,Spanish|col2=check|col3=clean|caption=PNT categories}}
PNT categories
Language check clean
Portuguese 27 48
Spanish 125 118
4. {{PNT table|config={{WP:PNT/config EU}}|caption=PNT European languages}}
PNT European languages
Language to be
checked
needing
cleanup
Template:WP:PNT/config EU [[:Category:Wikipedia articles to be checked after translation from Template:WP:PNT/config EU|0]] [[:Category:Wikipedia articles needing cleanup after translation from Template:WP:PNT/config EU|0]]

See also

[edit source]