PDA

View Full Version : Martial Arts Export Tags



RobCRogers
Nov 8th, '05, 08:53 PM
I just started working on some export tags today. I'm having fun with it, but am a bit confused (I'm mostly learning via copying and tweaking).

I've looked at the export tags matrix, but can't find the answers to my questions:

I'm setting up a list of martial arts maneuvers in a table that includes columns for cost, manuever name, phase, OCV, DCV, and effect. That in itself doesn't cause me trouble. But I'd like a header at the top of that list of maneuvers to include the name of the martial art. Is there any way to do that?
Similarly, underneath the maneuvers, I'd like a simplified table for non-manuever elements (like weapon elements, DCs, etc.). It would have cost and manuever name. I can see the Nonmanuevers tags and assume that those are the right ones, but haven't gotten this to work the way I want to for the columns (ideally, I'd like something like a NONMANEUVER_COST tag, a NONMANEUVER_NAME tag, and a NONMANUEVER_EFFECT tag, but I can't find them/make them work). Any suggestions? Thanks.

ghost-angel
Nov 8th, '05, 09:55 PM
The first one I can answer:

Put all the Martial Arts under a List, name the List the type of MA they belong to, make sure the List Name is displayed at the top of the MA section, or the top of the group of MAs you're dispalying:

<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->

Will dispaly the List Name - in this case the Martial Art.

the second one ... I have no idea. I'm not sure I get what you're after.

RPMiller
Nov 9th, '05, 07:28 AM
Since you are copying and tweaking anyway go grab the zip file from the Free Stuff page that starts with RPM... Look at the "Published" Export Templates. I think you'll find what you are looking for. They are in RTF format so you'll need to put in the HTML, assuming that is what you are using, but it is pretty clean code to modify.

NOTE:
|
|
V

RobCRogers
Nov 9th, '05, 07:37 AM
Since you are copying and tweaking anyway go grab the zip file from the Free Stuff page that starts with RPM... Look at the "Published" Export Templates. I think you'll find what you are looking for. They are in RTF format so you'll need to put in the HTML, assuming that is what you are using, but it is pretty clean code to modify.

NOTE:
|
|
V

Thanks! I do use your export templates all the time. Since I've been working on HTML, I was concentrating on HTML templates, but I'll look through the RTF ones, too, and hopefully find what I'm looking for.

RobCRogers
Nov 9th, '05, 07:37 AM
The first one I can answer:

Put all the Martial Arts under a List, name the List the type of MA they belong to, make sure the List Name is displayed at the top of the MA section, or the top of the group of MAs you're dispalying:

<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->

Will dispaly the List Name - in this case the Martial Art.

the second one ... I have no idea. I'm not sure I get what you're after.

Thanks. I've actually got that exact bit in there, but it's not yielding anything. I must have something else wrong in my code.

RPMiller
Nov 9th, '05, 08:05 AM
Did you put the IFLIST tags inside the Martial Arts tags?

ghost-angel
Nov 9th, '05, 09:07 AM
<!--MARTIAL_ARTS--><tr><td class="three"><!--MA_COST--></td><td class="two"><!--IFLIST--><!--LISTPREFIX--><!--/IFLIST--><!--MA_TEXT--><!--IFNOTES--> [<strong>Notes:</strong> <!--MA_NOTES-->]<!--/IFNOTES--></td><td class="three">&nbsp;</td></tr><!--/MARTIAL_ARTS--></table><!--/IFMARTIAL_ARTS-->

There's my entire Martial Arts section code, remove and adjust the HTML as you need it to look, but that yields the List Name as the Name of the Martial Art.

RobCRogers
Nov 9th, '05, 10:18 AM
There's my entire Martial Arts section code, remove and adjust the HTML as you need it to look, but that yields the List Name as the Name of the Martial Art.

Thanks, guys! I think my problem was that I used the "If Martial Arts" code, but not the "Martial Arts" code itself in that section.

RPMiller
Nov 9th, '05, 10:20 AM
That would do it.

RobCRogers
Nov 9th, '05, 10:34 AM
That would do it.
I'm still having trouble, though. The List Prefix request is getting me 1), 2), 3), etc. (one for each maneuver), not the name of the list itself.

And I'm still having trouble gettting the non-maneuver items to come up like I want. It's using the list name as a separate line item.

Here's the relevant code. Can anyone help?


<!--IFMARTIAL_ARTS-->
<tr>
<td width="5%" bgcolor="#000000" height="16">
<p align="center"><font size="2" face="Arial" color="#FFFFFF"><b>Cost</b></font></td>
<td width="95%" colspan="9" bgcolor="#000000" height="16"><font size="2" face="Arial" color="#FFFFFF"><b>Martial Arts</b></font></td>
</tr>
<tr>
<td width="100%" colspan="9" height="106">
<!--MARTIAL_ARTS-->
<font face="Arial" size="2"><b><!--IFLIST--><!--LISTPREFIX--><!--/IFLIST--></b></font>
<table border="0" width="100%">
<!--/MARTIAL_ARTS-->
<!--/IFMARTIAL_ARTS-->
<!--IF_MANEUVERS-->
<tr>
<td width="5%" align="center"><b><font size="2" face="Arial"> </font></b></td>
<td width="10%"><b><font size="2" face="Arial">Maneuver</font></b></td>
<td width="6%" align="center"><b><font size="2" face="Arial">Phase</font></b></td>
<td width="6%" align="center"><b><font size="2" face="Arial">OCV</font></b></td>
<td width="7%" align="center"><b><font size="2" face="Arial">DCV</font></b></td>
<td width="66%"><b><font size="2" face="Arial">Notes</font></b></td>
</tr>
<!--MANEUVERS-->
<tr>
<td width="5%" align="center"><font size="2" face="Arial"><!--MANEUVER_COST--></font></td>
<td width="10%" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--MANEUVER_NAME--></font></td>
<td width="6%" align="center" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--MANEUVER_PHASE--></font></td>
<td width="6%" align="center" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--MANEUVER_OCV--></font></td>
<td width="7%" align="center" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--MANEUVER_DCV--></font></td>
<td width="66%" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--MANEUVER_EFFECT--></font></td>
</tr>
<!--/MANEUVERS-->
<!--/IF_MANEUVERS-->
</table>
<table border="0" width="100%">
<!--IFNONMANEUVERS-->
<tr>
<td width="5%" align="center"><b><font size="2" face="Arial"> </font></b></td>
<td width="95%"><b><font size="2" face="Arial">Item</font></b></td>
</tr>
<!--NONMANEUVERS-->
<tr>
<td width="5%" align="center"><font size="2" face="Arial"><!--COST--></font></td>
<td width="95%" bgcolor="#CCCCCC"><font size="2" face="Arial"><!--TEXT--></font></td>
</tr>
<!--/NONMANEUVERS-->
<!--/IFNONMANEUVERS-->

Simon
Nov 9th, '05, 10:38 AM
IFLIST is a rather old (and out-dated) tag. It (contrary to what the name suggests) test if the item is _in_ a list. That's why LISTPREFIX is valid within that container.

Look through the export tag matrix -- it has some much clearer tags for you to use....such as IS_LIST and IS_LIST_ITEM. It also shows you what tags are applicable in any given context.

RPMiller
Nov 9th, '05, 11:24 AM
To get the maneuvers out of being listed with a number, take them out of the list. You don't have to have them in a list for the display to work right, and the may simplify the problems that you are running into.

RobCRogers
Nov 9th, '05, 12:13 PM
To get the maneuvers out of being listed with a number, take them out of the list. You don't have to have them in a list for the display to work right, and the may simplify the problems that you are running into.

I don't want to handcuff myself into having to create the characters a certain way in order to make the template work right. I'd like it to work either way.

I think I'm closer. I've got the list name displaying properly. My current crunch is some table stuff that I think I'll figure out eventually.