Difference between revisions of "Template talk:Drop info"
From PSU Cyril Wiki
(New page: == Template test == {{Drop info |Enemy= Kakwane |Level= 50-69 |Type= Board }} OK, so what I'm trying to do is make a drop template that will add new table rows automatically as we nee...) |
Propagandist (talk | contribs) |
||
Line 7: | Line 7: | ||
OK, so what I'm trying to do is make a drop template that will add new table rows automatically as we need them but will not display them if left blank. I thought that by using the ''if'' conditional to encase the code for the next row I'd be able to make it display only if ''Enemy2'' were filled in. I also included the negative area to close the table at this point if ''Enemy2'' were left blank. Didn't work out at all like I thought it would. So, anyone (with more experience with these things) got any suggestions? - [[User:EspioKaos|EspioKaos]] 00:20, 13 April 2008 (CDT) | OK, so what I'm trying to do is make a drop template that will add new table rows automatically as we need them but will not display them if left blank. I thought that by using the ''if'' conditional to encase the code for the next row I'd be able to make it display only if ''Enemy2'' were filled in. I also included the negative area to close the table at this point if ''Enemy2'' were left blank. Didn't work out at all like I thought it would. So, anyone (with more experience with these things) got any suggestions? - [[User:EspioKaos|EspioKaos]] 00:20, 13 April 2008 (CDT) | ||
+ | |||
+ | * I found a page that explains how to do exactly what it seems that you're doing. [http://meta.wikimedia.org/wiki/Help:Table#Conditional_table_row link] Essentially, the "|-" used to start the next table row is being confused as part of the #if. The page suggests making a template that contains just the character "|" and use that to build the table inside the #if statement. Hopefully that makes a little sense. -[[User:Propagandist|Propagandist]] 00:53, 13 April 2008 (CDT) |
Revision as of 05:53, 13 April 2008
Template test
Drop information | ||
Enemy/Mission | Level | Type |
Unknown |
OK, so what I'm trying to do is make a drop template that will add new table rows automatically as we need them but will not display them if left blank. I thought that by using the if conditional to encase the code for the next row I'd be able to make it display only if Enemy2 were filled in. I also included the negative area to close the table at this point if Enemy2 were left blank. Didn't work out at all like I thought it would. So, anyone (with more experience with these things) got any suggestions? - EspioKaos 00:20, 13 April 2008 (CDT)
- I found a page that explains how to do exactly what it seems that you're doing. link Essentially, the "|-" used to start the next table row is being confused as part of the #if. The page suggests making a template that contains just the character "|" and use that to build the table inside the #if statement. Hopefully that makes a little sense. -Propagandist 00:53, 13 April 2008 (CDT)