Page MenuHomePhabricator

TemplateStyles not applied to content used as editintro in Inputbox
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Styles specified by the TemplateStyles are not applied.

What should have happened instead?:
The cite box should look the same, no matter whether embedded on a page or in the editintro area. This is especially useful for templates like "message box" that may be purposefully placed in editintro areas.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Expected appearance:

image.png (95×283 px, 4 KB)

Actual appearance (only sitewide styles applied):

image.png (111×354 px, 4 KB)

The template used for demonstration is https://pl.wikipedia.org/wiki/Szablon:Cytat

Event Timeline

Aklapper renamed this task from TemplateStyles cannot be applied to a content used as editintro to TemplateStyles not applied to content used as editintro in Inputbox.Mar 24 2023, 1:26 PM
JJMC89 subscribed.

The editintro is not inside the main parsed content. Adding the mw-parser-output class to the outer div of {{Cytat}} should fix it. See the first bullet at mw:Extension:TemplateStyles#Caveats.