Template:Topic

From Wikipedia, the free encyclopedia

This template employs some extremely complicated or esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.

Example:

{{Topic|China}}

Creates:


Points of interest related to China on Wikipedia
PortalCategory - WikiProject - Stubs - Deletions - Cleanup

{{Topic|China|talk=y}}

Creates:


Points of interest related to China on Wikipedia
PortalCategory - WikiProject - Stubs - Deletions - Cleanup

{{Topic|China|simple=y}}

Creates:


PortalArticleCategory - WikiProject - Stubs - Deletions - Cleanup


You can also define each of the following parameters by hand:

  • article: The main article for the topic.
  • category: The main category for the topic.
  • portal: The portal for the topic.
  • project: The WikiProject for the topic. This should be the "X" in "Wikipedia:WikiProject X."
  • stubtype: The stub type for the topic; this should be the "X" in "Category:X stubs".
  • delsort: The deletion-sorting subpage for the topic; this should be the "X" in "Wikipedia:WikiProject Deletion sorting/X."
  • pna: The cleanup page for the topic; this should be the "X" in "Wikipedia:Pages needing attention/X."
  • board: The noticeboard for the topic. This should be the "XYZ" in Wikipedia:XYZ.
  • collab: The collaboration for the topic. This should be the ABC in Wikipedia:ABC.

Display parameters:

  • simple: If you want a simple one-line display without table formatting, set "simple=yes" (or any non-whitespace value).
  • talk: If you want the template to appear in standard Talk page format, set "talk=yes" (or any non-whitespace value).
  • image: An image to appear in-line (20px in the title bar in standard format, or 50px at the far left in Talk format). This should be the "XYZ" in Image:XYZ.

If these variables are not specified, the template will assume that they are all the same as the topic name. If no such page exists, then the name will be skipped. Unless an incorrect variable has been specified, this should never contain a redlink.

Points of interest related to [[{{{article}}}|]] on Wikipedia
[[:Category: [[:Category:{{{category}}}|Category]] |Category]] - - - -
In other languages