Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,987
edits
(Created page with "[https://defaultloadout.wiki.gg/wiki/Template:Main_page Improved Main Page (IMP) layout] is a customizable template system commonly used on wikis hosted by wiki.gg (a MediaWiki hosting service) for creating modern, grid-based homepages. It's designed to make the main page more visually appealing and organized, often with sections like welcome messages, featured content, news, and navigation boxes arranged in a responsive Cascading S...") |
No edit summary |
||
| Line 4: | Line 4: | ||
* Template:Main page: The core template that structures the layout. | * Template:Main page: The core template that structures the layout. | ||
* Module:Main page: A Lua module that handles the dynamic arrangement of content boxes. | |||
* Module:Main page: A Lua module that handles the dynamic arrangement of content boxes. | |||
* Custom CSS in MediaWiki:Common.css for styling (specifically the "Main page layout" section). | * Custom CSS in MediaWiki:Common.css for styling (specifically the "Main page layout" section). | ||
| Line 14: | Line 12: | ||
* https://www.mediawiki.org/wiki/Extension:VariablesLua | * https://www.mediawiki.org/wiki/Extension:VariablesLua | ||
* https://github.com/wiki-gg-oss/mediawiki-extensions-ParserPower - https://river.me/blog/argmap/ | * https://github.com/wiki-gg-oss/mediawiki-extensions-ParserPower - https://river.me/blog/argmap/ | ||
* https://www.mediawiki.org/wiki/Extension:Variables - https://river.me/blog/variables-and-parsoid/ | * https://www.mediawiki.org/wiki/Extension:Variables - https://river.me/blog/variables-and-parsoid/ | ||
* https://www.mediawiki.org/wiki/Extension:Description2 | * https://www.mediawiki.org/wiki/Extension:Description2 | ||
** Ranking in Google | ** Ranking in Google | ||
** Not be needed for non-public wikis | ** Not be needed for non-public wikis | ||
| Line 32: | Line 25: | ||
* Search for MediaWiki:Mainpage in your wiki's search bar. | * Search for MediaWiki:Mainpage in your wiki's search bar. | ||
* Edit it to point to your desired page title (e.g., replace the default "Main Page" with "Home" or whatever your main page is called). | * Edit it to point to your desired page title (e.g., replace the default "Main Page" with "Home" or whatever your main page is called). | ||
* This system message controls where users land when clicking the logo or "Main page" sidebar link. | * This system message controls where users land when clicking the logo or "Main page" sidebar link. | ||
* Optionally, customize the displayed title with MediaWiki:Mainpage-title (for guests) or MediaWiki:Mainpage-title-loggedin (for logged-in users). | * Optionally, customize the displayed title with MediaWiki:Mainpage-title (for guests) or MediaWiki:Mainpage-title-loggedin (for logged-in users). | ||
| Line 42: | Line 32: | ||
* Create or import Template:Main page (see documentation below). | * Create or import Template:Main page (see documentation below). | ||
* Create Module:Main page to manage box layouts (this is a Lua script for dynamic grids). | * Create Module:Main page to manage box layouts (this is a Lua script for dynamic grids). | ||
* Each `{{Main page box}}` pulls content from subpages (e.g., "WikiName/welcome"). If a keyword (like "news") doesn't exist, previewing will prompt you to create it. | * Each `{{Main page box}}` pulls content from subpages (e.g., "WikiName/welcome"). If a keyword (like "news") doesn't exist, previewing will prompt you to create it. | ||
| Line 50: | Line 38: | ||
* Edit MediaWiki:Common.css and add styles under a "Main page layout" section. | * Edit MediaWiki:Common.css and add styles under a "Main page layout" section. | ||
** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp/variablesEditMe.css - On top | ** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp/variablesEditMe.css - On top | ||
** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp/mainReadonly.css - Below | ** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp/mainReadonly.css - Below | ||
* Add Gadget CSS | |||
** MediaWiki:Gadgets/imp/mainReadonly.css | |||
** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp/mainReadonly.css#L-12 | |||
** https://defaultloadout.wiki.gg/wiki/MediaWiki:Gadgets/imp | |||
** MediaWiki:Gadgets/mpEditLinks? with JS/CSS for quick-edit links on main page boxes (code examples available in wiki.gg docs). | |||
=== 5. Test and Preview: === | === 5. Test and Preview: === | ||
* Preview your main page edits to check for warnings (e.g., missing boxes). | * Preview your main page edits to check for warnings (e.g., missing boxes). | ||
* If a box is omitted intentionally, ignore the warning. | * If a box is omitted intentionally, ignore the warning. | ||
| Line 82: | Line 61: | ||
* https://defaultloadout.wiki.gg/wiki/Default_Loadout_Wiki/pages | * https://defaultloadout.wiki.gg/wiki/Default_Loadout_Wiki/pages | ||
* subpages | * subpages | ||
** https://defaultloadout.wiki.gg/wiki/Welcome | ** https://defaultloadout.wiki.gg/wiki/Welcome | ||
* https://test.wiki.gg/ | * https://test.wiki.gg/ | ||
* https://www.semantic-mediawiki.org/wiki/MediaWiki_Users_and_Developers_Conference_Fall_2025/wiki.gg%27s_IMProved_Main_Page | * https://www.semantic-mediawiki.org/wiki/MediaWiki_Users_and_Developers_Conference_Fall_2025/wiki.gg%27s_IMProved_Main_Page | ||
=== Main page creation === | === Main page creation === | ||
* https://defaultloadout.wiki.gg/ | * https://defaultloadout.wiki.gg/ | ||
** https://defaultloadout.wiki.gg/wiki/Default_Loadout_Wiki/welcome?action=edit | ** https://defaultloadout.wiki.gg/wiki/Default_Loadout_Wiki/welcome?action=edit | ||
| Line 102: | Line 74: | ||
*https://support.wiki.gg/wiki/Default_main_page | *https://support.wiki.gg/wiki/Default_main_page | ||
*https://thekingiswatching.wiki.gg/ | *https://thekingiswatching.wiki.gg/ | ||
*https://anvilempires.wiki.gg/ | *https://anvilempires.wiki.gg/ | ||
**Icons - https://anvilempires.wiki.gg/wiki/Anvil_Empires_Wiki/links?action=edit | **Icons - https://anvilempires.wiki.gg/wiki/Anvil_Empires_Wiki/links?action=edit | ||
*https://cardsurvival.wiki.gg/ | *https://cardsurvival.wiki.gg/ | ||
*https://crystalrealms.wiki.gg/ | *https://crystalrealms.wiki.gg/ | ||
*https://epicstickman.wiki.gg/ | *https://epicstickman.wiki.gg/ | ||
*https://jurassicworld.wiki.gg/ | *https://jurassicworld.wiki.gg/ | ||
**https://jurassicworld.wiki.gg/wiki/Jurassic_World_The_Game_Wiki/events | **https://jurassicworld.wiki.gg/wiki/Jurassic_World_The_Game_Wiki/events | ||
*https://sultansgame.wiki.gg/ | *https://sultansgame.wiki.gg/ | ||