Jump to content

Wikipedia talk:Lua

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Help talk:Lua)

Localization help needed for Module:Protection banner

[edit]
Extended content

Hello, I want to import Module:Protection banner on 18:11, 24 January 2025 (UTC)[reply]

you may want to look at he:Module:תרגום יחידה. Basically it's a wrapper that accepts a module, function and a translation table names, and using the translation table invokes the function with a clone of original frame, augmented with translated params. For more details please read the documentation at the top. If i correctly understood your requirements, i think this module matches them to a T.
Peace קיפודנחש (aka kipod) (talk) 15:51, 25 January 2025 (UTC)[reply]
Thank you for your answer. I will take a look at the code you provided.--Namoroka (talk) 15:52, 25 January 2025 (UTC)[reply]
oh, i forgot the disclaimer: i wrote it and tested it, but as far as i know, it is not actually used in production - I'm not very good at promoting my work. I can't guarantee you'll be happy, but i stil give it at least 82.73% chance.
Peace קיפודנחש (aka kipod) (talk) 15:55, 25 January 2025 (UTC)[reply]
An 82.73% probability is good enough for me. lol --Namoroka (talk) 15:57, 25 January 2025 (UTC)[reply]
oh, one more thing: if you do adopt it, please let me know - i haven't bothered to generate WD item for this module, but if it gets migrated to other wikis i should.
Peace קיפודנחש (aka kipod) (talk) 16:20, 25 January 2025 (UTC)[reply]
I checked your module, and while it can be used for translating other modules, it seems that it cannot be used for Module:Protection banner since the value also needs to be translated.--Namoroka (talk) 11:22, 27 January 2025 (UTC)[reply]

Module calling Wikidata to list European parties' seats in various institutions

[edit]

Hi,

Total newbie to Lua here (but happy to discover)! Here, I asked for help to make a template that would grab information from Wikidata (using the wikidata module and expressions using that module) based on two arguments (the name of the institution and the name of a party -- or some wildcards).

@Ahecht kindly responded with a proposal, but saying that the conditional structure I was looking for would be better achieved in Lua. Since this looked like a good opportunity to make something better and to learn, I thought I would come here and ask for support.

I won't recap the whole proposal here for the sake of brevity (but the above link should be clear enough, hopefully), but I welcome ideas and pointers! Thanks a lot in advance. Julius Schwarz (talk) 19:32, 17 March 2025 (UTC)[reply]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant