Difference between revisions of "Template:UnitDef"
Jump to navigation
Jump to search
(New template for unit definitions (adds collapsible functionality)) |
m (Attempt to resolve def parameter inside <pre> tags) |
||
Line 4: | Line 4: | ||
== Raw Unit Definition == | == Raw Unit Definition == | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | + | {{#tag:pre|{{{def}}}|style="max-height:300px;overflow:auto"}}</div> | |
</div> | </div> |
Revision as of 18:50, 17 February 2017
This template simplifies inclusion of raw unit structures on their wikipage by applying standard formatting. The result is a collapsible section with a 300px-tall, scrollable preformatted text section. For best results, use <nowiki> tags to prevent double-braces from prematurely closing the template: {{UnitDef|<nowiki>def</nowiki>}}
Raw Unit Definition
{{{def}}}