Brand MU Day
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Learning to Code - A Sprite Break

    Scheduled Pinned Locked Moved Helping Hands
    85 Posts 28 Posters 6.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PolkP
      Polk @Roz
      last edited by

      @Roz Mediawiki tries VERY Hard to cache Common.css, and tells your browser to do the same, yes.

      As for hosting I recommend Amazon Lightsail. Cheap, reliable.

      1 Reply Last reply Reply Quote 0
      • C
        catzilla
        last edited by

        I’m back for more coding help! Thanks to everyone so far. Roz in particular!

        I’ve looked at several links and nothing I do works right. On my wiki, how do I get my Table of Contents to float on the left of the text? I’ve looked at https://www.mediawiki.org/wiki/Template:TOC and other links but nothing is working.

        Here’s the CSS I put in my wiki skin page:

        0b3c14ed-6775-4812-84c9-2e00ffd1acee-image.png

        RozR PolkP 2 Replies Last reply Reply Quote 0
        • RozR
          Roz @catzilla
          last edited by

          @catzilla I think I’d have to see the skin in action to inspect to find the right element/property/etc. to put in your CSS. Different skins might have things set up slightly differently.

          she/her | playlist

          1 Reply Last reply Reply Quote 1
          • PolkP
            Polk @catzilla
            last edited by

            @catzilla Where did you apply the changes? And did you flush all the relevant caches?

            1 Reply Last reply Reply Quote 1
            • C
              catzilla
              last edited by

              @Roz Here is the css page for the skin that I’ve been messing with. and the main page I’ve been messing with to try to get it to the left.

              @Polk Changes were applied to the css page and the one page as described above. I tried making some template page but it only borked the Recent Changes (and similar pages).

              PolkP 1 Reply Last reply Reply Quote 0
              • PolkP
                Polk @catzilla
                last edited by

                @catzilla To make site-wide CSS you usually want to drop your CSS rules into the page: MediaWiki:Common.css

                I’d try that.

                C RozR 2 Replies Last reply Reply Quote 0
                • C
                  catzilla @Polk
                  last edited by

                  @Polk Still nothing. 😞 I know I’m missing something somewhere. CSS editing will change everything about the Table of Contents except make it float.

                  E 1 Reply Last reply Reply Quote 0
                  • RozR
                    Roz @Polk
                    last edited by

                    @Polk said in Learning to Code - A Sprite Break:

                    @catzilla To make site-wide CSS you usually want to drop your CSS rules into the page: MediaWiki:Common.css

                    You can add it to either – Common.css will apply across all skins (if you have multiple skins installed), while the Skin.css file will apply things sitewide for just that skin.

                    @catzilla said in Learning to Code - A Sprite Break:

                    @Roz Here is the css page for the skin that I’ve been messing with. and the main page I’ve been messing with to try to get it to the left.

                    Thank you! One tip I have for editing CSS is to explore your browser’s Inspect tool, which usually gives you the ability to mess around a little with CSS in a sort of live view to see what might work.

                    Using this, I was able to determine that you may be wanting to apply your float on .toc rather than #toc. But you’ll also want to adjust your right margin on #toc. See the two CSS items kind of marked in green here, those are the changes I made:

                    00cfcff0-aaea-4498-a1ea-54ac253d7798-image.png

                    This should work either on your Common.css page OR your Timeless.css page. (If you only intend for one skin to be active/used, then it doesn’t really matter.)

                    she/her | playlist

                    1 Reply Last reply Reply Quote 1
                    • E
                      Eleret @catzilla
                      last edited by

                      @catzilla Looking at this with otherwise fresh eyes, I think you have a typo: “float: left !imporant”

                      RozR 1 Reply Last reply Reply Quote 1
                      • RozR
                        Roz @Eleret
                        last edited by

                        @Eleret said in Learning to Code - A Sprite Break:

                        @catzilla Looking at this with otherwise fresh eyes, I think you have a typo: “float: left !imporant”

                        Eleret is right, it might actually still work on #toc if you fix that typo.

                        she/her | playlist

                        PolkP 1 Reply Last reply Reply Quote 1
                        • PolkP
                          Polk @Roz
                          last edited by

                          @Roz hmm I’d love to see the actual page, this evening I Could take a few minutes and see.

                          1 Reply Last reply Reply Quote 0
                          • C
                            catzilla
                            last edited by

                            Regarding the spelling error…

                            scorpio why didn't i think

                            Thank you guys for catching that!

                            I’ve gotten it to float left! Margin is still wonky but I’ll hammer at that and report back later.

                            Thank you guys all again for the help so far. 🙂

                            G 1 Reply Last reply Reply Quote 1
                            • RenR
                              Ren
                              last edited by

                              Misread the title of this thread as ‘Learning to Code - A Spite Break’ and it seemed 100% appropriate. I have definitely needed many a spite break while learning to code.

                              They/Them

                              1 Reply Last reply Reply Quote 2
                              • AposA
                                Apos
                                last edited by

                                One thing I’ve found extremely useful has been ChatGPT, giving it prompts like, ‘ChatGPT, let me show you some of my code and tell me what I’m doing wrong’ the answers are usually spot on. It’s a pretty good resource. If anyone ever feels stuck or is getting started, I strongly recommend trying it, even if you should always take answers with a grain of salt and know it can be confidently wrong sometimes.

                                PavelP FaradayF 2 Replies Last reply Reply Quote 5
                                • PavelP
                                  Pavel @Apos
                                  last edited by

                                  @Apos said in Learning to Code - A Sprite Break:

                                  it can be confidently wrong sometimes

                                  Great, now AI is coming for my job.

                                  He/Him. Opinions and views are solely my own unless specifically stated otherwise.
                                  BE AN ADULT

                                  1 Reply Last reply Reply Quote 2
                                  • FaradayF
                                    Faraday @Apos
                                    last edited by

                                    @Apos said in Learning to Code - A Sprite Break:

                                    I strongly recommend trying it, even if you should always take answers with a grain of salt and know it can be confidently wrong sometimes.

                                    It may be helpful at times, but not only is it confidently wrong, it is often wrong in very subtle ways that are not immediately obvious or easily tested. That’s the reason AI-generated answers were banned from coding questions on StackOverflow.

                                    AposA 1 Reply Last reply Reply Quote 0
                                    • shit-piss-loveS
                                      shit-piss-love
                                      last edited by

                                      What I like ChatGPT for is learning new frameworks and tech. I treat it like someone who already knows how the thing works and ask it questions. As long as it’s stuff that is generally available in documentation I find that it does a great job of finding and regurgitating even if I got the terminology not completely right.

                                      IDK if I’d use it to write code for me though. Have not tried.

                                      PavelP 1 Reply Last reply Reply Quote 0
                                      • PavelP
                                        Pavel @shit-piss-love
                                        last edited by

                                        @shit-piss-love said in Learning to Code - A Sprite Break:

                                        IDK if I’d use it to write code for me though. Have not tried.

                                        Wasn’t there something on/with/in/around/orbiting loosely GitHub doing this kind of thing?

                                        He/Him. Opinions and views are solely my own unless specifically stated otherwise.
                                        BE AN ADULT

                                        shit-piss-loveS 1 Reply Last reply Reply Quote 0
                                        • shit-piss-loveS
                                          shit-piss-love @Pavel
                                          last edited by

                                          @Pavel said in Learning to Code - A Sprite Break:

                                          @shit-piss-love said in Learning to Code - A Sprite Break:

                                          IDK if I’d use it to write code for me though. Have not tried.

                                          Wasn’t there something on/with/in/around/orbiting loosely GitHub doing this kind of thing?

                                          Yeah a while after M$ bought github people started noticing VSCode’s autopilot feature suggesting very detailed code segments, and there were claims that some people recognized snippets from their company’s private repos. tldr; M$ is using private repos to train their AI.

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            Gasboy @catzilla
                                            last edited by

                                            @catzilla If there’s one thing I think all coders have run into, it’s a missing/extra thing, and beating one’s head against the wall trying to figure out why the code isn’t working properly…

                                            Then the hole you make in the wall after you find that damned thing… xD

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post