Template talk:Country Stats/Core

From eRepublik Official Wiki
Jump to: navigation, search

Styling update?

As Daniel Dimow said 2 years in the Template talk:Country Stats, this template needs graphical change in order to reflect the in-game menu. I was about to try it, but I see that it's written in HTML format and the CSS code is in the "country-stats" class which we can't view/edit. That means only admins can do it (looking @Andycro: ( ͡° ͜ʖ ͡°))--Icon-Greece.png Jimkats1| | profile 16:21, 24 November 2018 (PST)

@Jimkats1: I don't really understand coding, so apologies for a noobish question, but would it be possible for you to make the template in a way that suits you (meaning: from the scratch)? Also: wiki admins can't help with that, you would need game devs, and I really doubt they have the time for this. --Icon-Montenegro.png BogiTalk 10:49, 25 November 2018 (PST)
@Jimkats1: I agree with @Bogi: If you are up for playing in your sandbox and rewrite it, feel free to do so. Because, I think that the only one who can go "deeper" behind the scenes of top secret and hidden links could be @Gucio: --AndyCro Icon-Croatia.png Do you need assistance? Then ask me! ;)) 15:11, 26 November 2018 (PST)
@Jimkats1 and Andycro: Maybe the solution could be here: MediaWiki:Common.css? --Icon-Montenegro.png BogiTalk 10:12, 26 December 2018 (PST)
Hmm, indeed we can use that to to bypass the source CSS. I don't know though if we can change all of the properties we want, because iirc some CSS properties can't be implemented as HTML attributes. --Icon-Greece.png Jimkats1 | profile 16:40, 26 December 2018 (PST)
/* country stats */
ul.country-stats {
    border-bottom: 1px solid #ccc;
    clear: both;
    display: inline;
    float: left;
    padding-bottom: 1px;
    width: 99%;
    list-style: none outside none;
}

ul.country-stats li {
    float: left;
    height: 32px;
    margin-right: 1px;
    position: relative;
    background-color: #efefef;
    border-radius: 6px 6px 0px 0px;
}
ul.country-stats li a, ul.country-stats li strong.selflink {
    color: #7f7f7f;
    cursor: pointer;
    float: left;
    height: 32px;
    line-height: 32px;
    padding-right: 25px;
    padding-left: 25px;
    text-decoration: none;
}

ul.country-stats li:hover a, ul.country-stats li:hover strong.selflink, ul.country-stats li.on a, ul.country-stats li.on strong.selflink {
    color: #d8d8d8;
    background-color: #535353;
    border-radius: 6px 6px 0px 0px;
}

ul.country-stats li strong.selflink {
    font-weight: normal;
}
I just thought that the part above might be linked to ul class="country-stats". I don't know any coding, but I would try to play with this if it was a template that I could test in my sandbox; however editing this would probably kill wiki for a while, so I better leave it to a pro @Jimkats1: :D --Icon-Montenegro.png BogiTalk 04:27, 27 December 2018 (PST)
@Bogi: If you test it in your sandbox it should not kill the wiki, as it is only used on one page - if you would be testing around on page that is linked with 100+ pages... Yup, that could kill this wiki :D --AndyCro Icon-Croatia.png Do you need assistance? Then ask me! ;)) 11:48, 27 December 2018 (PST)