Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Template:Pre/doc"

From Roll20 Wiki

Jump to: navigation, search
m
m
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{documentation subpage|override=pre/doc|Pre}}
 
{{documentation subpage|override=pre/doc|Pre}}
  
oveflow fix for {{code|pre}}-elements.
+
fix overflow for {{code|pre}}-elements.
  
 
{{ex}}
 
{{ex}}
<pre{{pre}}>
+
{{pre|<input type="text" name="attr_class" value="fighter" >  // leave as value="" if you don't want the user to need to delete the default value
Omnis inventore occaecati sequi est temporibus magni harum laborum. Itaque voluptate id est in minima omnis magnam. Et consequatur distinctio ab accusamus corrupti sint. Saepe repudiandae est similique mollitia alias vero enim.
+
<input type="number" name="attr_healthpoints" value="10" >
 +
Omnis inventore occaecati sequi est temporibus magni harum laborum. Itaque voluptate id est in minima omnis magnam. Et consequatur distinctio ab accusamus corrupti sint. Saepe repudiandae est similique mollitia alias vero enim.}}
 +
 
 +
<pre style="overflow:auto;white-space:pre-wrap;">
 +
{{pre|Omnis inventore occaecati sequi est temporibus magni harum laborum. Itaque voluptate id est in minima omnis magnam. Et consequatur distinctio ab accusamus corrupti sint. Saepe repudiandae est similique mollitia alias vero enim.}}
 
</pre>
 
</pre>
 +
 +
 
<includeonly>[[Category:Utility Templates]]</includeonly>
 
<includeonly>[[Category:Utility Templates]]</includeonly>

Latest revision as of 15:14, 27 September 2021

fix overflow for pre-elements.


Example:

{{{1}}}
{{pre|Omnis inventore occaecati sequi est temporibus magni harum laborum. Itaque voluptate id est in minima omnis magnam. Et consequatur distinctio ab accusamus corrupti sint. Saepe repudiandae est similique mollitia alias vero enim.}}