ප්‍රවර්ගය:Templates using TemplateStyles to style external elements

විකිපීඩියා වෙතින්

This category provides a list of templates that are using TemplateStyles where the primary desire is to style an element lying outside the template of interest. This is a characteristic worth tracking because of statements like:

Styles included by a template can currently affect content on the page outside of the content generated by that template, but this ability may be removed in the future and should not be relied upon. (See discussion from phab:T155813#2996589 and in phab:T176272.)

in mw:Extension:TemplateStyles#Caveats, which is reflected locally in Wikipedia:TemplateStyles#Guidelines:

The style must apply only to the associated template's output. It may also apply to highly-relevant nearby wikitext where the template is used. (For example, there are many table templates which should have TemplateStyles which are provided entirely in templates, or which may provide a legend to a wikitext table.) It would otherwise be confusing if adding a template to one part of a page were to completely or partially change the display or styling of an unrelated part of the page.

This use most often arises in the context of ad hoc tables, but has also been used for tables of contents (in most skins).

"Templates using TemplateStyles to style external elements" ප්‍රවර්ගයට අයත් පිටු

මෙම ප්‍රවර්ගය සතු සමස්ත පිටු 2 අතර, පහත දැක්වෙන පිටු 2 ද වෙති.