Topic on Extension talk:TemplateStyles

Hwgen22 (talkcontribs)

When I insert a citation on my wiki using Citoid, it is added correctly. However, at the end of the citation, I get:

"<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>"

Why do these tags appear and how to remove them? Thank you.

Jdforrester (WMF) (talkcontribs)

They're inserted by the template and Lua you're using (which you've imported from the English Wikipedia, by the looks of things), but it sounds like your wiki doesn't have the TemplateStyles extension installed, so it just gets output as raw text. You should install the extension, or re-work the templates and modules to not us TemplateStyles.

Hwgen22 (talkcontribs)

Hi @Jdforrester (WMF),


Thank you for your response. I've checked carefully and TemplateStyles is installed on my Wiki. I have the following information in Special:Version:

TemplateStyles 1.0 (e5da5c0) 18:14, 18 April 2018


In my LocalSettings.php file, these extensions are loaded in this order (note that the list is not fully displayed):


Cite

ParserFunctions

WikiEditor

VisualEditor

Scribunto

TemplateData

TemplateStyles

Citoid


I really don't understand why these tags appear. I obtain the same kind of error than if I remove the load of the extension.

Notice that in Module:Citation/CS1 page that I've imported from Wikipedia, multiple tags appear (thus, they are not parsed correctly). For example:

<section begin=header /> and <section end=header />

<section begin=module_components_table /> and <section end=module_components_table />


And so on. Maybe this issue is related with the one that I have with the tags of TemplateStyles?


Do you know what is the root of such problem(s)? I'm trying to find any relevant documentation on that, but I found nothing until now.


Jdforrester (WMF) (talkcontribs)
Hwgen22 (talkcontribs)

Yep, I've installed the extension and the section tags are now correctly handled. Thank you!


However, the <templatestyles> tags are still showing during the edit of a page, both on the citation dialog (when editing a reference) and at the bottom of page (references list), and I don't know why. I suspect that this is linked with VisualEditor and/or Parsoid. Otherwise, it is a problem linked with TemplateStyles directly (which is, potentially, not recognized?). I am not sure.

Jdforrester (WMF) (talkcontribs)

Possibly you're using an older version of Parsoid that doesn't know about templatestyles tags yet? Otherwise I'm not sure how you would achieve that issue.

Hwgen22 (talkcontribs)

Well, I've checked and I have the latest version of Parsoid (0.9.0). The documentation page says that Parsoid works fine with the latest versions of VisualEditor, so it seems that the error results from something else.


It is not a big issue as it does not prevent me from adding references, but it is still a problem and I also fear that it hides a bigger one.


I've opened a discussion in Parsoid wiki in any case.


Thank you for your help @Jdforrester (WMF) and if you have some news on this issue, please tell me!

Reply to "Tags are displayed"