Template talk:Element

From TheKolWiki
Jump to: navigation, search

You need to do nested if statements. --SomeStranger (Talk | Contribs) 20:58, 7 May 2006 (CDT)

Unfortunately, this allows for neither "The elements Hot, Stench,..." nor "This hat offers So-so cold resistance."--Dehstil (t|c) 21:29, 23 June 2006 (CDT)

  • If you can come up with a sensible syntax for it, I'm all for adding it. --Quietust 21:39, 23 June 2006 (CDT)
  • Yeah, that's what been stopping me. Any sensible syntax I could think of messes up pages already using this template. We could just add to the switch statement things that don't really seem sensible, but I rather do a parameter change having {{{1}}} be element and {{{2}}} be type: {{element|hot|Damage}} (enchantment), {{element|hot|damage}} (monster), {{element|hot}} (plain link/mentioning of the element hot). I'm not sure about hot resistance which is blue, in game.--Dehstil (t|c) 21:49, 23 June 2006 (CDT)

The New Thing

Now instead of saying example: "The element's name is stench" and have a link, you're forced to say "The element's name is (stench damage)". That isn't good. --Someone Else 15:56, 28 June 2006 (CDT)

I say we slowly clean up of the syntax of this:

  • use "bad spelling" instead of spelling (can be done without changing the template as of now)
  • Possibly give monster/equipment pages a special syntax (once a syntax has been agreed upon)

--Dehstil (t|c) 18:19, 28 June 2006 (CDT)

Now {{element|cold|resistance}} translates to cold resistance. Also, self-links are acting different on the element pages...--Dehstil (t|c) 19:14, 28 June 2006 (CDT)

  • Fixed the self-link thing.--Dehstil (t|c) 19:26, 28 June 2006 (CDT)

A little off topic

Alright, y'know how this template has if statements and stuff like that? Other wikis don't have that kind of thing, does anyone have any idea how to make those on other wikis? --Santasassassin 16:46, 25 February 2007 (CST)

Slime!

Slime doesn't seem to work consistently. That is, {{element|slime}}, {{element|Slime}}, {{element|slime|}}, {{element|slime|dmg=10-20}} shows up as (slime damage), , slime, (slime damage) instead of (slime damage), Slime damage, slime, 10-20. (If those two look the same, that means this has been fixed since I made this note) Also, slime is linking to the Slime monster instead of to the Slime Resistance page. (I tried to change it myself, but I must have done something wrong, because it wasn't showing up right in when I previewed the page, so I just left it alone. Maybe I'll try again when it's not 3 am) - The Wrassedragon 06:51, 10 June 2009 (UTC)

I've noticed the same thing, and I went over the coding for over an hour trying to figure out how to get it going properly, with no success. I find myself wondering how Quietust and SomeStranger did it. --Sparksol (t|c) 09:17, 10 June 2009 (UTC)
{{element|slime|dmg=10-20}} should be {{element|Slime|dmg=10-20}} to work as you intend (), but I think it works now.. --Fig bucket 10:47, 10 June 2009 (UTC)

underline

  • in chrome, i guess i have underline links turned on. using "style:color=" colours only the text of the link and not the underline. which is fine if the link is blue but not if it's not. i'd update it but i don't know anything about css. could we use a FONT tag (which correctly colours the underline too) instead? --Evilkolbot (talk) 12:09, 14 August 2015 (UTC)
    • I have underline links too, but at least with firefox I do not see any difference between the two ways...is the underline colour different in these? hot damage (CSS) versus hot damage (font) --Fig bucket (talk) 13:24, 14 August 2015 (UTC)
      • sorry to have missed this. yes, the first one the underline colour is blue (the default.) like this (if you can't see the picture i can email it to you.) --Evilkolbot (talk) 12:00, 18 September 2015 (UTC)
      • To get the underline the same color in Chrome using CSS you'd want to add the style="color: red" attribute to the <a> tag, instead of to a span within the <a>. I've no idea how you'd implement that with mediawiki markup though. --Darkcodelagsniper (talk) 20:21, 18 September 2015 (UTC)