FANDOM

Albert Tasmani

  • I live in Sabadell (Catalonia)
  • I was born on July 6
A FANDOM user
  Loading editor
  • Hi Albert,

    I hope you don’t mind. I added a code example to your OMP Leaderboard test template ... User:Albert Tasmani/OMP LeaderboardV2

    I used the test condition “true” but you could use any value as long as the #switch and #ifexpr values match.

    Best wishes,

    Nick

      Loading editor
    • View all 8 replies
    • Looks like you got it working.

        Loading editor
    • Yes, thank you!

      I'm 99% sure that the error came from my browser (chrome) or my old laptop. You gotta see it, hahah, it's just half-laptop. No screen.

      Now I'll try to clean a bit all of that mess. So it will be easier to find what has to be edited.

        Loading editor
    • A FANDOM user
        Loading editor
  • I know you like using arrays, check out my revised calendar page.

      Loading editor
  • Hi Albert,

    Thanks for your comments regarding the v8.4 data, they prompted me to return to arrays which I've been playing with for a few hours.

    I knocked up a Base data array.

    Then I copied the Cars (Base Stats) page and row template to my user area and re-coded them to reference the array.

    Probably not as elegant as your array code but it's a first pass to see if it works ok.

    Any thoughts?

    Nick

      Loading editor
    • View all 9 replies
    • Having an external spreadsheet and then creating arrays with the required data is really no different to what I currently do   i.e. create templated data for certain pages where I have only the required data.

      The ideal solution would be one common store of data which could be -accessed to retrieve only the required data ... we could call it ... a database!!!

        Loading editor
    • Hahahahahah That's it!

        Loading editor
    • A FANDOM user
        Loading editor
  • Sorry guys. Not my intention.

      Loading editor
    • A FANDOM user
        Loading editor
  • I see you went for a single-page format. Definitely easier to edit.

    I made some small tweaks

    • Variable definitions, table not required.
    • Refresh line background-colour same as header.
    • Added end-of-table line to schedule (also on WTTT Schedule page).

    but feel free to undo the changes if you don’t like them!

      Loading editor
    • View all 7 replies
    • Ouch, true!!

      I didn't see the "extra info" added daily. I was only looking at the highlighted stuff.

      Thanks mate.

        Loading editor
    • My pleasure.

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi Albert.

    I hope you’re well.

    Interesting (and interested in) what you’re doing.

    I don’t know how the wiki works regarding repeated calls to the same template but given my experience with variables not being retained I suspect it refreshes the template data, I know that variables are localised, but a variable defined in script A can be referenced in script B when called from script A, so it might be more efficient if you populate your car data array in the calling script.

    See my versions of your scripts

    I hope you don’t mind me tinkering in your area!

    Have a good day,

    Nick

      Loading editor
  • Suggested change. Revert if you don’t like it.

      Loading editor
  • Hi Albert.

    I hope you’re well.

    I’ve bern tinkering again! This time with a Automatic OMP Track Schedule! Using the details from your OMP Tracks Cycle page I created a template which is passed a day-number (1-17) which returns the track details for the day. I then extended it to output the full OMP Schedule table row including the date and track details.

    I’ve edited the template to include a automatically generated table example below the current table so you can compare the results and see how easy it is to use.

    Let me know what you think.

    Nick

      Loading editor
    • View all 20 replies
    • Yeah, I got it. But does everybody? IDK

      Do you want me to remove the purge button?

        Loading editor
    • No, of course not! I was just mentioning that the clock does the same thing. As you wrote, not everybody has it or knows that. It's your project page so it's not for me to tell you what to do with it. Remember, I'm just trying to help.

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi Albert. Sorry. I didn't know you'd also done one! I thought you were asking if/suggesting that one should be created. You decide which you prefer and let me know. Nick

      Loading editor
    • Hahahahah, don't worry.

      I wanted you to take a look to it before publishing it, because it has these

      <tabview> things that I find very usefull.

      And better if we take yours, because mine is poiting to my user area and.. I don't know. It was just a test.

        Loading editor
    • The tabview is cool, I think you used it on another page, yes?

      Sorry to step on your toes, I really didn't know that you'd already created a page.

      On the plus side, we can just copy the page and change the links and it will be ready for the Silverstone TT.

        Loading editor
    • Yeahright. The way I did it doesn't need much coding. It's very very basic. The templates strings are long because of the style formatting, otherwise they would be just a few words.

      As you can see there's nothing automatic. Users have to type everything. All in all quite simple. That cars numbering... funny.

      And yes, that tabview function was for the WTTT&OMP Schedule pages, but I didn't made it because some pages should had been changed, and blah, blah, blah. Not needed.

      The tests are still in my sanboxes: Sandbox 1

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi Albert.

    I hope you’re well and had a good Christmas.

    I don’t know if you saw that I updated the the Challenge templates to allow for Curr.M.Dollars.New.80x80.Shifted

    and replaced your template with the standard one on the Formula 1® Gran Premio d'Italia™ 2019 page, I hope that was ok.

    I like your Garage page. I noticed that you’re using a shortened upgrade string for the F1 cars. The number of upgrades for F1 cars (both the number of types and the number of stages) has caused problems, so I suggested a (coding) solution which retains the standard 7-character upgrade string, see Template:UpgradeStringBuild. This has yet to be approved by the whole admin team but I think it will be ok so you’re safe to use it, I am already using it on the Clsssic Upgrades pages e.g. RR3 Wiki:Upgrades Section F1. If another format is decided on, I will update the template.

    Nick

      Loading editor
    • View all 7 replies
    • You can colorize them too.

      You can use these Unicode numbers or you can create yourself an icon for each number. If you do that you can adjust the size and visibility of the number as you wish.

        Loading editor
    • Ooor..

      You can assign a color for each type of upgrade:

      5-10-5-10 = 510510 (chaotic) = 510510

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.