6,364
editsTemplate:Resource: Difference between revisions
Jump to navigation
Jump to search
Wrap it in a span for future styling
(Add tides of chaos) |
(Wrap it in a span for future styling) |
||
Line 1: | Line 1: | ||
<includeonly>{{trim| {{#lvardef: type|UNDEFINED}} {{#lvardef: icon|Alert Icon.png}}{{#lvardef:isplural|0}}{{#lvardef:icononly|0}} | <includeonly><span class="bg3wiki-resource-template">{{trim| {{#lvardef: type|UNDEFINED}} {{#lvardef: icon|Alert Icon.png}}{{#lvardef:isplural|0}}{{#lvardef:icononly|0}} | ||
{{#lvardef: count | 1}}<!--if count is empty, set it to 1--> <!--this is at the front --> | {{#lvardef: count | 1}}<!--if count is empty, set it to 1--> <!--this is at the front --> | ||
{{#if: {{{type|}}} | {{#lvardef:type|{{{type|}}}}}|{{#if: {{{1|}}} | {{#lvardef:type|{{{1}}}}}}}}} | {{#if: {{{type|}}} | {{#lvardef:type|{{{type|}}}}}|{{#if: {{{1|}}} | {{#lvardef:type|{{{1}}}}}}}}} | ||
Line 26: | Line 26: | ||
| nr | natrec | natural recovery = {{#lvardef: type|Natural Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Natural Recovery Charges Icon.png}} | | nr | natrec | natural recovery = {{#lvardef: type|Natural Recovery Charge{{#ifexpr: {{#lvar: isplural}} > 0 |s}}}} {{#lvardef: icon|Natural Recovery Charges Icon.png}} | ||
| toc | tides of chaos = {{#lvardef: type|Tides of Chaos Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Tides of Chaos Resource Icon.png}} | | toc | tides of chaos = {{#lvardef: type|Tides of Chaos Point{{#ifexpr: {{#lvar: isplural}} > 0 |s}} }}{{#lvardef:icon|Tides of Chaos Resource Icon.png}} | ||
}}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}</includeonly><noinclude> | }}{{#ifexpr: {{#lvar: isplural}} > 0 | {{#if: {{{forceplural|}}}||{{#lvar: count}}}}}}{{SmallIcon|{{#lvar:icon}}}}{{#if: {{{icononly|}}}||{{#lvar: type}}}}}}</span></includeonly><noinclude> | ||
=What is this?= | =What is this?= | ||
This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. | This is a template for a quicker and more standardized manner of typing out the class-specific resource. This template is intended to be ''inline''. |