Difference between revisions of "Template:Ability (LW2)/Sandbox"

From UFOpaedia
Jump to navigation Jump to search
(Think I have it, possibly.)
(Forgot the name and description parameters. Because I'm just that smart. Added better defaults. Adding s_link for linking the image somewhere.)
Line 3: Line 3:
 
     --><span id="abilityImageContainer" style="position: relative; width: 38px; height: 38px;"><!--
 
     --><span id="abilityImageContainer" style="position: relative; width: 38px; height: 38px;"><!--
 
         --><span id="abilityImage" style="width: 100%; height:100%;"><!--
 
         --><span id="abilityImage" style="width: 100%; height:100%;"><!--
            -->[[File:{{{ s_image |}}}|38px| {{{ s_caption |}}} ]]<!--
+
        -->[[File:{{{ s_image |}}}|38px| {{{ s_caption | No Name Given }}} {{ #if: {{{ s_link |}}} | {{!}} link= {{{ s_link }}} |}}]]<!--
 
         --></span><!--
 
         --></span><!--
 
         -->{{ #ifexpr: {{{ b_info | 0 }}} |<!--
 
         -->{{ #ifexpr: {{{ b_info | 0 }}} |<!--
Line 12: Line 12:
 
     --></span>{{ #ifexpr: {{{ b_name | 0 }}} or {{{ b_descr | 0 }}} |<br /><!--
 
     --></span>{{ #ifexpr: {{{ b_name | 0 }}} or {{{ b_descr | 0 }}} |<br /><!--
 
     --><div id="abilityTextContainer"><!--
 
     --><div id="abilityTextContainer"><!--
        -->{{ #ifexpr: {{{ b_name | 0 }}} | <div id="abilityName" style="font-weight: bold;">Area Suppression</div> |}}<!--
+
    -->{{ #ifexpr: {{{ b_name | 0 }}} | <div id="abilityName" style="font-weight: bold;">{{{ s_name | No Name Given }}}</div> |}}<!--
        -->{{ #ifexpr: {{{ b_descr | 0 }}} | <div id="abilityDescription" style="font-style: italic;">Fire a barrage that pins down a target, grants reaction fire against it if it moves, restricts the use of many abilities, and imposes a -30 penalty to the target's aim.</div> |}}<!--
+
    -->{{ #ifexpr: {{{ b_descr | 0 }}} | <div id="abilityDescription" style="font-style: italic;">{{{ s_descr | No Description Given }}}</div> |}}<!--
 
     --></div><!--
 
     --></div><!--
 
     -->|}}<!--
 
     -->|}}<!--

Revision as of 10:54, 2 February 2017


[edit · purge]
Template documentation(for the template shown above, sometimes hidden or invisible)
There is currently no documentation for this template.
.