Topic on Project:Support desk

Using copy of Wikipedia template 'Tlg' on fandom.com yields Lua error

4
Thatgaypigeon (talkcontribs)

I was trying to implement Wikipedia's 'Template link general' template (and related templates), along with the required modules. Everything went smoothly until I tried using the template, at which point it resulted in this error message: "Lua error in Module:Template_link_general at line 119: attempt to concatenate local 'titlePart' (a nil value).". (When using {{tlc}} as follows: {{tlc|=}}.)

I tried using {{tlg}} and I'm not too sure what the result means in terms of if I've done things right, but it ({{tlg|=}}) yielded: {{'''Template:=/doc'''}} formatted as seen here. This is the name of the page that it was being used on (the template's ({{=}}) documentation page).

I asked on Wikipedia's 'Teahouse' (for a related but not identical issue), Wikipedia's 'Live Help Channel'-thing, and Wikipedia's help desk until someone helpfully pointed out that asking here would probably be a better idea, so here I am!

I should also point out that I'm not entirely sure if I'm using the correct (or at least proper) template for the job. I was really just trying to replicate a style I saw on Wikipedia and it was done using these templates, although I'm not sure what these are actually meant for. So, another solution could be to find a work around to achieve the same effect through a different method? (If that makes even a lick of sense!)

Either way, any help is greatly appreciated!

I would give the name of the wiki but its kinda cringy so I'm hoping I might not need to (though it seems that I will have to) as to not embarrass myself!

Anyway I've rambled enough, so I'll leave it to you experts! - Pigeon <3

Thatgaypigeon (talkcontribs)

P.S. Sorry for the bad and unreadable formatting :/

PrimeHunter (talkcontribs)
Thatgaypigeon (talkcontribs)

Oh, got it. Thank you so much! <3

Reply to "Using copy of Wikipedia template 'Tlg' on fandom.com yields Lua error"