Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Timo Tijhof
@krinkle@fosstodon.org  ·  activity timestamp last week

@nullvoxpopuli Yes!

Wikipedia has output style tags in the body of most articles for a decade without issue.

* https://en.wikipedia.org/wiki/Universe — 18 style tags.
* https://en.wikipedia.org/wiki/Banana — 16 style tags.

To put that in context:
* We spent time *this* year investigating an issue with Firefox 52 on WinXP. If there's an edge case, we hear about it and a volunteer or staff may prioritise it.
* Our pages have one of the best perf among top sites. https://www.mediawiki.org/wiki/Wikimedia_Performance_Team#Milestones

#mediawiki #webdev #wikipedia

MediaWiki

Wikimedia Performance Team - MediaWiki

Banana - Wikipedia

Universe - Wikipedia

Timo Tijhof
@krinkle@fosstodon.org replied  ·  activity timestamp last week

@nullvoxpopuli

The MediaWiki software gives editors the ability to use "templates".
The infobox you see aside many articles is such a template.

These are re-usable macros (a bit like web components) that include another page, called with parameters. There you can use variables, conditionals, and can embed a stylesheet.

We then output this in the HTML before the first call to that template on a given page (deduplicated).

https://en.wikipedia.org/wiki/Wikipedia:TemplateStyles

#mediawiki #wikipedia #TemplateStyles

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login