Difference between revisions of "Talk:Character Sheets"
From Roll20 Wiki
(→Incorporating JavaScript) |
(→Repeating sections with table rows) |
||
Line 13: | Line 13: | ||
== Repeating sections with table rows == | == Repeating sections with table rows == | ||
If a fieldset with a repeating class is nested inside a table, will rows be duplicated properly? <small><span class="autosigned">— Preceding unsigned comment added by [[User:185460]] ([[User talk:185460|talk]] • [[Special:Contributions/185460|contribs]]) 15:35, 24 June 2014 (EST)</span></small><!-- Template:Unsigned --> | If a fieldset with a repeating class is nested inside a table, will rows be duplicated properly? <small><span class="autosigned">— Preceding unsigned comment added by [[User:185460]] ([[User talk:185460|talk]] • [[Special:Contributions/185460|contribs]]) 15:35, 24 June 2014 (EST)</span></small><!-- Template:Unsigned --> | ||
+ | :No. The issue is that wrapping a fieldset around rows in a table is invalid HTML, and so the browser is pretty much free to handle the situation however it wants. Many browsers will simply eject the fieldset from the table markup, leaving the fieldset empty, which is rather useless for a repeating section. | ||
+ | :If you want table layout with repeating section behavior, consider using <code>display: table</code>, <code>display: table-row</code>, and <code>display: table-cell</code> on some <code><div></code> elements. <div style="display:inline-block;border:1px solid blue;background:#bbbbff;padding:0 3px 0 3px;font-size:10px">[[User:235259]] – ({{user profile|235259|profile}} • [[User talk:235259|talk]] • [[Special:Contributions/235259|contrib]])</div> 11:33, 22 January 2015 (EST) | ||
== Drag & Drop Ability macros == | == Drag & Drop Ability macros == | ||
Needs to be updated to include the new Drag and Drop of sheet rolls to the macro bar. <small><span class="autosigned">— Preceding unsigned comment added by [[User:463088]] ([[User talk:463088|talk]] • [[Special:Contributions/463088|contribs]]) 23:36, 30 November 2014 (EST)</span></small><!-- Template:Unsigned --> | Needs to be updated to include the new Drag and Drop of sheet rolls to the macro bar. <small><span class="autosigned">— Preceding unsigned comment added by [[User:463088]] ([[User talk:463088|talk]] • [[Special:Contributions/463088|contribs]]) 23:36, 30 November 2014 (EST)</span></small><!-- Template:Unsigned --> |
Revision as of 16:33, 22 January 2015
Contents |
Math Functions
What about Math.min() and Math.max() ? — Preceding unsigned comment added by Barrie T. (talk • contribs) 22:33, 3 June 2014 (EST)
- In roll buttons,
min
can be achieved with the kl or dh group modifier, andmax
can be achieved with the kh or dl group modifier. For example:/roll {2d6, 0d0+3}kh1
will produce 3 if you roll snake eyes, and/roll {2d6, 0d0+11}kl1
will produce 11 if you roll box cars. - In autocalc fields, you can achieve
min
andmax
with(((@{x} + @{y}) - abs(@{x} - @{y})) / 2)
and(((@{x} + @{y}) + abs(@{x} - @{y})) / 2)
, respectively. 11:26, 22 January 2015 (EST)
Incorporating JavaScript
I work a lot with that D&D 3.5 Sheet by Diana P. but i never liked the original d&d sheet, it is really messy. I thought it could be improved if you could make sections collapsible. I wonder now if you can use javascript to make it possible. — Preceding unsigned comment added by Marco G. (talk • contribs) 06:01, 20 January 2015 (EST)
- While JavaScript cannot be incorporated into character sheets, collapsible sections can be created with checkbox inputs and CSS. Here's a jsfidle demonstrating the concept. Most important to note, the element that you're collapsing must be either a sibling of the checkbox, or a descendant of a sibling of the checkbox.
- Feel free to check out the CSS Wizardry thread for more tricks. 11:29, 22 January 2015 (EST)
Repeating sections with table rows
If a fieldset with a repeating class is nested inside a table, will rows be duplicated properly? — Preceding unsigned comment added by Bio B. (talk • contribs) 15:35, 24 June 2014 (EST)
- No. The issue is that wrapping a fieldset around rows in a table is invalid HTML, and so the browser is pretty much free to handle the situation however it wants. Many browsers will simply eject the fieldset from the table markup, leaving the fieldset empty, which is rather useless for a repeating section.
- If you want table layout with repeating section behavior, consider using
display: table
,display: table-row
, anddisplay: table-cell
on some<div>
elements. 11:33, 22 January 2015 (EST)
Drag & Drop Ability macros
Needs to be updated to include the new Drag and Drop of sheet rolls to the macro bar. — Preceding unsigned comment added by Vince (talk • contribs) 23:36, 30 November 2014 (EST)