Différences entre les versions de « Modèle:Menu »

Le WikiHalo rappelle à ses contributeurs que toute information ajoutée doit être officielle et vérifiable. Les contributions sans sources et les théories sur Halo Infinite seront rejetées.

Ligne 4 : Ligne 4 :
| <div class="entete">[[{{{1}}}]]</div>
| <div class="entete">[[{{{1}}}]]</div>
|-
|-
| {{ #ifexpr:  1 <  {{#expr: {{SUBPAGENAME}} - 5 }} | [[N°:1|{{{1}}}:1]] • ... • |}} {{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 5 }} | then=[[:#expr: {{SUBPAGENAME}} - 5|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 5 }}]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 4 }} | then=[[:#expr: {{SUBPAGENAME}} - 4|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 4 }}]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 3 }} | then=[[:#expr: {{SUBPAGENAME}} - 3|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 3 }}]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 2 }} | then=[[:#expr: {{SUBPAGENAME}} - 2|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 2 }}]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }} | then=[[:#expr: {{SUBPAGENAME}} - 1|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }}]] • | else=}} {{{1}}} {{SUBPAGENAME}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }}]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 2 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 2 }}]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 3 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 3 }}]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 4 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 4 }}]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 5 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 5 }}]]| else=}}{{ #ifexpr:  {{{2}}} >  {{#expr: {{SUBPAGENAME}} + 5 }} | • ... • [[{{{1}}}:{{{2}}}]]|}}
| {{ #ifexpr:  1 <  {{#expr: {{SUBPAGENAME}} - 5 }} | [[{{{1}}}:1|N°:1]] • ... • |}} {{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 5 }} | then=[[{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 5 }}|N°:#expr: {{SUBPAGENAME}} - 5 ]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 4 }} | then=[[|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 4 }}|N°:#expr: {{SUBPAGENAME}} - 4]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 3 }} | then=[[|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 3 }}| N°:#expr: {{SUBPAGENAME}} - 3]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 2 }} | then=[[|{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 2 }}| N°:#expr: {{SUBPAGENAME}} - 2]] • | else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }} | then=[[ {{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }}| N°:#expr: {{SUBPAGENAME}} - 1]] • | else=}} {{{1}}} {{SUBPAGENAME}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }}|N°:#expr: {{SUBPAGENAME}} + 1]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 2 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 2 }}|N°:#expr: {{SUBPAGENAME}} + 2]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 3 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 3 }}|N°:#expr: {{SUBPAGENAME}} + 3]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 4 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 4 }}|N°:#expr: {{SUBPAGENAME}} + 4]]| else=}}{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 5 }} | then= • [[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 5 }}|N°:#expr: {{SUBPAGENAME}} + 5]]| else=}}{{ #ifexpr:  {{{2}}} >  {{#expr: {{SUBPAGENAME}} + 5 }} | • ... • [[{{{1}}}:{{{2}}}|N°{{{2}}}]]
|-
|-
|{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }} | then=[[{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }}|Précédente]] | else=Première page }} -- {{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }} | then=[[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }}|Suivante]] | else=Dernière page }}  
|{{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }} | then=[[{{{1}}}:{{ #expr: {{SUBPAGENAME}} - 1 }}|Précédente]] | else=Première page }} -- {{exists | page={{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }} | then=[[{{{1}}}:{{ #expr: {{SUBPAGENAME}} + 1 }}|Suivante]] | else=Dernière page }}  

Version du 20 janvier 2009 à 00:37

Ce "menu" sert a generer des menus avec suivant précédant dans les categories specialement crées.