<!DOCTYPE html>
<html lang="en">
<head>
<title>Wiki | Fandom</title>
<title>Generate</title>
</head>
What's on your mind?
TEXT
POLL
<!DOCTYPE html>
<html lang="en">
<head>
<title>Wiki | Fandom</title>
<title>Generate</title>
</head>
Hello! I'm not very knowledgeable on Lua modules and I hope this is the right place to ask, but I adapted the Quote module to use on my wiki here, mostly by using the code found on the For All Mankind wiki.
My question now is, is there a way to tweak the original Quote module/template so that it matches up with another quote template I have on my wiki? Basically, I want the source to show up as [src] in brackets, and I want to be able to add audio files as well.
Any help would be greatly appreciated!
Scribunto offers a simple REPL in the module edit page to quickly test changes made to module code, but it doesn't take actual template variables as inputs, and it's hard to replicate conditions like transclusion. With Wikitext and ParserFunctions, we have Special:ExpandTemplates to do this quicker than repeatedly editing and saving a page, but no such equivalent with Lua.
Is there a method or neat "trick" to feed page and template parameter contents to a Scribunto module without repeatedly editing/saving a page? As someone that's still learning Lua, any help is appreciated
How do I make an online tag like this in profile?
Hello,
I am wondering if you can connect multiple lua modules to one template. On my wiki, we use lua modules for references. We have a module with inputs and it connects to a reference template. However, the module data page is getting kind of long and I am wondering if I can split the data page into multiple pages but still have it all connect to the same template output?
I don't struggle with anything in specifics, however I'd just like an introduction to it, not sure how to categorise it but I believe this should go in scribunto help?
So basically i have a lua module ABC, invoked by a template T.
And then, some other main pages call the template T to invoke module ABC.
So,
* frame:getTitle() gives the title of the Module, i.e. ABC;
* frame:getParent():getTitle() gives the title of the Template, i.e. T.
But how can i get the title of the page calling the template T (the parent of T?)
I know most of the time, mw.Title.getCurrentTitle() simply works. But sometimes, if page1 is trunscluding page2, and page2 is calling the template T, then mw.Title.getCurrentTitle() gives me the title of page1, but i want the title of page2.
Is there any way to get the title of page2?
Thanks in advance!
Can I use lua modules from one wiki in the family on another directly via language code or something or is it only possible through posting it on the Dev wiki?
Same question with JS
Hey, I've created a script to display icons in a infobox based on the value inputted and if the parameter is not used, it still display an icon. How do I fix that?
Here's a page with that error.
This is the script and template.
(If you're curious why there is an extra #switch in that template, it's because I had trouble implementing that in the script.)
I'm looking to create a custom input box on Fandom and am open to using whatever tools are available—whether it's Wikitext, JavaScript, Lua, or CSS. Specifically, I want to build a calculator that calculates and displays a percentage (formatted as 0.00%) based on the numerical difference between two user-provided values.
Could anyone provide guidance on how to implement this, considering Fandom’s limitations and supported features? I’d appreciate recommendations on the best way to achieve this functionality.
I’ve been trying to customize the script in the lostwave’s finest wiki but i can’t seem to find how or where to customize it.
Why is my
{{Tabber}}Not working on mobile? I installed the
On my wiki, but it comes back blank on my wiki's page when I'm on mobile. But, that shouldn't be the case, right? Since it says it is mobile compatible... When I checked my page with the browser's dev tools, I noticed it created a span with the class: wds-is-hidden
I've tried some things to test why this was happening, but I only came back empty handed...
The page in question is this one:
Can someone help me identify what is happening with the mobile? Because on PC it works just fine...
Thank you.
From what I've read if I have a template that calls a module I should be able to get the args from the template that the module's function is invoked in any idea why this doesn't work?
local template = frame:getParent()
local arg1 = template.args[1]Is there any way for a Lua module to check if a page exists given the name of said page? I know there is a parser function to do just that, but that seems like a messy way of conditionally linking text.
I was looking their profile and their ip got leaked for some reason
Is there a Lua replacement which will make it look different?
The pages on my wiki are all clustered into ~ 100 subcategories displayed on a one major category page.
The "Classic Categories" view of that major category page looks great, with the subcategories each showing a count of the number of pages.
But as we know ordinary visitors accessing a wiki will see the Dynamic Categories view instead.
In that view, each of the 100 items on that page has "Category:" at the start of their name, and none of them will show a count of pages.
What can I do about this?
I don't mind too much if the page is cached or needs to be manually refreshed.
Yes, the Dynamic Category view does also have that stupid gallery of random pages not in this category, but that's less of an issue.
I have tried out the <forum> tag to display all the subcategories in the major category, but that puts them in order of creation.
It's only really 1 page, so I'm sceptical about the need for something like DPL
We have a module set up on our wiki to list characters, though some names are so long that they cause the template to be off center. I was wondering if there was a way to dynamically change the text size for longer names within the module's code, to keep them within the boundaries.
I'm making an infobox wherein I want to be able to consistently link to a social media site.
Some inputs are simply of the format of a username, while other inputs are of the "https://twitter.com/something" type. There's also some other pages where it's "@something". And I was thinking I could use Lua to filter out either the Twitter domain, or the @ symbol (or ideally, also the URL with a format such that there's a "www." inside as well), if any are in the input.
I was doing some tests earlier on my user page, and thing is, the only way I could find {{String}} being able to remove all three is by stacking them, which sounds horribly inefficient.
Quantifiers like `?` for the patterns accepted by the String template, and by upstream Lua, apparently can only apply to individual characters, so it doesn't detect whenever I try to insert the "www." bit inside `(? )?` syntax.
I was thinking the domain should be placed inside parentheses and then be |-able with the @ symbol, thus `^(https://(?:www%.)?twitter%.com/|@)`, but then that pipe character conflicts with how MediaWiki templates are invoked! And I don't know how to escape it... replacing it with {{!}} doesn't seem to work, and I can get why that is.
So that leads me to stacking String regex-filtering. Is there a better way?
I wrote a script in LUA in order to generate a table.
I have implemented it on the page:
https://ikariam.fandom.com/el/wiki/Ακαδημία
And it works fine.
But when I tried to implement it on this page:
https://ikariam.fandom.com/el/wiki/Αλάνα
I got an error in DevTools that says:
<!-- WARNING: template omitted, post-expand include size too large -->Because I am new to LUA scripting I don't know how to go through with it.
Any help is welcomed.