Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

template:general How Do I separate Left And Right Columns?

1774953079

Edited 1774953146
I sort of posted about this at <a href="https://app.roll20.net/forum/post/12709983/macro-why-is-this-right-justified/?pageforid=12712723#post-12712723" rel="nofollow">https://app.roll20.net/forum/post/12709983/macro-why-is-this-right-justified/?pageforid=12712723#post-12712723</a> &nbsp;but I ended up wandering from it. This is a broader question. How do I put stuff in the left column and how do I put stuff in the right column. As I said in the original question, I'm using template:general &nbsp;and I find template:default &nbsp;to be ugly as you know what for buttons. Here is a sample screen shot and current code of what I am unable to figure out. Macro: &amp;{template:default}{{name=Select Character Token(s) and:}} {{*Resize to w x h pixels* [16x20](!token-mod --set width|=16 height|=20) [20x25](!token-mod --set width|=20 height|=25) [24x30](!token-mod --set width|=24 height|=30) [32x40](!token-mod --set width|=32 height|=40) [40x50](!token-mod --set width|=40 height|=50) [48x60](!token-mod --set width|=48 height|=60) [56x70](!token-mod --set width|=56 height|=70) [64x80](!token-mod --set width|=64 height|=80) [72x90](!token-mod --set width|=72 height|=90) [80x100](!token-mod --set width|=80 height|=100) [88x110](!token-mod --set width|=88 height|=110) [96x120](!token-mod --set width|=96 height|=120) Or square, w x w pixels [15](!token-mod --set width|=15 height|=15) [20](!token-mod --set width|=20 height|=20) [30](!token-mod --set width|=30 height|=30) [40](!token-mod --set width|=40 height|=40) [50](!token-mod --set width|=50 height|=50) [60](!token-mod --set width|=60 height|=60) [70](!token-mod --set width|=70 height|=70) [80](!token-mod --set width|=80 height|=80) [90](!token-mod --set width|=90 height|=90) [100](!token-mod --set width|=100 height|=100) [110](!token-mod --set width|=110 height|=110) [120](!token-mod --set width|=120 height|=120) Or you may: [Flip Horizontally](!token-mod --flip fliph) [Rotate to 0°](!token-mod --set rotation|360) [Highlight On/Off](!token-mod --on aura1_square --set aura1_color|ffffff --set aura1_radius|!.1) [Character Name On/Off](!token-mod --flip showname)}} In the link, Jarren helped me with the equals sign - I can't paste what he gave me as this iinterface turns everything black. Anyway, the result was: Other macros I've made, using template:general &nbsp;I end up with centre justified: How the heck do I put anything in the left column? How the ****&nbsp; did I get centred output in another macro? I know nothing about CSS. I can't find anything in google searches. All the roll20 references I find do not have "template:general" anywhere to be found. This is extraordinarily frustrating.&nbsp; Thanks for any help, -- Tim
1774965851
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Roll templates are styled output. Other than default, they are specific to character sheets. They each have their own purposes and ways in which they handle fields. Default is a very basic one that allows columned output of anything you want (delineated by the equal sign). For that general one, it is specific to the character sheet you are using. I don't know which sheet that is, but the sheet author may not have designed a multi column output.
1774982452
vÍnce
Pro
Sheet Author
At work ATM, but I'll try and help you with 1e's general template using some examples later on tonight.&nbsp; As Scott explained, roll templates used with a sheet are "pre-designed" layouts to work with a sheet's rolls. While you try and build some flexibility in for custom macros, it's very difficult to predict how people will use the template. Can you explain exactly what your goal is Tim?
1774989160

Edited 1774989201
Scott C. said: Roll templates are styled output. Other than default, they are specific to character sheets. They each have their own purposes and ways in which they handle fields. Default is a very basic one that allows columned output of anything you want (delineated by the equal sign). For that general one, it is specific to the character sheet you are using. I don't know which sheet that is, but the sheet author may not have designed a multi column output. Thanks, Scott, it's for AD&amp;D 1e.&nbsp; vÍnce said: At work ATM, but I'll try and help you with 1e's general template using some examples later on tonight.&nbsp; As Scott explained, roll templates used with a sheet are "pre-designed" layouts to work with a sheet's rolls. While you try and build some flexibility in for custom macros, it's very difficult to predict how people will use the template. Can you explain exactly what your goal is Tim? HI Vince, this dialog: is meant to allow the DM to resize selected tokens of any type. So many of my have different scales, be they battle maps, dungeons of campaign world/regional maps. I created the above for another campaign and it was very useful to just select the characters, and possibly monsters, and press buttons. Here the party is placed on one of my battle maps. The default size makes them a little tiny: So I just select them all and using Aaron's token mod with specific sizes in the buttons of that dialog, I can change their size quickly or flip them, turn names on/off add a predefined aura or what have you.&nbsp; Hopefully that makes things clear.
1774995078

Edited 1774995231
Now I am confused as heck. I no longer know what&nbsp; template:general &nbsp;and&nbsp; template:default &nbsp;are and probably have them mixed up. Really feeling pissed at, what to me is, lack of documentation for anything. Perhaps it was a mistake to bother coming back to Roll20's pro membership. Oh and this God awful interface.
Roll templates are a way to format text in the Roll20 chat window. Each template is basically a bunch of CSS rules for what text will look like.&nbsp; The Default template is available in any game, and is the only template that is available in any game. Otherwise, which templates are available are dependent on which character sheet is selected for the game. For example, if you select the D&amp;D 5E by Roll20 (2014) character sheet, there are several roll templates that are available to be used:&nbsp;description, simple, atk, dmg, atkdmg, Spell, etc. The formatting of those roll templates is embedded into the character sheet code, and is whatever the character sheet developed decided they wanted the templates to look like: bolding, justification, font size, etc. Likewise, whatever documentation is fully dependent on whoever made the character sheet. If a sheet does not have 'by Roll20' in the name, then Roll20 was not responsible for creating the sheet or related roll templates. There are 1,000s of sheets for 1,000s of games on Roll20, and the vast majority are community created.&nbsp; The 'general' template is one that is available for the&nbsp;AD&amp;D 1e character sheet. There is no 'general' template for the D&amp;D 5E by Roll20 sheets, but a different game/character sheet could also have a 'general' template, but it could look vastly different than the one for the AD&amp;D 1e sheet.&nbsp;
1775015024

Edited 1775015114
vÍnce
Pro
Sheet Author
Tim, if you simply change from template:default &nbsp;to template:general &nbsp;in your macros when using the 1e sheet; &amp;{template:general}{{name=Select Character Token(s) and:}} {{*Resize to w x h pixels* [16x20](!token-mod --set width|=16 height|=20) [20x25](!token-mod --set width|=20 height|=25) [24x30](!token-mod --set width|=24 height|=30) [32x40](!token-mod --set width|=32 height|=40) [40x50](!token-mod --set width|=40 height|=50) [48x60](!token-mod --set width|=48 height|=60) [56x70](!token-mod --set width|=56 height|=70) [64x80](!token-mod --set width|=64 height|=80) [72x90](!token-mod --set width|=72 height|=90) [80x100](!token-mod --set width|=80 height|=100) [88x110](!token-mod --set width|=88 height|=110) [96x120](!token-mod --set width|=96 height|=120) Or square, w x w pixels [15](!token-mod --set width|=15 height|=15) [20](!token-mod --set width|=20 height|=20) [30](!token-mod --set width|=30 height|=30) [40](!token-mod --set width|=40 height|=40) [50](!token-mod --set width|=50 height|=50) [60](!token-mod --set width|=60 height|=60) [70](!token-mod --set width|=70 height|=70) [80](!token-mod --set width|=80 height|=80) [90](!token-mod --set width|=90 height|=90) [100](!token-mod --set width|=100 height|=100) [110](!token-mod --set width|=110 height|=110) [120](!token-mod --set width|=120 height|=120) Or you may: [Flip Horizontally](!token-mod --flip fliph) [Rotate to 0°](!token-mod --set rotation|360) [Highlight On/Off](!token-mod --on aura1_square --set aura1_color|ffffff --set aura1_radius|!.1) [Character Name On/Off](!token-mod --flip showname)}} you'll get this; Note that the buttons are now left aligned and the buttons lose the roll20 default hot pink and formatting.&nbsp; This is because the sheet's general template has been coded to modify those elements.&nbsp; The general template has many defined keys ie {{key=value}}&nbsp; You may find them useful when making custom macros.&nbsp; I posted an example macro here <a href="https://app.roll20.net/forum/permalink/12710156/" rel="nofollow">https://app.roll20.net/forum/permalink/12710156/</a> &nbsp; Execute the example macro and examine the commands within it to see how they post to chat.
Jarren said: Roll templates are a way to format text in the Roll20 chat window. Each template is basically a bunch of CSS rules for what text will look like.&nbsp; Thanks. I'm going to continue banging my head trying to figure out how to control money entry in the sheet I use. All the best.