Template:Achievement: Difference between revisions
From StrategyWiki, the video game walkthrough and strategy guide wiki
m
further no float fix
m (no float fix) |
m (further no float fix) |
||
Line 1: | Line 1: | ||
<div class="achievement" style="width:{{{width|248px}}}; {{#ifeq:{{{float|none}}}|none||clear: {{{float|right}}} | <div class="achievement" style="width:{{{width|248px}}}; {{#ifeq:{{{float|none}}}|none|display: inline-block|clear: {{{float|right}}}}}; float: {{{float|right}}}; {{#ifeq:{{{float|right}}}|right|margin-left: .5em|{{#ifeq:{{{float|right}}}|left|margin-right: .5em}}}}"><div style="margin:4px;"><div class="achievement_image">[[File:{{{image|Unknown achievement.png}}}|45px|{{{name}}}]]</div><div class="achievement_info" style="{{#if:{{{g|}}}||{{#if:{{{trophy|}}}||display:none}}}}">{{#if:{{{trophy|}}}|[[File:{{{trophy}}} Trophy unlocked.png|20px]]{{#if:{{{g|}}}|<br />}}}}{{#if:{{{g|}}}|{{G|{{{g|}}}}}}}</div><div class="achievement_name">{{{name}}}</div></div><div class="achievement_description"><span style="{{#if:{{{description|}}}||display:none}}">{{{description}}}</span></div><div class="achievement_progress_outer" style="{{#if:{{{total|}}}||display:none}}"><p class="achievement_progress_inner" style="width:{{#expr:100*({{{progress|1}}}/{{{total}}})}}%;">{{#if:{{{units|}}}|<span style="white-space:nowrap">{{{progress|1}}} {{{units}}}</span>|{{#expr:100*({{{progress|1}}}/{{{total}}}) round 0}}%}}</p></div></div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates|A]]</noinclude> | [[Category:Templates|A]]</noinclude> |