Re: variables with a space in them
Frank Kastenholz <[email protected]> Mon, 13 Jul 2026 08:43:31 -0400
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_5D9A4816-1CE9-4858-BA93-68A18F864A5F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
You can not do something like
Kim Lip =3D 123
However, you could say
Some_datatable[=E2=80=9CKim Lip=E2=80=9D] =3D 123
However, using a person=E2=80=99s name as a key may bit be the wisest choic=
e. What happens if there are two people named =E2=80=9CKim Lip=E2=80=9D? =
=20
> On Jul 13, 2026, at 5:00=E2=80=AFAM, Ernestyna <[email protected]> w=
rote:
>=20
> hello!
>=20
> at first, i'd like to say i have no experience with lua coding nor know h=
ow it works. i am an admin on a fandom wiki so i guess my coding skills onl=
y come to some limited html expressions. so sorry if i use some incorrect w=
ording!
>=20
> yesterday i decided to implement a new module to our wiki called Line dis=
tributions <https://loonatheworld.fandom.com/wiki/Module:LD>. basically, it=
just shows a ranking of the group's members based on how much they sang in=
a song. it uses local groups with members to work properly where some of t=
he members have a space in their name, e.g. "Kim Lip", "Go Won", or "Olivia=
Hye". it also uses another module, called Index <https://loonatheworld.fan=
dom.com/wiki/Module:Index> to attribute each members their respective color=
. this is where my problem arises. i cannot enter a variable with a space i=
n it, otherwise the whole code would break. temporarily, i have conjoined t=
he two-worded names of members as this feature is still in a testing phase =
so it wouldn't make much of a difference for the admins anyway. so my quest=
ion is=E2=80=94is it possible to make a variable with a space in it? i have=
tried adding an underscore or a plus symbol, even an invisible special sym=
bol, however none of these seem to work like i'd like to.
>=20
> i'm looking forward to your response. if you wish to see how the module w=
orks, you can see it in my sandbox page <https://loonatheworld.fandom.com/w=
iki/User:Dysharmonia/Sandbox>. feel free to edit anything too, lol. there a=
re some other few issues but i'll come back to these later. thank you so mu=
ch!!!
>=20
> --=20
> You received this message because you are subscribed to the Google Groups=
"lua-l" group.
> To unsubscribe from this group and stop receiving emails from it, send an=
email to [email protected] <mailto:lua-l+unsubscribe@goog=
legroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/lua-l/CA%=
2Bgg%2B6Y061y-fWiS4-cOeDKa3NnE6tBPmm%2BsDpgJ9qyK_3wqag%40mail.gmail.com <ht=
tps://groups.google.com/d/msgid/lua-l/CA%2Bgg%2B6Y061y-fWiS4-cOeDKa3NnE6tBP=
mm%2BsDpgJ9qyK_3wqag%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r>.
--=20
You received this message because you are subscribed to the Google Groups "=
lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CEFD1=
309-C885-4457-9D9B-2D5F53AF6905%40kastenholz.org.
--Apple-Mail=_5D9A4816-1CE9-4858-BA93-68A18F864A5F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" c=
ontent=3D"text/html; charset=3Dutf-8"></head><body style=3D"overflow-wrap: =
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">You c=
an not do something like<div> Kim Lip =3D 123</div><div>Howeve=
r, you could say</div><div> Some_datatable[=E2=80=9CKim Lip=E2=80=9D]=
=3D 123</div><div><br></div><div>However, using a person=E2=80=99s name as=
a key may bit be the wisest choice. What happens if there are two people n=
amed =E2=80=9CKim Lip=E2=80=9D? </div><div><div><br><blockquote type=
=3D"cite"><div>On Jul 13, 2026, at 5:00=E2=80=AFAM, Ernestyna <ernestyna=
[email protected]> wrote:</div><br class=3D"Apple-interchange-newline"><div>=
<div dir=3D"ltr"><div>hello!</div><div><br></div><div>at first, i'd like to=
say i have no experience with lua coding nor know how it works. i am an ad=
min on a fandom wiki so i guess my coding skills only come to some limited =
html expressions. so sorry if i use some incorrect wording!</div><div><br><=
/div><div>yesterday i decided to implement a new module to our wiki called =
<a href=3D"https://loonatheworld.fandom.com/wiki/Module:LD">Line distributi=
ons</a>. basically, it just shows a ranking of the group's members based on=
how much they sang in a song. it uses local groups with members to work pr=
operly where some of the members have a space in their name, e.g. "Kim Lip"=
, "Go Won", or "Olivia Hye". it also uses another module, called <a href=3D=
"https://loonatheworld.fandom.com/wiki/Module:Index">Index</a> to attr=
ibute each members their respective color. this is where my problem arises.=
i cannot enter a variable with a space in it, otherwise the whole code wou=
ld break. temporarily, i have conjoined the two-worded names of members as =
this feature is still in a testing phase so it wouldn't make much of a diff=
erence for the admins anyway. so my question is=E2=80=94is it possible to m=
ake a variable with a space in it? i have tried adding an underscore or a p=
lus symbol, even an invisible special symbol, however none of these seem to=
work like i'd like to.</div><div><br></div><div>i'm looking forward to you=
r response. if you wish to see how the module works, you can see it in <a h=
ref=3D"https://loonatheworld.fandom.com/wiki/User:Dysharmonia/Sandbox">my s=
andbox page</a>. feel free to edit anything too, lol. there are some other =
few issues but i'll come back to these later. thank you so much!!!</div></d=
iv><div><br class=3D"webkit-block-placeholder"></div>
-- <br>
You received this message because you are subscribed to the Google Groups "=
lua-l" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">lua-l+unsubsc=
[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
lua-l/CA%2Bgg%2B6Y061y-fWiS4-cOeDKa3NnE6tBPmm%2BsDpgJ9qyK_3wqag%40mail.gmai=
l.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com=
/d/msgid/lua-l/CA%2Bgg%2B6Y061y-fWiS4-cOeDKa3NnE6tBPmm%2BsDpgJ9qyK_3wqag%40=
mail.gmail.com</a>.<br>
</div></blockquote></div><br></div></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;lua-l" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">lua-l+unsubsc=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
lua-l/CEFD1309-C885-4457-9D9B-2D5F53AF6905%40kastenholz.org?utm_medium=3Dem=
ail&utm_source=3Dfooter">https://groups.google.com/d/msgid/lua-l/CEFD1309-C=
885-4457-9D9B-2D5F53AF6905%40kastenholz.org</a>.<br />
--Apple-Mail=_5D9A4816-1CE9-4858-BA93-68A18F864A5F--