Template:NaviTable: Difference between revisions

    From Hokuto no Ken Encyclopedia | HnKWiki
    (Created page with "<includeonly>{{#ifexpr:{{#switch:{{#explode:{{PAGENAME}}| }}|Chapter=1|Episode=1|0}}| {{{!}} class="toccolours" align="center" width={{{boxwidth|50}}}% {{!}}- {{!}}align="left...")
     
    (Replaced content with "{{Delete}}")
     
    Line 1: Line 1:
    <includeonly>{{#ifexpr:{{#switch:{{#explode:{{PAGENAME}}| }}|Chapter=1|Episode=1|0}}|
    {{Delete}}
    {{{!}} class="toccolours" align="center" width={{{boxwidth|50}}}%
    {{!}}-
    {{!}}align="left" {{!}}{{#ifexist:{{#explode:{{PAGENAME}}| }} {{#expr:{{#explode:{{PAGENAME}}| |1}}-1}}
    |'''← [[{{#explode:{{PAGENAME}}| }} {{#expr:{{#explode:{{PAGENAME}}| |1}}-1}}{{!}}Previous {{#explode:{{PAGENAME}}| }}]]'''
    |}}
    {{!}}align="right" {{!}}{{#ifexist:{{#explode:{{PAGENAME}}| }} {{#expr:{{#explode:{{PAGENAME}}| |1}}+1}}
    |'''[[{{#explode:{{PAGENAME}}| }} {{#expr:{{#explode:{{PAGENAME}}| |1}}+1}}{{!}}Next {{#explode:{{PAGENAME}}| }}]] →'''
    |}}
    {{!}}}
    |}}
     
    {| align="center" class="toccolours" style="font-size: 90%; clear: both; text-align: center; width: {{{boxwidth|50}}}%;"
    |-
    |class="cs {{{colorscheme|}}}" align=center bgcolor="#{{{BG|}}}" colspan=12|'''{{#ifexist:{{{Arc Title|}}}|[[{{{Arc Title|}}}{{!}}{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">{{{Arc Title|}}}</font>|{{{Arc Title|}}}}}]]|{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">{{{Arc Title|}}}</font>|{{{Arc Title|}}}}}}}'''
    |-
    {{#if:{{{chapter start|}}}|{{#ifexpr:{{#expr:{{#explode:{{{chapter start}}}| |0}} >= 0}}|
    !class="cs {{{colorscheme|}}}" align=center bgcolor="#{{{BG|}}}" colspan=12{{!}}'''[[Chapters and Volumes{{!}}{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">Manga Chapters</font>|Manga Chapters}}]]'''
    {{NaviTable/Range|input=chapter|start={{#explode:{{{chapter start}}}| |0}}|end={{#explode:{{{chapter end}}}| |0}}|pos=0}}}}
    {{#if:{{{episode start|}}}|{{#if:{{{episode end|}}}|
    {{!}}-
    !class="cs {{{colorscheme|}}}" align=center bgcolor="#{{{BG|}}}" colspan=12{{!}}'''[[Episode Guide{{!}}{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">Anime Episodes</font>|Anime Episodes}}]]'''
    {{NaviTable/Range|input=episode|start={{#explode:{{{episode start}}}| |0}}|end={{#explode:{{{episode end}}}| |0}}|pos=0}}
    {{NaviTable/Range|input=episode|start={{#explode:{{{episode start}}}| |1}}|end={{#explode:{{{episode end}}}| |1}}|pos={{#expr:(({{#explode:{{{episode end}}}| |0}} - {{#explode:{{{episode start}}}| |0}})+1) mod  11}}}}
    {{NaviTable/Range|input=episode|start={{#explode:{{{episode start}}}| |2}}|end={{#explode:{{{episode end}}}| |2}}|pos={{#expr:((({{#explode:{{{episode end}}}| |1}} - {{#explode:{{{episode start}}}| |1}})+({{#explode:{{{episode end}}}| |0}} - {{#explode:{{{episode start}}}| |0}}))+2) mod 11}}}}
    {{NaviTable/Range|input=episode|start={{#explode:{{{episode start}}}| |3}}|end={{#explode:{{{episode end}}}| |3}}|pos={{#expr:((({{#explode:{{{episode end}}}| |2}} - {{#explode:{{{episode start}}}| |2}}) + ({{#explode:{{{episode end}}}| |1}} - {{#explode:{{{episode start}}}| |1}})+({{#explode:{{{episode end}}}| |0}} - {{#explode:{{{episode start}}}| |0}}))+3) mod 11}}}}}}}}
    }}
    {{#if:{{{movie|}}}|
    {{!}}-
    !class="cs {{{colorscheme|}}}" align=center bgcolor="#{{{BG|}}}" colspan=12{{!}}'''[[One Piece Movies{{!}}{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">Movies</font>|Movies}}]]'''
    {{!}}-
    {{!}}colspan=12{{!}}{{{movie|}}}
    |{{#if:{{{special|}}}|
    {{!}}-
    !class="cs {{{colorscheme|}}}" align=center bgcolor="#{{{BG|}}}" colspan=12{{!}}'''{{#if:{{{F1|}}}|<font color="#{{{F1|}}}">Specials</font>''' |Specials}}
    {{!}}-
    {{!}}colspan=12{{!}}{{{special|}}}
    }}}}
    |}

    Latest revision as of 06:20, 3 December 2013