User:-flowsINtomAyHeM/Template:TestWidget/doc

From Noita Wiki
Jump to navigation Jump to search
Example 1:

Widget parser function directly

{{#widget:TestWidget}}
Result:

Divide By - All Possible Chains Collapse
Chain Length Total Copies Mana Cost Cast Delay Recharge Time Damage Penalty Radius Penalty
Divide By 2
1 2 35 20 0 -5 -5

Example 2:

Template containing widget parser function

{{TestWidget}}
Result:

Divide By - All Possible Chains Collapse
Chain Length Total Copies Mana Cost Cast Delay Recharge Time Damage Penalty Radius Penalty
Divide By 2
1 2 35 20 0 -5 -5

Example 3:

Docs via parser function

{{#widget:TestWidget/doc}}
Result:

{{doc/start}} {{example/start}} {{#widget:TestWidget}} {{example/result/start}} {{#widget:TestWidget}} {{example/result/end}} {{example/end}} {{doc/end}}

Example 4:

Transcluding widget directly

{{Widget:TestWidget}}
Result:
<thead></thead> <colgroup><col class="aaa"><col class="bbb"><col class="ccc"></colgroup> <tbody></tbody><tbody></tbody><tfoot></tfoot>
Divide By - All Possible Chains <a class="mw-collapsible-text">Collapse</a>
Chain Length Total Copies Mana Cost Cast Delay Recharge Time Damage Penalty Radius Penalty
<a href="/wiki/Divide_By_2" title="Divide By 2"><img alt="Divide By 2" src="/images/thumb/9/95/Spell_divide_2.png/32px-Spell_divide_2.png" decoding="async" loading="lazy" width="32" height="32" data-file-width="80" data-file-height="80"></a>
1 2 35 20 0 -5 -5
Example 5:

Transcluding widget docs directly

{{Widget:TestWidget/doc}}
Result:
Example 5.1:
{{#widget:TestWidget}}
Result:

Divide By - All Possible Chains Collapse
Chain Length Total Copies Mana Cost Cast Delay Recharge Time Damage Penalty Radius Penalty
Divide By 2
1 2 35 20 0 -5 -5