User:Jioruji Derako/Archive 4: Difference between revisions

m
m (→‎Template help: new section)
Line 322: Line 322:


I'm trying to create a new template for the TFG figures, more like the dial breakdown on the official site. You can look at what I have done [[User:Nuva-kal/TFGAttackbox/Moves|here]]. First problem is probably a small one, but I can't seem to see it >_<. I would like it so when a colour is put as the "movecol" value it changes the background colour of the first cell. The second is to do with the the statbar, so when a value is entered for "prob" (e.g 45), the length of the bar becomes 45% the length of the cell (i.e. whatever value is entered, that it is the percentage it displays). Hope you can help! <span style="color:#0066FF">'''[[Surf (move)|~~]]'''</span>'''[[User:nuva-kal|<span style="color:#00CCFF">nuva</span>]]'''<span style="color:#0066FF">'''-'''</span>[[User_talk:nuva-kal|<span style="color:#0099FF">'''kal'''</span>]] 15:57, 4 May 2009 (UTC)
I'm trying to create a new template for the TFG figures, more like the dial breakdown on the official site. You can look at what I have done [[User:Nuva-kal/TFGAttackbox/Moves|here]]. First problem is probably a small one, but I can't seem to see it >_<. I would like it so when a colour is put as the "movecol" value it changes the background colour of the first cell. The second is to do with the the statbar, so when a value is entered for "prob" (e.g 45), the length of the bar becomes 45% the length of the cell (i.e. whatever value is entered, that it is the percentage it displays). Hope you can help! <span style="color:#0066FF">'''[[Surf (move)|~~]]'''</span>'''[[User:nuva-kal|<span style="color:#00CCFF">nuva</span>]]'''<span style="color:#0066FF">'''-'''</span>[[User_talk:nuva-kal|<span style="color:#0099FF">'''kal'''</span>]] 15:57, 4 May 2009 (UTC)
:I've fixed the "movcol" switch; you don't need the #ifeq command in there I don't believe, a normal switch works just fine. However, you did mistakenly leave out the little # sign for the color hex code, so it wasn't working.
:Now the other part is a little more complicated, so I want to make sure I know what you're aiming for before I do anything. The "prob" bar in there is supposed to work like a gauge, I assume? Displaying, I'm guessing, probability... if that's the case, I think I can manage that. I just need to dig through some of my coding knowledge and remember how I've made those sorts of things work before. --[[user:Jioruji_Derako|<font color="#237d00"> '''J'''ïörüjï '''Ð'''ērākō.'''>'''</font>]]<small>[[user talk:Jioruji Derako|<font color="#237d00">''.cнаt'''''^'''</font>]]</small> 02:19, 5 May 2009 (UTC)
2,743

edits