ವಿಕಿಪೀಡಿಯ:VisualEditor/TemplateData
- Main page
- Feedback page (or at MediaWiki)
- Sandbox (no account required)
- Why are the developers building this?
- Documentation:
- Development:
- Workshops:
- Update the help pages
- Add TemplateData (Tutorial)
- Live Analytics
- Hourly edits, VisualEditor vs. wikitext
by user type, as % of all edits - Hourly edits, VisualEditor vs. wikitext
by user type, as % of all edits by user type - Hourly edits, VisualEditor vs. wikitext
as % of all edits - Hourly edits, VisualEditor vs. wikitext
absolute number of edits - Hourly edits, VisualEditor vs. wikitext
absolute number of edits, by user type - Daily unique editors by UI
by user type - Hourly reverted revisions
by revert type
- Enable VisualEditor
- Customization
- Known problems
- Requests for Comments (RfCs): 1, 2
What is TemplateData?[ಬದಲಾಯಿಸಿ]
TemplateData is 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.
Without TemplateData[ಬದಲಾಯಿಸಿ]
Without TemplateData, each parameter needs to be added manually when inserting a new template. | |
No information is provided about what the value of the parameter should be. |
With TemplateData[ಬದಲಾಯಿಸಿ]
With TemplateData, a list of supported parameters (and their description) is provided for the template. | |
TemplateData provides context for each parameter, and makes it much easier for users to modify templates. |
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>
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. Its 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 Wikipedia:VisualEditor/TemplateData/List.
If you complete an item, mark it here with {{tick}} or {{done}} until the item appears on the logging page.
If you partly complete an item (suggested action), mark the entry below with {{partly done|<explain what still needs to be done>}} and do not remove from this list until they are completed. Partly done items will appear on the logging page as if they were completed.
Used in main-space (>5000 uses)[ಬದಲಾಯಿಸಿ]
- Template:Coord 12,178 Partly done; VE does not allow overloaded templates
- Template:Citation 5,150 Partly done
Infobox template (>5,000 uses)[ಬದಲಾಯಿಸಿ]
- Template:Infobox 3,490,457
- Template:Infobox medal templates 156,779
- Template:Infobox3cols 140,426
- Template:Infobox football biography 107,063
- Template:Infobox officeholder 70,442 Partly done
- Template:Infobox Album 46,601
- Template:Infobox book 30,061 Partly done
- Template:Infobox ship begin 26,654
- Template:Infobox ship characteristics 26,572
- Template:Infobox ship image 26,313
- Template:Infobox ship career 24,062
- Template:Infobox school 21,493
- Template:Infobox sportsperson 20,958
- Template:Infobox video game 19,821 Partly done
- Template:Infobox radio station 18,273
- Template:Infobox military unit 14,457
- Template:Infobox German location 13,009
- Template:Infobox airport 12,922
- Template:Infobox ice hockey player 12,527
- Template:Infobox cricketer 12,338
- Template:Infobox NFL player 11,924
- Template:Infobox planet 11,894
- Template:Infobox station 11,861
- Template:Infobox organization 8,685
- Template:Infobox television episode 8,121
- Template:Infobox Australian place 8,048
- Template:Infobox language 7,914
- Template:Infobox royalty 7,641
- Template:Infobox gridiron football person 7,250
- Template:Infobox basketball biography 6,799
- Template:Infobox election 6,205
- Template:Infobox journal 5,552 Partly done
- Template:Infobox subbox bodystyle 5,506
- Template:Infobox church 5,306
- Template:Infobox political party 5,291 "Basic Usage" params covered
- Template:Infobox rugby league biography 5,099
Used in main-space (250 to 5000 uses)[ಬದಲಾಯಿಸಿ]
|
|
Used in user-space (high-priority)[ಬದಲಾಯಿಸಿ]
- Template:Userbox-level Partly done
Used as meta-templates[ಬದಲಾಯಿಸಿ]
- Template:Navbox
- Template:Importance
- Template:Namespace detect
- Template:Category handler
- Template:If pagename
- Template:Infobox
- Template:Ns has subpages
- Template:Check talk
- Template:BLP
- Template:Ifsubst
- Template:Asbox
- Template:Tmbox
- Template:Imbox
- Template:Ambox
- Template:Ombox
- Template:Cmbox
- Template:Dmbox
- Template:Mbox
- Template:Fmbox
- Template:Dated maintenance category
- Template:Show button
- Template:Side box
- Template:Basepage subpage
- Template:Fix
- Template:DMCA
- Template:Rellink
- Template:Fix/category
- Template:Location map+/width
- Template:Location map~
- Template:Location map/decdeg
- Template:Border-radius
- Template:Toolbar
- Template:Main other
- Template:Talk other
- Template:Image other (redirect)
- Template:File other
- Template:Template other
- Template:Taxobox colour
- Template:Anglicise rank
- Template:Taxonomy
- Template:MONTHNUMBER
- Template:MONTHNAME
- Template:Navbox subgroup
- Template:Language with name
- Template:Check talk wp
- Template:Class mask
- Template:Classcol (redirect)
- Template:Class mask/b
- Template:Start-Class
- Template:Unassessed class
- Template:Infobox musical artist/hCard class
- Template:Infobox medal templates
- Template:Convinfobox
- Template:Disambiguation/cat
- Template:Px
- Template:Navbox musical artist
- Template:AfC date category
- Template:Start date
- Template:Infobox album/link
- Template:User-multi/ (redirect)
- Template:User-multi/t
- Template:User-multi/c
- Template:Clickable button
- Template:Geobox coor
- Template:Non-free use rationale logo
- Template:Documentation subpage
- Template:Olympics to-do
- Template:DMC (redirect)
- Template:Hidden
- Template:Infobox settlement/metric
- Template:Redirect template
- Template:Center
- Template:* (redirect)
- Template:Ifempty
- Template:Divbox
- Template:FULLROOTPAGENAME
- Template:PAGENAMEU
- Template:PAGENAMEBASE
- Template:ROOTPAGENAME
- Template:Divbox/style/gray
- Template:!!
- Template:AFC submission/comments
- Template:US county navigation box
- Template:·
- Template:AFC submission/declined
- Template:Sidebar
- Template:Namespace detect showall
- Template:Broken ref
- Template:Broken ref/lang
- Template:Country data United States
- Template:Country data Poland
- Template:Country data Canada
- Template:Country data France
- Template:Country data Germany
- Template:Country data Netherlands
- Template:Country data Italy
- Template:Country data Australia
- Template:Collapsible option
- Template:Convert
- Template:User other
- Template:Ambox/small
- Template:Multiple issues/message
- Template:Navbox with collapsible groups
- Template:Infobox musical artist/tracking
- Template:Stub-Class
- Template:Height/m to ft in
- Template:Issubst
- Template:TOC bottom
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:
- Template:AthalianaDBs
- Template:AthalianaLit
- Template:BiowebUW
- Template:BrainInfo
- Template:BrainMaps
- Template:CephBase Family
- Template:CephBase Genus
- Template:CephBase Suborder
- Template:CephBase Subclass
- Template:CephBase Superorder
- Template:EntrezGene2
- Template:WestAfricanPlants
See also[ಬದಲಾಯಿಸಿ]
- Wikipedia:VisualEditor/TemplateData/List A list of all pages with TemplateData