Jump to content
Toggle menu
  • 12,3 E szócikkek
  • 21,5 E fájlok
  • 4 felhasználók
  • 63,9 E szerkesztések
SCWIKI
Toggle preferences menu
Toggle personal menu
Nem vagy bejelentkezve
Your IP address will be publicly visible if you make any edits.

Renders the main page. One line, no parameters:

{{Mainpage}}

This is a thin wrapper around Module:Mainpage, which emits the whole page — hero, highlights, featured article, on this day, the editing invitation, the community cards, the directory, and a foot row linking the page an editor changes. It also emits its own TemplateStyles and the category that loads the main page gadget, so a page carrying this transclusion needs nothing else.

Changing what the page shows

Not here, and not in any module. Everything an editor changes — the featured article, the running event, the build chips, the hero, and both link lists — is in one file:

It is linked at the foot of the rendered page, and it carries its own guidance in a _readme at the top. Module:Mainpage/doc is the full reference.

MediaWiki refuses to save invalid JSON, so a mistake there is caught before it can reach the page — and a value the page cannot make sense of costs only the thing it feeds, never the page itself.

Previewing part of it

{{#invoke:Mainpage|hero}}              — the hero on its own
{{#invoke:Mainpage|hero|noscript=yes}} — as a reader with no JavaScript sees it