Closed Lenni009 closed 7 months ago
Example API call:
https://nomanssky.fandom.com/api.php?action=cargoquery&format=json&origin=*&tables=Bases&fields=Name&where=CensusPlayer%3D%22Binder198%22%20AND%20Civilized%3D%22Eisvana%22
Display a "Chance Census Base" button on all players, since we don't know if they have multiple bases.
If they click it, fire the query.
If the query returns only one base, display a "Create New Page" button (like the "New" button on the player card)
Query all bases of a user from the wiki that were built in Eisvana Display that list Give user the option to choose one Let them give a reason (in case they deleted the old one)
Don't show the button if there is only one base available.
The button could be on the census table page. The request should only fired when they actively click on the button, otherwise we end up spamming the API.