Is there a way for a template to count how many copies of itself are above it in the page? It'd be interested to have an 'auto vaue' in v:template:fig that works out the |number=
parameter automatically.
(Copied at Topic:V0fffosf4ylovb9l)
Is there a way for a template to count how many copies of itself are above it in the page? It'd be interested to have an 'auto vaue' in v:template:fig that works out the |number=
parameter automatically.
(Copied at Topic:V0fffosf4ylovb9l)
Wow, the phabricator discussions got pretty heated on that. Is it some specific issue with Extension:Variables, or some general issue with any similar functionality?
Apparently, this sort of auto-numbering can be achieved with just CSS: https://css-tricks.com/numbering-in-style/
@Ciencia Al Poder: Very interesting! Do you know if that sort of css is possible within mediawiki?
Yes,you can add CSS rules as described in Manual:Interface/Stylesheets
I think I'm missing something. I've attempted to do a simple css subpage in my sandbox but I cant seem to get it to register the css.
Is there an obvious error?
This is way utilizing TemplateStyles. You can also add to site CSS (see above) or to your CSS (if may be visible only for you).
Thank you. It seems to be getting there. I'm getting an error about sanitized css though:
Page User:Evolution and evolvability/sandbox/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "CSS").
Is there a way to tell which part is unsanitary?
Maybe the "Sanitized CSS" content model is only applicable for CSS under the template namespace and not the user namespace. If that's the problem, that's terrible for testing and should probably be reported as a bug.
I think you're correct about the namespace. I've made a test set in wikiversity template space and it seems to be working.
Thank you so much for the help!