Difference between revisions of "Template:Pre/doc"
From Roll20 Wiki
Andreas J. (Talk | contribs) |
Andreas J. (Talk | contribs) m |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{documentation subpage|override= | + | {{documentation subpage|override=pre/doc|Pre}} |
− | + | ||
+ | fix overflow for {{code|pre}}-elements. | ||
+ | |||
{{ex}} | {{ex}} | ||
− | + | {{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
This is a documentation subpage for Pre. It contains usage information, categories and other content that is not part of the original template page. |
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.}}