Razlika između inačica stranice »Wikipedija:TemplateData«

m
ispravak zastarjele sintakse
(prevesti s engleskog!)
 
m (ispravak zastarjele sintakse)
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:
 
<sourcesyntaxhighlight lang="javascript">
<templatedata>{
"description": "insert description here",
}
}</templatedata>
</syntaxhighlight>
</source>
 
You can also add or edit TemplateData using a [[GUI]], by pressing the following button which appears at the top of the edit page: <span class="oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonWidget" style="display:inline-block;vertical-align:middle;margin-right: 0.5em;"><span class="oo-ui-buttonElement-button" style="color: #757575;border: solid 1px #cdcdcd;margin: 0.1em 0;padding: 0.2em 0.8em;border-radius: 2px;transition: background 0.1s ease-in-out,color 0.1s ease-in-out,box-shadow 0.1s ease-in-out;font-weight: bold;display: inline-block;vertical-align: top;text-align: center;cursor: pointer;"><span class="oo-ui-labelElement-label" style="line-height: 1.9em;">Manage TemplateData</span></span></span>
24.051

uređivanje