League of Legends Wiki

BryghtShadow

Administrator
10,995 Edits since joining this wiki
February 9, 2012
23.254.0.186
  Loading editor
  • Hello. I'm currently endeavoring to establishing a Manual of Style for the wiki's article management templates, but to fulfill my ambitions, more ambox colors must be added, if they haven't already. I see this as an opportunity to organize a haphazard element in the wiki's editing style, and perhaps add flavor to the wiki's identity.

      Loading editor
    • 23.254.0.186
        Loading editor
  • May you review my application?

      Loading editor
    • 23.254.0.186
        Loading editor
  • Hi their I was wondering if you could change the title from the energy regeneration cell? From "Energy" to "Energy regeneration" see Lee Sin:

    <a href="/wiki/Energy" title="Energy">Energy regen.</a>

    to

    <a href="/wiki/Energy" title="Energy regeneration">Energy regen.</a>

    I'm currently working on an tool named LoLBox. To expand the options of the infobox. Offcourse I bounced against an fell problems like tagging I decide to script an fell classes too it so the script could work faster ones it's loaded. I used the title to detect the location and it works perfectly with exeption of the energy regen cell where the title is the same as the cell above:

    <a href="/wiki/Energy" title="Energy">Energy</a>

    Now I was wondering if you couldn't include those markings in the infobox? Than I don't have to code markings with scripting. I'm currently using this code for the markings:

          //Prepare Arrays
          var name = ["Health","Health regeneration","Mana","Mana regeneration", "Range","Attack damage","Attack speed","Armor","Magic resistance","Movement speed"];
     
          //Def Classes
          $.each(name, function( index, val ) {
     
             loc = $( "#champion_info-lower td span a[title='"+ val + "']").parent().parent().next();
             valueCode = val.toLowerCase().replace(/ /g,"_");
             value = loc.html();
             $( loc ).addClass( "data-" + valueCode );
             defCode = value.replace(/\(.*?\)/, '<span class="increase">$&</span>');
             $(".data-" + valueCode).html(defCode);
     
          });

    What give an result like this:

    <td class="data-health">
       428
       <span class="increase">
          (+85)
       </span>
    </td>

    or this:

    <td class="data-attack_damage">
       46.5
       <span class="increase">
          (+3)
       </span>
    </td>
      Loading editor
    • Sure thing.

      The titles in anchors are automatically set to the name of the href. So I've linked it to "Energy regeneration" which is a redirect. (We don't have a dedicated article for Energy regeneration)

        Loading editor
    • Thx, I'm happy that I don't have to code another exeption for that one.

        Loading editor
    • I came with another idea for the LoLBox tool. Since whe are able to load an part of an page with jQuery I'm planning to code an compair tool into it. An example:

      1. Select an champion you want to compair stats with
      2. The values in the infobox now have an different color (green = highest value, red = lowest, orange = something in between)

      This way it would be possible to check what adc has the highest basedamage including when scaling in level. For example an adc could have the highest AD damage on level 1 but the other adc could have the highest AD damage on level 18.

      I'm currently also trying to load pages like List of champions' armor & collecting the min & max values from it. I'm currently searching if it's worth the loading but I'm just in the testing fase.

      For these reason I think it would be easyer to call the data from the infoboxes if the marking was implemented in the html so I don't have to repeat the same code every time an element is called. Like I explaned before. Currently this code add the html markings.

      //Prepare Arrays
            var name = ["Health","Health regeneration","Mana","Mana regeneration","Range","Attack damage","Attack speed","Armor","Magic resistance","Movement speed", "Energy", "Energy regeneration"];
       
            //Def Classes
            $.each(name, function( index, val ) {
       
               loc = $( "#champion_info-lower td span a[title='"+ val + "']").parent().parent().next();
               valueCode = val.toLowerCase().replace(/ /g,"_");
               value = loc.html();
               if (value == undefined) {
               }
               else
               {
                  $( loc ).addClass( "data-" + valueCode );
                  defCode = value.replace(/\(.*?\)/, '<span class="increase">$&</span>');
                  $(".data-" + valueCode).html(defCode);
               }
       
            });

      So the changes that I suggest to the infobox are:

      <td>
         428 (+85)
      </td>

      to this:

      <td class="data-health">
         428
         <span class="increase">
            (+85)
         </span>
      </td>

      So:

      • td.data-health
      • td.data-health_regeneration
      • td.data-mana
      • td.data-mana_regeneration
      • td.data-attack_damage
      • td.data-attack_speed
      • td.data-magic_resistance
      • td.data-movement_speed
      • td.data-energy
      • td.data-energy_regeneration
      • and an span marking arround every "(...)" value
        Loading editor
    • 23.254.0.186
        Loading editor
  • Creating a godsheet may not be the most elegant solution, but here's the CSS for the background images: User:Emptylord/common.css. (It have it implemented here.)

    I'm not sure if it's possible, but feel free to move that article to something like "User:Emptylord/backdrop.css" and then just add "@import User:Emptylord/backdrop.css" - I don't mind burdening the responsibility for maintaining it when new champs come out (saves you the effort; also, any mod would be able to edit it without having access to the rest of the css).

    Overall, Javascript would probably be more elegant... especially if you can stick it in a template like
    {{background|image=Kog'Maw Monarch}}
    so users can implement backgrounds wherever they please.
      Loading editor
    • View all 10 replies
    • And that just works?

        Loading editor
    • Yep, it will output the URL. It's then up to someone as to what they want to do with the URL. The code that uses the image has to be put within the callback for $.getJSON().done(). Usage of the URL is then at the mercy of the asynchronous callback of the API. Image display is at the mercy of network speed or cache. (One reason I'm against this whole idea. It's just fluff.)

        Loading editor
    • 23.254.0.186
        Loading editor
  • I went ahead and mark the files for runes 21px21px21px for deletion, seeing as these seal(4) are duplicates of seal(2).

    Just letting you know ;)

      Loading editor
  • Do you think you could modify Template:Champion info to use the parameter role for primary champion role, role2 instead of alttype for secondary role, and return the function of herotype for categorizing champions by abilities / effects?

      Loading editor
    • 23.254.0.186
        Loading editor
    • 23.254.0.186
        Loading editor
  • So, I decided to lay some groundwork for something for a change instead of just letting others get around to it and I need your guidance.

    User:NeonSpotlight/Data list is the list of what I've done so far. Don't mind that it's written in a persuasive tone, that's for if I decide to run it by the forums.

    Some issues/things:

    • Having to use a different template for every stat page (IE: Health item template)
    • I have no idea how to work ifvariables and whatnot so, for instance, Sheen is buggy looking because it doesn't have all the stats that Trinity Force does.
    • Potentially making the item infobox work with it
      Loading editor
  • I'm trying to create an abusefilter filter for non-admins moving, removing and restoring things in the Board Thread namespace.

    Why do these two edits get flagged as "action == delete" despite their action being listed as edit? http://prntscr.com/2rq0gz

    This is the filter: http://leagueoflegends.wikia.com/wiki/Special:AbuseFilter/10

      Loading editor
  • http://leagueoflegends.wikia.com/wiki/User_blog:NeonSpotlight/NeonSpotlight%27s_Compendium_of_Editorial_Knowledge_V2?oldid=1751316

    The image section completely breaks the width of the table and I'm awful at tables

    Also, I like your big talk block thing :3

      Loading editor
See archived talk page
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message

Around Wikia's network

Random Wiki