Aurora:HomePageTesting: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "__NOTOC__ <div style="min-height:128px;background:#000;margin:6px;padding: 0.2em 0.4em;border: 1px solid #FFF;box-shadow: #000 0 2px 3px;color:#FFF;">left|72px|link=Welcome to the '''EarthMC Wiki,''' a MediaWiki website that any EarthMC player can participate in. It aims to establish a collection of all things '''[https://www.earthmc.net/ {{color|#AAA|EarthMC}}]''' related. Log in with Discord by clicking the link in the top right cor...")
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
<!DOCTYPE html>
<div style="min-height:128px;background:#000;margin:6px;padding: 0.2em 0.4em;border: 1px solid #FFF;box-shadow: #000 0 2px 3px;color:#FFF;">[[File:EarthMC Logo Expanded.png|left|72px|link=]]Welcome to the '''EarthMC Wiki,''' a MediaWiki website that any EarthMC player can participate in.
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EarthMC Wiki Home</title>
    <!-- author - Maxxiimus -->
   
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #E6EFF3;
            color: #333;
        }
        .sidebar {
            background-color: #E6EFF3;
            color: black;
            min-height: 100vh;
            padding: 20px;
            width: 250px;
            transition: transform 0.3s ease;
        }


It aims to establish a collection of all things '''[https://www.earthmc.net/ {{color|#AAA|EarthMC}}]''' related.
        .sidebar a {
            color: black;
            text-decoration: none;
            display: block;
            margin: 10px 0;
        }


Log in with Discord by clicking the link in the top right corner. This will allow you to edit and create pages.
     


Don't forget to link your wiki pages to your in-game town or nation with command /t set wikipage or /n set wikipage. This will create clickable wiki links when selecting territory on the map.
        .sidebar-toggle {
            display: none; /* Hidden by default */
            position: fixed;
            top: 10px;
            left: 10px;
            background-color: #E6EFF3;
            border: none;
            padding: 10px;
            cursor: pointer;
            z-index: 1000; /* Make sure it is on top */
        }


Now let's [[Earthmc_Wiki/create_a_page|{{color|#AAA|create an entry}}]] to build EarthMC Wiki!
        .close-btn {
</div>
            display: none;
            background-color: transparent;
            border: none;
            color: black;
            font-size: 20px;
            cursor: pointer;
            margin-bottom: 10px;
        }


<div style="color: #222222;line-height: 1.6;direction: ltr;width: 100%;">
<div style="direction: ltr;flex-direction: row;display:flex;flex-wrap:wrap;width:100%;">
<div style="background:#F0F0F0;margin:6px;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;flex-grow: 1;"><div style="background:#000;padding: 0.2em 0.4em;color: #FFF;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.5em;">Category navigation - Quick access to relevant information</div>


Navigate using the categories below, or [[Help:Search|search for specific pages]].
       
<div class="mw-collapsible" id="mw-customcollapsible-Aurora">
        @media (max-width: 768px) {
<div style="cursor:default;">
            .sidebar {
'''Select a server:'''
                transform: translateX(-100%);
<span style="font-size: 1.2em;border: 1px solid #FFF;background:#000;color:#FFF;margin:2px;padding:2px;">'''Aurora'''</span>
                position: fixed;
<span class="mw-customtoggle-Aurora mw-customtoggle-Nove mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Nova</span>
                top: 0;
<span class="mw-customtoggle-Aurora mw-customtoggle-Classic mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Classic</span>
                left: 0;
</div>
                width: 250px;
* General Category:[[:Category:Aurora|Terra Aurora]]
                height: 100vh;
<div style="max-width: 600px;display: flex;flex-direction: row;">
                z-index: 1000;
<div style="flex-grow: 1;width:50%;">
            }
* [[:Category:Towns (Aurora)|Towns]]
* [[:Category:Nations (Aurora)|Nations]]
* [[:Category:Alliances (Aurora)|Alliances]]
* [[:Category:Wars (Aurora)|Wars]]
* [[:Category:Players|Players]]
* [[:Category:Miscellaneous|Miscellaneous]]
</div>
<div style="flex-grow: 1;width:50%;">
* [[:Category:Battles (Aurora)|Battles]]
* [[:Category:Conflicts (Aurora)|Conflicts]]
* [[:Category:Businesses (Aurora)|Businesses]]
* [[:Category:Organizations (Aurora)|Organizations]]
* [[:Category:Lore Items (Aurora)|Lore Items]]
</div>
</div>
</div>


<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Nove">
            .sidebar.open {
<div style="cursor:default;">
                transform: translateX(0);
'''Select a server:'''
            }
<span class="mw-customtoggle-Aurora mw-customtoggle-Nove mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Aurora</span>
<span style="font-size: 1.2em;border: 1px solid #FFF;background:#000;color:#FFF;margin:2px;padding:2px;">'''Nova'''</span>
<span class="mw-customtoggle-Nove mw-customtoggle-Classic mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Classic</span>
</div>
* General Category:[[:Category:Nova|Terra Nova]]
<div style="max-width: 600px;display: flex;flex-direction: row;">
<div style="flex-grow: 1;width:50%;">
* [[:Category:Towns (Nova)|Towns]]
* [[:Category:Nations (Nova)|Nations]]
* [[:Category:Alliances (Nova)|Alliances]]
* [[:Category:Wars (Nova)|Wars]]
</div>
<div style="flex-grow: 1;width:50%;">
* [[:Category:Battles (Nova)|Battles]]
* [[:Category:Conflicts (Nova)|Conflicts]]
* [[:Category:Businesses (Nova)|Businesses]]
</div>
</div>
</div>


<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Classic">
            .sidebar-toggle {
<div style="cursor:default;">
                display: block;  
'''Select a server:'''
            }
<span class="mw-customtoggle-Aurora mw-customtoggle-Classic mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Aurora</span>
<span class="mw-customtoggle-Nove mw-customtoggle-Classic mw-customtoggle" style="background:#FFF;font-size: 1.2em;margin:2px;padding:2px;cursor:hand;">Nova</span>
<span style="font-size: 1.2em;border: 1px solid #FFF;background:#000;color:#FFF;margin:2px;padding:2px;">'''Classic'''</span>
</div>
* General Category:[[:Category:Classic|Classic]]
<div style="max-width: 600px;display: flex;flex-direction: row;">
<div style="flex-grow: 1;width:50%;">
* [[:Category:Towns (Classic)|Towns]]
* [[:Category:Nations (Classic)|Nations]]
* [[:Category:Alliances (Classic)|Alliances]]
* [[:Category:Wars (Classic)|Wars]]
</div>
<div style="flex-grow: 1;width:50%;">
* [[:Category:Battles (Classic)|Battles]]
* [[:Category:Conflicts (Classic)|Conflicts]]
</div>
</div>
</div>


<div style="background:#000;padding: 0.2em 0.4em;color: #FFF;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.5em;">Welcome to the Wiki! - How to edit</div>
            .close-btn {
Use the following page creation buttons to create a page for the Aurora map:
                display: block;  
            }
        }


<div style="padding:0.7em;">{{#createpage:Aurora|Aurora page name}}</div>Before you make an edit on this wiki, please bear in mind a few things:*'''<u>Check our [[EarthMC:Wiki Rules|rules]] for the Wiki, violation of them may result in being blocked!</u>'''
        .nav-separator {
*You can check out the [[:Category:Help|help category]] to learn more and view the structure in which articles should be written.
            border: none;
*Rewards are available in game for contributions to the EarthMC Wiki. [[Wiki Rewards|Click here to see more.]]
            border-top: 1px solid #ccc;
*'''All articles '''are required to follow the Subdivision template and specific templates also exist for the following types of articles:
            margin: 10px 0;
**Town articles must follow the [[Town Template]].
        }
**Nation articles must follow the [[Nation Template]].
**Player articles must follow the [[Player Template]].
**Articles about conflicts, wars or attacks must follow the [[Conflict Template]].
**All articles (including the ones above) must follow the [[Subdivision Template]].
*Eras are decided by the staff. Do not attempt to make articles relating to eras.
*Vandalizing articles or the wiki in any way will result in a ban and will just be reverted anyway.
*'''<u>Remember to categorize your articles so they show up in the correct lists!</u>'''


</div>
        .info-navigation,
<div style="background:#EEE;margin:6px;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;flex-grow: 1;">
        .category-navigation,
<div style="background:#000;padding: 0.2em 0.4em;color: #FFF;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.5em;">[[Special:Statistics|{{color|#fff|Statistics}}]] - Every contribution will not be forgotten</div>
        .how-to-edit,
So far, the editors have created [[Special:Statistics|'''{{NUMBEROFARTICLES}}''']] entries,
        .additional-info {
            background-color: #F0F0F0;
            border-radius: 5px;
            border-width: 1px;
            border-color: #BCBDBD;
            border-style: solid;
            padding: 10px;
            margin-bottom: 20px;
        }
        .footer {
            margin-top: 20px;
        }
        .small-icon {
            width: 100px;
            height: 100px;
            object-fit: contain;
        }
        .icon-grid {
            margin-left: 20px;
            padding-top: 10px;
        }
        .server-selection button.active {
            background-color: #7f8c8d;
            color: white;
            border-color: #7f8c8d;
        }
        .icon-grid .row {
            display: flex;
            flex-wrap: wrap;
            margin: -10px;  
        }
        .icon-grid .col-md-2 {
            padding: 10px;
            flex: 0 0 20%;
        }
        .icon-grid img {
            max-width: 100%;
            max-height: 90px;
            display: block;
            object-fit: contain;
            margin: 0 auto;
        }
        .button-group {
            display: flex;
            justify-content: left;
            gap: 10px;
        }
        .btn {
            padding: 10px 20px;  
            font-size: 16px;  
            border-width: 1px;
            border-radius: 5px;
            background-color: #D9D9D9;
            color: black;
            cursor: pointer;  
            border-color: #767171;
            transition: background-color 0.3s;
        }
        a {
            text-decoration: none;
            color: black;
        }


Completed [[Special:Statistics|'''{{NUMBEROFEDITS}}''']] edits and uploaded [[:Special:NewFiles|'''{{NUMBEROFFILES}}''']] pictures,
     
        @media (max-width: 768px) {
            .sidebar {
                padding: 10px;
            }
            .icon-grid .col-md-2 {
                flex: 0 0 50%;
                max-width: 50%;
            }
            .small-icon {
                width: 80px;
                height: 80px;
            }
            .button-group {
                flex-direction: column;
                align-items: center;
            }
        }


Since moving out of Fandom, a total of [[Special:Statistics|'''{{NUMBEROFUSERS}}''']] editors have contributed to EarthMC Wiki.
        @media (max-width: 576px) {
            .icon-grid .col-md-2 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .small-icon {
                width: 60px;
                height: 60px;
            }
            .button-group {
                gap: 5px;
            }
        }


Thank you for your efforts!
<div style="margin:0 auto;width: 90%;display: flex;flex-wrap:wrap;gap:10px;padding: 0.2em 0.4em;border: 1px solid #666;background:#AAA;box-shadow: #666 0 2px 3px;font-size: 1.2em;text-align:center">
<div style="background:#FFF;flex:220px;flex-grow: 1;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.0em;text-align:center">[[Special:NewPages|Recent New Page]]</div>
<div style="background:#FFF;flex:220px;flex-grow: 1;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.0em;text-align:center">[[Special:RecentChanges|Recent Changes]]</div>
<div style="background:#FFF;flex:220px;flex-grow: 2;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.0em;text-align:center">[[Special:Watchlist|Your Watchlist]]</div>
<div style="background:#FFF;flex:220px;flex-grow: 2;padding: 0.2em 0.4em;border: 1px solid #DDD;box-shadow: #666 0 2px 3px;font-size: 1.0em;text-align:center">[[Special:Log|Log]]</div>
</div>


<br><br><br>
    </style>
</head>
<body onload="changeServer('Aurora')">
   


<div style="padding: 10px;">
    <div class="d-flex">
{| align="center" style="background-color: rgb(241, 194, 50); padding: 20px; width: 70%; border-radius: 5px;"
 
|- valign="middle"
        <button class="sidebar-toggle" onclick="toggleSidebar()">☰</button>
| width="12%" | [[File:Medal.png|45px|link=]]
        <nav class="sidebar" id="sidebar">
| <div style="text-align: center;"><span style="font-size:32px">'''Good article?'''</span><br>Good articles are now rewarded a special template at the top. [[:Category:Good article|Read more onto how to get it.]]</div></div>
            <button class="close-btn" onclick="toggleSidebar()">✖</button>
|}
            <h4>Wiki Menu</h4>
</div>
            <a href="#">Login with discord</a>
</div></div>
            <a href="#">Create a page</a>
            <a href="#">Recent Changes</a>
            <a href="#">Bring to a random page</a>
            <br>
           
            <h6>Tools</h6>
            <hr class="nav-separator">
            <a href="#">What links here</a>
            <a href="#">Related Changes</a>
            <a href="#">Special pages</a>
            <a href="#">Printable version</a>
            <a href="#">Permanent link</a>
            <a href="#">Page Information</a>
        </nav>
 
 
        <div class="content container my-4">
            <div class="text-center mb-4">
                <img src="./src/img/EarthMC.net.png" alt="EarthMC Logo" class="img-fluid" style="max-width:100%; max-height: 300px;" >
                 
            </div>
 
 
            <div class="info-navigation">
                <div class="row text-left">
                    <div class="col-md-12">
                        <p>Welcome to the official <a href="#">Earthmc Wiki</a>, a mediawiki website that any EMC player can participate in. This wiki aims to establish a collection of all things EMC related.</p>
                        <p>Log in with your discord by clicking the link in the top right corner. this will allow you to interact with pages.</p>
                        <p>Dont forget to link your wiki pages to your in-game town or nation with the commands <strong>/t set wikipage</strong> or <strong>/n spawn wikipage</strong> wikipage respectively. This will create clickable wiki links by selecting territory on the  <a href="#">EarthMC map</a>.</p>
                        <p><a href="#">Now lets create an entry</a> to build the EarthMC wiki!</p>
                        <p style="display: inline-block;">Check out some other important pages:</p><a href="#"><img src="./src/img/MCQuestionMark.png" width="20px" height="20px">AMA/FAQ</a><a href="#"><img src="src/img/LinkIcon.png" width="20px" height="20px">Other useful links</a>
                    </div>
                </div>
            </div>
 
 
            <div class="category-navigation">
                <h3 class="text-center"><strong>EarthMC Info Navigation - Quick access to all relevant EMC info:</strong></h3>
            </div>
 
 
            <div class="how-to-edit">
                <div class="row" style="margin-left: 20px;">
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/Earth.webp" class="img-fluid small-icon"><p>About EarthMC</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MinecraftGrassBlockLogo.png" class="img-fluid small-icon"><p>How to join</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCMap.png" class="img-fluid small-icon"><p>Live Map</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/GoldBlock.png" class="img-fluid small-icon"><p>Server Economy</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCSign.png" class="img-fluid small-icon"><p>Server Chat</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/Premium.webp" class="img-fluid small-icon"><p>Premium Rank</p></a>
                    </div>                 
                </div>
 
                <div class="row" style="padding-top: 10px; margin-left: 20px;">
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCBookshelf.png" class="img-fluid small-icon"><p>Server Rules</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCQuickshopIcon.png" class="img-fluid small-icon"><p>Quick Shops</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCEnderpearl.png" class="img-fluid small-icon"><p>Teleporting</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/mcMMO.png" class="img-fluid small-icon"><p>mcMMO</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MEWOverclaimLogo.png" class="img-fluid small-icon"><p>Overclaim</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCNetheriteSword.png" class="img-fluid small-icon"><p>War Info</p></a>
                    </div>
                </div>
               
                <div class="row" style="padding-top: 10px; margin-left: 20px;">
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCFireCharge.png" class="img-fluid small-icon"><p>Celeste</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCCraftingTable.png" class="img-fluid small-icon"><p>Custom Crafting</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCVillageHouse.png" class="img-fluid small-icon"><p>Plot Information</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCFlint.png" class="img-fluid small-icon"><p>Quaters</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCBell.png" class="img-fluid small-icon"><p>Town Info</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCNetherStar.png" class="img-fluid small-icon"><p>Nation Info</p></a>
                    </div>
                </div>
               
                <div class="row" style="padding-top: 10px; margin-left: 20px;">
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCNetherrack.png" class="img-fluid small-icon"><p>The Nether</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/MCpaper.png" class="img-fluid small-icon"><p>Walkthrough</p></a>
                    </div>
                    <div class="col-md-2" style="display:inline-block;">
                        <a href="#"><img src="./src/img/EMCWikiReward.png" class="img-fluid small-icon"><p>Wiki Rewards</p></a>
                    </div>
                </div>
   
            </div>
           
            <div class="category-navigation">
                <h3 class="text-center"><strong>Wiki Category Navigation - Quick access to valuble Information:</strong></h3>
            </div>
 
            <div class="additional-info">
                <div class="server-selection">
                    <p style="display: inline-block;">Navigate to the categories of the EarthMC wiki using the &nbsp;&nbsp; <strong>Server Selection</strong>: </p>
                    <button id="aurora-btn" onclick="changeServer('Aurora')">Aurora</button>
                    <button id="nova-btn" onclick="changeServer('Nova')">Nova</button>
                    <button id="classic-btn" onclick="changeServer('Classic')">Classic</button>
                    <p>or search for a specific page.</p>
                </div>
                <br>
   
 
                <div id="selected-category">
                    Your selected category is: <strong> <span id="server-name">Aurora</span> </strong>
                </div>
 
                <br>
 
           
                <div id="icon-container" class="icon-grid text-center row">
               
                </div>   
            </div>
 
            <div class="category-navigation">
                <h3 class="text-center"><strong>How to edit The EarthMC Wiki: </strong></h3>
            </div>
 
           
            <div class="how-to-edit"> 
                <div class="row" style="padding-top: 10px;">
                    <div class="col-md-5" style="display:inline-block;">
                        <p class="sentence">Use the following button to create a wiki page:</p>
                        <div class="button-group">
                            <button class="btn">Aurora Page Name</button>
                            <button class="btn">Create Page</button>
                        </div>
                    </div>
                    <div class="col-md-3" style="display:inline-block;">
                        <img src="./src/img/Earth.webp" class="img-fluid small-icon">
                    </div>
                    <div class="col-md-4" style="display:inline-block;">
                        <p>Before Making an edit on the wiki, please <strong>check our <a>rules</a> for the Wiki, violation of these rules may result in being blocked</strong></p>
                    </div>
                </div> 
            </div>
 
 
            <div class="category-navigation">
                <h3 class="text-center"><strong>Additional Information: </strong></h3>
            </div>
 
                   
            <div class="how-to-edit">             
                <div class="row" style="padding-top: 10px;">
                    <div class="col-md-12" style="display:inline-block;">
                        <ul>
                            <li>You can check out <a href="#">help category</a> to learn more about the way articles should be written</li>
                            <li><a href="#">Rewards</a> are available in game for contributing to the Wiki</li>
                            <li>All articles are required to follow thier respective templates, please check out the <a href="#">Template Directory</a> page before creating a page</li>
                            <li>Vandalizing articles in any way is not allowed and will result in a ban. Your changes to the wiki will be reverted anyway.</li>
 
                        </ul>
                    </div>
                </div>
                <div class="row" style="padding-top: 10px;">
                    <div class="col-md-12" style="display:inline-block;">
                        <div class="button-group" style="justify-content: center;">
                            <button class="btn">Recent New Page</button>
                            <button class="btn">Recent Changes</button>
                            <button class="btn">Your Watchlist</button>
                            <button class="btn" style="padding-left: 60px; padding-right: 60px;">Log</button>
                            <button class="btn">Statistics</button>
                        </div>
                    </div>
                </div>
   
            </div>
 
 
 
        </div>
    </div>
 
 
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
 
    <script>
const servers = {
    Aurora: [
        { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
        { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
        { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
        { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
        { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
        { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
        { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
        { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
        { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
        { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
       
     
    ],
    Nova: [
    { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
        { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
        { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
        { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
        { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
        { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
        { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
        { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
        { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
        { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
    ],
    Classic: [
    { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
        { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
        { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
        { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
        { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
        { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
        { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
        { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
        { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
        { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
    ]
};
 
 
 
function changeServer(serverName) {
    const container = document.getElementById('icon-container');
    container.innerHTML = '';
 
    const serverNameElem = document.getElementById('server-name');
    serverNameElem.textContent = serverName;
 
 
    document.querySelectorAll('.server-selection button').forEach(button => {
        button.classList.remove('active');
    });
    document.getElementById(`${serverName.toLowerCase()}-btn`).classList.add('active');
 
    const icons = servers[serverName];
    let rowDiv = document.createElement('div');
    rowDiv.className = 'row';
 
    icons.forEach((icon, index) => {
        if (index > 0 && index % 5 === 0) {
            container.appendChild(rowDiv);
            rowDiv = document.createElement('div');
            rowDiv.className = 'row';
        }
 
        const colDiv = document.createElement('div');
        colDiv.className = 'col-md-2';
   
 
        const a = document.createElement('a');
        a.href = icon.link;
        a.title = `More about ${icon.title}`;
 
        const img = document.createElement('img');
        img.src = icon.src;
        img.className = 'img-fluid';
        img.alt = icon.title;
        img.width = 200;
        img.height = 200;
 
        const p = document.createElement('p');
        p.textContent = `${icon.title}`;
 
        a.appendChild(img);
        a.appendChild(p);
 
        colDiv.appendChild(a);
        rowDiv.appendChild(colDiv);
    });
 
    container.appendChild(rowDiv);
}
 
function toggleSidebar() {
    const sidebar = document.getElementById('sidebar');
    sidebar.classList.toggle('open');
}
 
    </script>
</body>
</html>

Revision as of 10:44, 28 August 2024

<!DOCTYPE html> <html lang="en"> <head>

   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>EarthMC Wiki Home</title>
   
   <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
   <style>
       body {
           font-family: Arial, sans-serif;
           background-color: #E6EFF3;
           color: #333;
       }
       .sidebar {
           background-color: #E6EFF3;
           color: black;
           min-height: 100vh;
           padding: 20px;
           width: 250px;
           transition: transform 0.3s ease;
       }
       .sidebar a {
           color: black;
           text-decoration: none;
           display: block;
           margin: 10px 0;
       }


       .sidebar-toggle {
           display: none; /* Hidden by default */
           position: fixed;
           top: 10px;
           left: 10px;
           background-color: #E6EFF3;
           border: none;
           padding: 10px;
           cursor: pointer;
           z-index: 1000; /* Make sure it is on top */
       }
       .close-btn {
           display: none;
           background-color: transparent;
           border: none;
           color: black;
           font-size: 20px;
           cursor: pointer;
           margin-bottom: 10px;
       }


       @media (max-width: 768px) {
           .sidebar {
               transform: translateX(-100%);
               position: fixed;
               top: 0;
               left: 0;
               width: 250px;
               height: 100vh;
               z-index: 1000;
           }
           .sidebar.open {
               transform: translateX(0);
           }
           .sidebar-toggle {
               display: block; 
           }
           .close-btn {
               display: block; 
           }
       }
       .nav-separator {
           border: none;
           border-top: 1px solid #ccc;
           margin: 10px 0;
       }
       .info-navigation,
       .category-navigation,
       .how-to-edit,
       .additional-info {
           background-color: #F0F0F0;
           border-radius: 5px;
           border-width: 1px;
           border-color: #BCBDBD;
           border-style: solid; 
           padding: 10px;
           margin-bottom: 20px;
       }
       .footer {
           margin-top: 20px;
       }
       .small-icon {
           width: 100px;
           height: 100px;
           object-fit: contain; 
       }
       .icon-grid {
           margin-left: 20px;
           padding-top: 10px;
       }
       .server-selection button.active {
           background-color: #7f8c8d;
           color: white;
           border-color: #7f8c8d;
       }
       .icon-grid .row {
           display: flex;
           flex-wrap: wrap;
           margin: -10px; 
       }
       .icon-grid .col-md-2 {
           padding: 10px; 
           flex: 0 0 20%; 
       }
       .icon-grid img {
           max-width: 100%;
           max-height: 90px; 
           display: block;
           object-fit: contain; 
           margin: 0 auto; 
       }
       .button-group {
           display: flex;
           justify-content: left; 
           gap: 10px; 
       }
       .btn {
           padding: 10px 20px; 
           font-size: 16px; 
           border-width: 1px;
           border-radius: 5px; 
           background-color: #D9D9D9; 
           color: black; 
           cursor: pointer; 
           border-color: #767171;
           transition: background-color 0.3s; 
       }
       a {
           text-decoration: none;
           color: black;
       }


       @media (max-width: 768px) {
           .sidebar {
               padding: 10px;
           }
           .icon-grid .col-md-2 {
               flex: 0 0 50%; 
               max-width: 50%;
           }
           .small-icon {
               width: 80px;
               height: 80px;
           }
           .button-group {
               flex-direction: column;
               align-items: center;
           }
       }
       @media (max-width: 576px) {
           .icon-grid .col-md-2 {
               flex: 0 0 100%; 
               max-width: 100%;
           }
           .small-icon {
               width: 60px;
               height: 60px;
           }
           .button-group {
               gap: 5px; 
           }
       }


   </style>

</head> <body onload="changeServer('Aurora')">


       <button class="sidebar-toggle" onclick="toggleSidebar()">☰</button>
       <nav class="sidebar" id="sidebar">
           <button class="close-btn" onclick="toggleSidebar()">✖</button>

Wiki Menu

           <a href="#">Login with discord</a>
           <a href="#">Create a page</a>
           <a href="#">Recent Changes</a>
           <a href="#">Bring to a random page</a>
           
Tools
           <a href="#">What links here</a>
           <a href="#">Related Changes</a>
           <a href="#">Special pages</a>
           <a href="#">Printable version</a>
           <a href="#">Permanent link</a>
           <a href="#">Page Information</a>
       </nav>


               <img src="./src/img/EarthMC.net.png" alt="EarthMC Logo" class="img-fluid" style="max-width:100%; max-height: 300px;" >
                  


Welcome to the official <a href="#">Earthmc Wiki</a>, a mediawiki website that any EMC player can participate in. This wiki aims to establish a collection of all things EMC related.

Log in with your discord by clicking the link in the top right corner. this will allow you to interact with pages.

Dont forget to link your wiki pages to your in-game town or nation with the commands /t set wikipage or /n spawn wikipage wikipage respectively. This will create clickable wiki links by selecting territory on the <a href="#">EarthMC map</a>.

<a href="#">Now lets create an entry</a> to build the EarthMC wiki!

Check out some other important pages:

<a href="#"><img src="./src/img/MCQuestionMark.png" width="20px" height="20px">AMA/FAQ</a><a href="#"><img src="src/img/LinkIcon.png" width="20px" height="20px">Other useful links</a>


EarthMC Info Navigation - Quick access to all relevant EMC info:


<a href="#"><img src="./src/img/Earth.webp" class="img-fluid small-icon">

About EarthMC

</a>
<a href="#"><img src="./src/img/MinecraftGrassBlockLogo.png" class="img-fluid small-icon">

How to join

</a>
<a href="#"><img src="./src/img/MCMap.png" class="img-fluid small-icon">

Live Map

</a>
<a href="#"><img src="./src/img/GoldBlock.png" class="img-fluid small-icon">

Server Economy

</a>
<a href="#"><img src="./src/img/MCSign.png" class="img-fluid small-icon">

Server Chat

</a>
<a href="#"><img src="./src/img/Premium.webp" class="img-fluid small-icon">

Premium Rank

</a>
<a href="#"><img src="./src/img/MCBookshelf.png" class="img-fluid small-icon">

Server Rules

</a>
<a href="#"><img src="./src/img/MCQuickshopIcon.png" class="img-fluid small-icon">

Quick Shops

</a>
<a href="#"><img src="./src/img/MCEnderpearl.png" class="img-fluid small-icon">

Teleporting

</a>
<a href="#"><img src="./src/img/mcMMO.png" class="img-fluid small-icon">

mcMMO

</a>
<a href="#"><img src="./src/img/MEWOverclaimLogo.png" class="img-fluid small-icon">

Overclaim

</a>
<a href="#"><img src="./src/img/MCNetheriteSword.png" class="img-fluid small-icon">

War Info

</a>
<a href="#"><img src="./src/img/MCFireCharge.png" class="img-fluid small-icon">

Celeste

</a>
<a href="#"><img src="./src/img/MCCraftingTable.png" class="img-fluid small-icon">

Custom Crafting

</a>
<a href="#"><img src="./src/img/MCVillageHouse.png" class="img-fluid small-icon">

Plot Information

</a>
<a href="#"><img src="./src/img/MCFlint.png" class="img-fluid small-icon">

Quaters

</a>
<a href="#"><img src="./src/img/MCBell.png" class="img-fluid small-icon">

Town Info

</a>
<a href="#"><img src="./src/img/MCNetherStar.png" class="img-fluid small-icon">

Nation Info

</a>
<a href="#"><img src="./src/img/MCNetherrack.png" class="img-fluid small-icon">

The Nether

</a>
<a href="#"><img src="./src/img/MCpaper.png" class="img-fluid small-icon">

Walkthrough

</a>
<a href="#"><img src="./src/img/EMCWikiReward.png" class="img-fluid small-icon">

Wiki Rewards

</a>

Wiki Category Navigation - Quick access to valuble Information:

Navigate to the categories of the EarthMC wiki using the    Server Selection:

                   <button id="aurora-btn" onclick="changeServer('Aurora')">Aurora</button>
                   <button id="nova-btn" onclick="changeServer('Nova')">Nova</button>
                   <button id="classic-btn" onclick="changeServer('Classic')">Classic</button>

or search for a specific page.

               
                   Your selected category is:  Aurora 
               


How to edit The EarthMC Wiki:


Use the following button to create a wiki page:

                           <button class="btn">Aurora Page Name</button>
                           <button class="btn">Create Page</button>
                       <img src="./src/img/Earth.webp" class="img-fluid small-icon">

Before Making an edit on the wiki, please check our <a>rules</a> for the Wiki, violation of these rules may result in being blocked


Additional Information:


  • You can check out <a href="#">help category</a> to learn more about the way articles should be written
  • <a href="#">Rewards</a> are available in game for contributing to the Wiki
  • All articles are required to follow thier respective templates, please check out the <a href="#">Template Directory</a> page before creating a page
  • Vandalizing articles in any way is not allowed and will result in a ban. Your changes to the wiki will be reverted anyway.
                           <button class="btn">Recent New Page</button>
                           <button class="btn">Recent Changes</button>
                           <button class="btn">Your Watchlist</button>
                           <button class="btn" style="padding-left: 60px; padding-right: 60px;">Log</button>
                           <button class="btn">Statistics</button>



   <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
   <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
   <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
   <script>

const servers = {

   Aurora: [
       { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
       { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
       { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
       { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
       { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
       { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
       { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
       { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
       { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
       { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
       
      
   ],
   Nova: [
   { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
       { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
       { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
       { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
       { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
       { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
       { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
       { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
       { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
       { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
   ],
   Classic: [
   { src: './src/img/MCBell.png', title: 'Towns', link: '#' },
       { src: './src/img/MCNetherStar.png', title: 'Nations', link: '#' },
       { src: './src/img/MCShield.png', title: 'Alliances', link: '#' },
       { src: './src/img/MCDiamondSword.webp', title: 'Wars', link: '#' },
       { src: './src/img/MCPlayerhead.png', title: 'Players', link: '#' },
       { src: './src/img/MCChest.png', title: 'Miscellaneous', link: '#' },
       { src: './src/img/minecraftbow.webp', title: 'Battles', link: '#' },
       { src: './src/img/MCFlintandsteal.png', title: 'Conflicts', link: '#' },
       { src: './src/img/MCGoldIngot.png', title: 'Businesses', link: '#' },
       { src: './src/img/MCBookandQuill.png', title: 'Organizations', link: '#' },
   ]

};


function changeServer(serverName) {

   const container = document.getElementById('icon-container');
   container.innerHTML = ; 
   const serverNameElem = document.getElementById('server-name');
   serverNameElem.textContent = serverName;


   document.querySelectorAll('.server-selection button').forEach(button => {
       button.classList.remove('active');
   });
   document.getElementById(`${serverName.toLowerCase()}-btn`).classList.add('active');
   const icons = servers[serverName];
   let rowDiv = document.createElement('div');
   rowDiv.className = 'row'; 
   icons.forEach((icon, index) => {
       if (index > 0 && index % 5 === 0) {
           container.appendChild(rowDiv); 
           rowDiv = document.createElement('div'); 
           rowDiv.className = 'row'; 
       }
       const colDiv = document.createElement('div');
       colDiv.className = 'col-md-2'; 
   
       const a = document.createElement('a');
       a.href = icon.link; 
       a.title = `More about ${icon.title}`;
       const img = document.createElement('img');
       img.src = icon.src;
       img.className = 'img-fluid';
       img.alt = icon.title;
       img.width = 200;
       img.height = 200;
       const p = document.createElement('p');
       p.textContent = `${icon.title}`;
       a.appendChild(img);
       a.appendChild(p);
       colDiv.appendChild(a);
       rowDiv.appendChild(colDiv);
   });
   container.appendChild(rowDiv); 

}

function toggleSidebar() {

   const sidebar = document.getElementById('sidebar');
   sidebar.classList.toggle('open');

}

   </script>

</body> </html>