Википедија:TemplateData — разлика између измена

Садржај обрисан Садржај додат
Нема описа измене
Нема описа измене
Ред 1:
{{rut}}
{{hatnote|ForЗа additionalвише technicalтехничких informationинформација, seeпогледајте [[mw:Help:TemplateData]] andи [[mw:Extension:TemplateData]].}}
{{for|a tutorial|Wikipedia:TemplateData/Tutorial}}
{{hatnote|For additional technical information, see [[mw:Help:TemplateData]] and [[mw:Extension:TemplateData]].}}
{{Backlog}}
{{VisualEditor navbox}}
{{stack|{{Пречица|ВП:TDATA}}}}
__TOC__
 
== WhatШта isје TemplateData? ==
TemplateData is the standardized description of a template, used by [[Wikipedia:VisualEditor|VisualEditor]], the [[mw:2017 wikitext editor|2017 wikitext editor]] and other tools to improve the template-editing experience for the user. Both VisualEditor and the 2017 wikitext editor include 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.
 
Линија 19 ⟶ 16:
[[File:VisualEditor - Template without TemplateData2.png|frameless|500px]]
 
=== EditingУређивање withса TemplateData ===
With TemplateData, a list of supported parameters (and their description) is provided for the template.
 
Линија 28 ⟶ 25:
[[File:VisualEditor - Template with TemplateData2.png|frameless|500px]]
 
== AddingДодавање TemplateData ==
Anyone can help by adding TemplateData to templates (particularly high-profile ones, such as [[WP:INFOBOX|infoboxes]]) so that they are easier to edit in VisualEditor. The following is a minimal example, placed on a template's documentation page:
 
Линија 49 ⟶ 46:
 
The '''[[Wikipedia:VisualEditor/TemplateData tutorial|TemplateData tutorial]]''' explains in detail how to add TemplateData information to a template.
 
[[Category:VisualEditor]]