GithubHelp home page GithubHelp logo

Form: Update Base about eisvana-census HOT 2 CLOSED

Lenni009 avatar Lenni009 commented on July 21, 2024
Form: Update Base

from eisvana-census.

Comments (2)

Lenni009 avatar Lenni009 commented on July 21, 2024

Method for getting all the infobox content (some is not saved in cargo):

https://nomanssky.fandom.com/api.php?action=parse&format=json&origin=*&page=Eisvana%20Research%20Outpost&prop=sections%7Cwikitext&section=0

returns

{
    "parse": {
        "title": "Eisvana Research Outpost",
        "pageid": 546876,
        "sections": [],
        "wikitext": {
            "*": "{{Version|Echoes}}\n{{Eisvana}}\n{{Base infobox\n| name = Eisvana Research Outpost\n| image = 20230928192154_1.jpg\n| civilized = Eisvana\n| researchteam = Eisvana Wiki Scholars\n| builderlink = Lenni009\n| builder =\n| galaxy = Eissentam\n| region = Uskabar\n| system = EV6-30 Cadiaue-Omf\n| planet = Sidenh Alpha\n| moon =\n| axes = -11.28, +95.92\n| coordinates = {{Glyphs2Coords|6030A21107FE}}\n| portalglyphs = 6030A21107FE\n| type = Residential\n| mode = Permadeath\n| platform = PC\n| release = Echoes\n| farm = No\n| geobay = No\n| landingpad = Yes\n| arena = No\n| terminal = Yes\n| racetrack = No\n| censusplayer = Lenni\n| censusreddit = Lenni009\n| censusdiscord = lenni009\n| censusfriend =\n| censusarrival = 2023/09/25\n| censusrenewal = 2023, 2024\n| censusshow = Y\n}}\n'''Eisvana Research Outpost''' is a player base."
        }
    }
}

Which can then be piped into parseWikiTemplate to get an object representation of the infobox in the shape of Record<string, string>

from eisvana-census.

Lenni009 avatar Lenni009 commented on July 21, 2024

Make a new component DynamicSections that checks whether there are any unexpected h2 sections, and then adds those to the editor as well.

from eisvana-census.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.