Template:Begin code: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div id="{{{id}}}" style=" | <includeonly><div id="{{{id}}}" style="margin:20px;border: 1px dashed #2f6fab;font-family: Courier New;font-size:1em;white-space:pre-wrap;word-wrap:break-word;tab-size: 4;"><div style="background-color:#FCFCC7;">'''{{{name|}}}:'''</div><div style="padding:0px 20px 0px 20px;"></includeonly><noinclude>==Description== | ||
Provides a maximum-width code box with line wrap and a tab size of 4. | Provides a maximum-width code box with line wrap and a tab size of 4. | ||
== Usage == | == Usage == | ||
<pre>{{Begin code}}for (i = 0; i < AdditionalWeapons.Length; i++) | <pre>{{Begin code}} | ||
for (i = 0; i < AdditionalWeapons.Length; i++) | |||
WeaponList[WeaponList.Length] = AdditionalWeapons[i]; | WeaponList[WeaponList.Length] = AdditionalWeapons[i]; | ||
{{End code}}</pre> | {{End code}}</pre> | ||
Line 10: | Line 11: | ||
'''Result:''' | '''Result:''' | ||
{{Begin code}}for (i = 0; i < AdditionalWeapons.Length; i++) | {{Begin code}} | ||
for (i = 0; i < AdditionalWeapons.Length; i++) | |||
WeaponList[WeaponList.Length] = AdditionalWeapons[i]; | WeaponList[WeaponList.Length] = AdditionalWeapons[i]; | ||
{{End code}} | {{End code}} | ||
</noinclude> | </noinclude> |
Latest revision as of 16:06, 27 November 2012
Description
Provides a maximum-width code box with line wrap and a tab size of 4.
Usage
{{Begin code}} for (i = 0; i < AdditionalWeapons.Length; i++) WeaponList[WeaponList.Length] = AdditionalWeapons[i]; {{End code}}
Result:
:
for (i = 0; i < AdditionalWeapons.Length; i++) WeaponList[WeaponList.Length] = AdditionalWeapons[i];