विकिपीडिया:TemplateData

विकिपीडिया से
Jump to navigation Jump to search

What is TemplateData?[संपादन करीं]

TemplateData is the standardized description of a template, used by VisualEditor to improve the template-editing experience for the user. VisualEditor includes a wizard to edit templates, but for the wizard to be most useful, it needs to present specific information to the user about each template, such as a short description of the template's purpose and its parameters. This information is codified formally (by any wiki editor) using TemplateData.

Editing without TemplateData[संपादन करीं]

Without TemplateData, each parameter needs to be added manually when inserting a new template.

VisualEditor - Template without TemplateData.png

No information is provided about what the value of the parameter should be.

VisualEditor - Template without TemplateData2.png

Editing with TemplateData[संपादन करीं]

With TemplateData, a list of supported parameters (and their description) is provided for the template.

VisualEditor - Template with TemplateData1.png

TemplateData provides context for each parameter, and makes it much easier for users to modify templates.

VisualEditor - Template with TemplateData2.png

Adding TemplateData[संपादन करीं]

Anyone can help by adding TemplateData to templates (particularly high-profile ones, such as infoboxes) so that they are easier to edit in VisualEditor. The following is a minimal example, placed on a template's documentation page:

<templatedata>{
  "description": "insert description here",
  "params": {
    "first parameter": {
      "label": "x",
      "description": "x",
      "type": "string",
      "default": "default value",
      "required": false
    }
  }
}</templatedata>

You can also add or edit TemplateData using a GUI, by pressing the following button which appears at the top of the edit page: Manage TemplateData

The TemplateData tutorial explains in detail how to add TemplateData information to a template.

Commonly used templates[संपादन करीं]

Here is a list of the most commonly-used templates. When you've added TemplateData to one, add a {{tick}} mark next to it; we'll update the list with new additions as we go. It's advisable to do a null edit on the main template page to force the system to update the database.

For completed items, consult the bot-generated logging page विकिपीडिया:VisualEditor/TemplateData/List.

If you complete an item, mark it here with {{tick}} until the item appears on the logging page.

If you partly complete an item (suggested action), mark the entry with {{yellow tick}} and replace its <!--note--> field with a brief description of what has and/or remains to be done. Partly-done items will appear on the logging page as if they were completed, but do not remove them from this list until they are completed.

Legend
YesY: Completed
YesY: Partly completed
N: Done with structural faults; as good as not done

Over 5,000 uses in mainspace[संपादन करीं]

  • YesY
  • 961,481
  • Coord
  • VE does not allow overloaded templates

Infobox template (>5,000 uses)[संपादन करीं]

250 to 5,000 uses in mainspace[संपादन करीं]

Userspace (high-priority)[संपादन करीं]

Used as meta-templates[संपादन करीं]

Used in other namespaces[संपादन करीं]

Low-use templates[संपादन करीं]

Main-space templates[संपादन करीं]

Following are templates which taking parameters but are used <250 times. There are thousands of templates which contain only content for transclusion and which take no parameters. These are not considered here.

Orphans[संपादन करीं]

Following have no instances of use:

इहो देखल जाय[संपादन करीं]
https://bh.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:TemplateData
bh.wikipedia.org
crawl=CC-MAIN-2021-31
215133
application/http; msgtype=response
sha1:PZEID5I7GPN4HNYDC3LHFMPTE4FQSXM2
<urn:uuid:508ae6ee-967e-47b6-be7d-2e1976256274>
2021-07-26T01:04:18Z
208.80.154.224
text/html
sha1:4PYX523N726OUVV2RY26Y5CUXMH5FD2Q
<urn:uuid:98b27800-7284-4336-8375-3aa71336ec25>
https://bh.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:TemplateData
response
<urn:uuid:2f01e139-2659-426f-ab8a-7bac4675c599>
isPartOf: CC-MAIN-2021-31
publisher: Common Crawl
description: Wide crawl of the web for July/August 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-89.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/