Jump to content

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

From UFOpaedia
Tvol (talk | contribs)
Forgot the name and description parameters. Because I'm just that smart. Added better defaults. Adding s_link for linking the image somewhere.
Tvol (talk | contribs)
mNo edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
<noinclude>{{ndc}}</noinclude><includeonly><span class="ability" id="{{{ s_id | ability }}}" style="display: inline-block; {{ #ifexpr: {{{ b_table | 0 }}} | padding: 13px 13px 13px 13px;|}}"><!--
--><span id="ability"><!--
--><div class="abilityImageContainer" id="{{{ s_id | ability }}}" style="position: relative; display: inline-block;"><!--
    --><span id="abilityImageContainer" style="position: relative; width: 38px; height: 38px;"><!--
--><div class="abilityImage" id="{{{ s_id | ability }}}"><!--
        --><span id="abilityImage" style="width: 100%; height:100%;"><!--
          -->[[File:{{{ s_image |}}}|38px| {{{ s_caption | No Name Given }}} {{ #if: {{{ s_link |}}} | {{!}} link= {{{ s_link }}} |}}]]<!--
        -->[[File:{{{ s_image |}}}|38px| {{{ s_caption | No Name Given }}} {{ #if: {{{ s_link |}}} | {{!}} link= {{{ s_link }}} |}}]]<!--
         --></div><!--
         --></span><!--
         -->{{ #ifexpr: {{{ b_info | 0 }}}<!--
         -->{{ #ifexpr: {{{ b_info | 0 }}} |<!--
         -->|<div class="abilityInfoIcon" id="{{{ s_id | ability }}}" style="position: absolute; height: 18px; width: 18px; left: 30px; top: 26px;"><!--
         --><span id="abilityInfoIcon" style="position: absolute; height: 18px; width: 18px; left: 28px; top: 12px;"><!--
        -->[[File:infoIcon.png|18px|{{ {{{ s_templateName |}}}/Info }}]]<!--
            -->[[File:infoIcon.png|18px]]<!--
            --></div><!--
        --></span><!--
         -->|}}<!--
         -->|}}<!--
    --></span>{{ #ifexpr: {{{ b_name | 0 }}} or {{{ b_descr | 0 }}} |<br /><!--
    --><div id="abilityTextContainer"><!--
    -->{{ #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;">{{{ s_descr | No Description Given }}}</div> |}}<!--
     --></div><!--
     --></div><!--
    -->{{ #ifexpr: {{{ b_name | 0 }}} or {{{ b_descr | 0 }}}<!--
    -->|<div class="abilityTextContainer" id="{{{ s_id | ability }}}"><!--
        -->{{ #ifexpr: {{{ b_name | 0 }}} <!--
        -->|<div class="abilityName" id="{{{ s_id | ability }}}" style="font-weight: bold; padding-top: 5px;">{{{ s_name | No Name Given }}}</div><!--
            -->|}}<!--
        -->{{ #ifexpr: {{{ b_descr | 0 }}}<!--
        -->|<div class="abilityDescription" id="{{{ s_id | ability }}}" style="font-style: italic; padding-top: 3px">{{{ s_descr | No Description Given }}}</div><!--
            -->|}}<!--
        --></div><!--
     -->|}}<!--
     -->|}}<!--
--></span></includeonly>
--></span></includeonly><noinclude>
 


<noinclude>
{{Documentation}}
{{Documentation}}


[[Category: Template Sandboxes]]
[[Category: Templates]]
[[Category: Templates (Long War 2)]]
</noinclude>
</noinclude>

Latest revision as of 10:40, 12 February 2017

No Direct Call This template should only be used in other templates. It is not meant to be used on content pages.


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