Hello, I’m a web developer currently working with the Research Team in developing a new Template for Research Sub-Programs to be hosted on Meta, using the TemplateStyles extension.
I’ve never edited something on Wiki before but I’ve managed to create my user page, and build a sub-page with a sub-sub-page styles.css to later be moved to the Template namespace.
I’ve tested TemplateStyles using my page as the src attribute, but, apparently, my CSS’s content model defaults to CSS once I create it but in order to use TemplateStyles I need to make the content model sanitized-css for that page. And I noticed there’s a Content Model editor but it’s only available to Administrators.
My styles.css is here: https://meta.wikimedia.org/wiki/User:DiegoQuintanaCL/Research_Program/styles...
So my question is, could you change my CSS page’s content model to sanitized-css, or is there a way to create a new .css page and have it be sanitized-css from its creation.
Thank you very much.
I did this for you. If you ever need again, just drop an edit request on the associated talk page by putting "{{sudo}}".
Xaosflux
On Tue, Mar 10, 2020 at 12:28 PM Diego Quintana hello@diegoquintana.com wrote:
Hello, I’m a web developer currently working with the Research Team in developing a new Template for Research Sub-Programs to be hosted on Meta, using the TemplateStyles extension.
I’ve never edited something on Wiki before but I’ve managed to create my user page, and build a sub-page with a sub-sub-page styles.css to later be moved to the Template namespace.
I’ve tested TemplateStyles using my page as the src attribute, but, apparently, my CSS’s content model defaults to CSS once I create it but in order to use TemplateStyles I need to make the content model sanitized-css for that page. And I noticed there’s a Content Model editor but it’s only available to Administrators.
My styles.css is here: https://meta.wikimedia.org/wiki/User:DiegoQuintanaCL/Research_Program/styles...
So my question is, could you change my CSS page’s content model to sanitized-css, or is there a way to create a new .css page and have it be sanitized-css from its creation.
Thank you very much. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hi Diego!
On Tue, Mar 10, 2020 at 9:28 AM Diego Quintana hello@diegoquintana.com wrote:
So my question is, could you change my CSS page’s content model to sanitized-css, or is there a way to create a new .css page and have it be sanitized-css from its creation.
The content model is usually determined by the namespace when the page is created, and stays the same after that (administrators can change it, as you say). So you can create the page in the Template namespace with a .css extension, which will make it a sanitized-css page, and then move it elsewhere.
In my opinion it's better to keep such pages in the template namespace though. User CSS subpages in particular are not ideal because they are protected from editing by anyone other than the owner, making it difficult to collaborate on them.
Thanks XaosFlux and Gergo,
Gergo: Diego is working on the templates in his userspace, but our plan is to move them to the template namespace when we're done testing, etc.
Thanks again for the quick turnaround on this!
- J
On Tue, Mar 10, 2020 at 11:14 AM Gergo Tisza gtisza@wikimedia.org wrote:
Hi Diego!
On Tue, Mar 10, 2020 at 9:28 AM Diego Quintana hello@diegoquintana.com wrote:
So my question is, could you change my CSS page’s content model to sanitized-css, or is there a way to create a new .css page and have it be sanitized-css from its creation.
The content model is usually determined by the namespace when the page is created, and stays the same after that (administrators can change it, as you say). So you can create the page in the Template namespace with a .css extension, which will make it a sanitized-css page, and then move it elsewhere.
In my opinion it's better to keep such pages in the template namespace though. User CSS subpages in particular are not ideal because they are protected from editing by anyone other than the owner, making it difficult to collaborate on them. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org