Difference between revisions of "Template talk:StatBox"

From Fallen Sword Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
:<span style="color:#060">Give me a specific example to look at. I think I tried to fix a problem with the guild lock section when I first made the template, but I wasn't able to get it working the way I wanted it to work.</span><br>{{User:Belgrave/Sig}}
 
:<span style="color:#060">Give me a specific example to look at. I think I tried to fix a problem with the guild lock section when I first made the template, but I wasn't able to get it working the way I wanted it to work.</span><br>{{User:Belgrave/Sig}}
  
{{StatBox
+
{|class="collapsible collapsed"
 +
!
 +
|{{StatBox
 
|image=http://66.7.192.165/items/2679.gif
 
|image=http://66.7.192.165/items/2679.gif
 
|name=Amulet of Laugeh
 
|name=Amulet of Laugeh
Line 15: Line 17:
 
|enhancement-1-value=25
 
|enhancement-1-value=25
 
}}
 
}}
 +
|}
  
 
<span style="color:#aaa">This item belongs to me and not to the guild.  In game there isn't a line nor the words Guild Locked if it isn't.</span><br>{{User:CHiNback/Sig}}
 
<span style="color:#aaa">This item belongs to me and not to the guild.  In game there isn't a line nor the words Guild Locked if it isn't.</span><br>{{User:CHiNback/Sig}}
 
:<span style="color:#060">Ok, the problem is I used tables to align all the info in the statbox and I cannot use parserfunctions to decide if I should include a specific table for a specific section or not. The easy fix would be to just edit the template to default to <tt>Guild Locked: No</tt>, and the hard fix would be to make separate templates for each of those sections and have the parserfunctions decide if they should use those extra templates or not, similar to the way [[Template:Item]] decides how many lines of stats there are.</span><br>{{User:Belgrave/Sig}}
 
:<span style="color:#060">Ok, the problem is I used tables to align all the info in the statbox and I cannot use parserfunctions to decide if I should include a specific table for a specific section or not. The easy fix would be to just edit the template to default to <tt>Guild Locked: No</tt>, and the hard fix would be to make separate templates for each of those sections and have the parserfunctions decide if they should use those extra templates or not, similar to the way [[Template:Item]] decides how many lines of stats there are.</span><br>{{User:Belgrave/Sig}}
 
::<span style="color:#060">We also need to figure out what in the template is breaking this page!</span><br>{{User:Belgrave/Sig}}
 
::<span style="color:#060">We also need to figure out what in the template is breaking this page!</span><br>{{User:Belgrave/Sig}}
 +
 +
<span style="color:#aaa">Hid the StatBox so it wouldn't break the page.  I'd like to ask, how is it possible to bring the pop up box to the foreground?  Because in my [[User:CHiNback/HuntLog/Items|Items page]] the boxes are stacking behind the other images.</span><br>{{User:CHiNback/Sig}}
 +
:<span style="color:#060">It isn't possible to have it so it pops to the front... I tried! The only thing that could have worked is adding a <tt>z-index</tt> to the CSS, but I believe that the wiki does not allow the <tt>z-index</tt> to be used in pages, at least it hasn't worked any of the times I tried it. This is probably to prevent vandalism where people could use it with absolute positioning to put images or something over all the other tabs and menus, thus making it extremely difficult to undo. I have played with an extension that allows popup tabs to be put into the page, but I don't think it's worth trying to get.</span><br>{{User:Belgrave/Sig}}

Latest revision as of 03:55, 20 November 2008

Hey, have a look at any item that's not guild tagged. It doesn't match, just wondering how you could fix it up. I've already fixed the uncraftable problem.
                 CHiNback - [ Talk - Message - PM ]

Give me a specific example to look at. I think I tried to fix a problem with the guild lock section when I first made the template, but I wasn't able to get it working the way I wanted it to work.
 Belgrave, Moderator / Sysop  Talk  Message PM 

This item belongs to me and not to the guild. In game there isn't a line nor the words Guild Locked if it isn't.
                 CHiNback - [ Talk - Message - PM ]

Ok, the problem is I used tables to align all the info in the statbox and I cannot use parserfunctions to decide if I should include a specific table for a specific section or not. The easy fix would be to just edit the template to default to Guild Locked: No, and the hard fix would be to make separate templates for each of those sections and have the parserfunctions decide if they should use those extra templates or not, similar to the way Template:Item decides how many lines of stats there are.
 Belgrave, Moderator / Sysop  Talk  Message PM 
We also need to figure out what in the template is breaking this page!
 Belgrave, Moderator / Sysop  Talk  Message PM 

Hid the StatBox so it wouldn't break the page. I'd like to ask, how is it possible to bring the pop up box to the foreground? Because in my Items page the boxes are stacking behind the other images.
                 CHiNback - [ Talk - Message - PM ]

It isn't possible to have it so it pops to the front... I tried! The only thing that could have worked is adding a z-index to the CSS, but I believe that the wiki does not allow the z-index to be used in pages, at least it hasn't worked any of the times I tried it. This is probably to prevent vandalism where people could use it with absolute positioning to put images or something over all the other tabs and menus, thus making it extremely difficult to undo. I have played with an extension that allows popup tabs to be put into the page, but I don't think it's worth trying to get.
 Belgrave, Moderator / Sysop  Talk  Message PM