Category:Templates using TemplateStyles to style external elements

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

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).

Pages in category "Templates using TemplateStyles to style external elements"

The following 2 pages are in this category, out of 2 total.