Template:EnemyNavigation: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
    <table style = "width:60%;border-collapse: collapse;background:#e6e6e6;border:3px solid #916699;">
<noinclude><!-- old way
        <td style = "width:45%;vertical-align: middle;height:50px">
<div class="EnemyNav"><div class="EnemyNavLeft">{{#if:{{{1|}}}|[[File:ArrowLeft.png|15px|link={{{1}}}]] {{Enemy|{{{1}}}|16}}}}</div><div class="EnemyNavCenter">Enemies</div><div class="EnemyNavRight">{{#if:{{{2|}}}|{{Enemy|{{{2}}}|16}} [[File:ArrowRight.png|15px|link={{{2}}}]]}}</div></div>
            <table style ="width:100%; height:100%;">
-->{{#invoke:EnemyNav|BuildNav|Type=Normal|Enemy=Slime}}Example for [[Slime]] using <code><nowiki>{{EnemyNavigation|type=Normal|enemy=Slime}}</nowiki></code></noinclude><includeonly>{{#invoke:EnemyNav|BuildNav|Type={{{type|Undefined}}}|Enemy={{{enemy|{{PAGENAME}}}}}}}</includeonly>
                {{#if:{{{1|}}}|
                    <td style="text-align: right">[[File:ArrowLeft.png|15px|link={{{1}}}]]</td>
                    <td style="text-align: center">{{#ifexist:File:{{{1}}} Walking.gif|[[File:{{{1}}} Walking.gif|50px|link={{{1}}}]]|[[File:{{{1}}} Bestiary.png|50px|link={{{1}}}]]}}</td>
                    <td style="text-align: left">[[{{{1}}}]]</td>
                }}
            </table>
        </td>
        <td style = "height:100%;text-align: center;border:3px solid #916699;font-weight:bold;vertical-align: middle;">Enemies</td>
        <td style="width:45%;vertical-align: middle;height:50px">
            <table style ="width:100%;height:100%;">
                {{#if:{{{2|}}}|
                  <td style="text-align: right">[[{{{2}}}]]</td>
                  <td style="text-align: center;height:50px">{{#ifexist:File:{{{2}}} Walking.gif|[[File:{{{2}}} Walking.gif|50px|link={{{2}}}]]|[[File:{{{2}}} Bestiary.png|50px|link={{{2}}}]]}}</td>
                  <td style="text-align: right">[[File:ArrowRight.png|15px|link={{{2}}}]]</td>
              }}
            </table>
        </td>
    </table>

Latest revision as of 18:05, 3 April 2024

Example for Slime using {{EnemyNavigation|type=Normal|enemy=Slime}}