« Modèle:VILLE2006 » : différence entre les versions

De Encyclopédie-de-L'AFN_1830-1962
mAucun résumé des modifications
 
mAucun résumé des modifications
Balise : Révocation manuelle
 
(209 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
{{ORI-COMMUN}}[[Catégorie:{{{Pays}}}]]
<includeonly>
{{#define | IMG_ACTU | [[Image:ecu_{{{Nom_ville}}}.gif|center|120px]] }}
{{#phptag:
{{#define | IMG_DEFO | [[Image:ecu_vide.gif|center]] }}
$Nom_ville = $argv['Nom_ville'];
{{#define | MENU_MEDIA '''Médiathèque'''   
*[[:{{{Nom_ville}}} - Ville - DESSINS|DESSINS-CROQUIS]]
$gauche=  $argv['gauche'];
*[[:{{{Nom_ville}}} - Ville - PHOTOS|PHOTOS]]
$haut=  $argv['haut'];
*[[:{{{Nom_ville}}} - Ville - PHOTOS AERIENNES|PHOTOS AERIENNES]]
$Pays=$argv['Pays'];
*[[:{{{Nom_ville}}} - Ville - CARTES POSTALES|CARTES POSTALES]]
*[[:{{{Nom_ville}}} - Ville - FILMS|FILMS]]
if (isset ($argv['Nom_actuel'])) {$Nom_actuel=  $argv['Nom_actuel'];} else {$Nom_actuel= "?";}
*[[:{{{Nom_ville}}} - Ville - SONS-MUSIQUE|SON-MUSIQUE]]
if (isset ($argv['Village'])) {$Village=  $argv['Village'];} else {$Village="non";}
if (isset ($argv['ecu'])) {$ecu=  $argv['ecu'];} else {$ecu= "non";}
if (isset ($argv['Album'])) {$Album=  $argv['Album'];} else {$Album="non";}
if (isset ($argv['Forum'])) {$Forum=  $argv['Forum'];} else {$Forum="non";}
if (isset ($argv['doc'])) {$doc =  $argv['doc'];} else {$doc="";}  
if (isset ($argv['LAT'])) {$LAT =  $argv['LAT'];} else {$LAT="";}
if (isset ($argv['LNG'])) {$LNG =  $argv['LNG'];} else {$LNG="";}
// à tester
// WTitle __construct( NAME, NS_MAIN );
// $nom_page= $name ;
$nom_page= (WTitle::NAME);
 
 
// initialisation des images
$IMG_ACTU= "[[Image:ecu_$Nom_ville.gif|center|120px]]";
$IMG_DEFO = "[[Image:ecu_vide.gif|center]]";
$IMG_MAR = "[[Image:Maroc drapeau.png|center]]";
$IMG_TUN = "[[Image:Tunisie drapeau.gif|center]]";
$IMG_ALG = "[[Image:Algérie drapeau.gif|center]]";
 
// création des menus
$MENU_VILLAGE = "
*[[Historique $Nom_ville - Ville | Historique]]
*[[Historique condensé - $Nom_ville - Ville | Histoire condensée]]
*[[MEDIA $Nom_ville - Ville | Médiathèque]]
*[[NET $Nom_ville - Autres sites | Autres sites Internet]]";
 
$MENU_HISTO ="'''Historique'''
*[[Historique Militaire - $Nom_ville - Ville | Historique Militaire]]";
 
$MENU_MEDIA ="'''Médiathèque'''   
*[[:MEDIA $Nom_ville - Ville - DESSINS|DESSINS-CROQUIS]]
*[[:MEDIA $Nom_ville - Ville - PHOTOS|PHOTOS]]
*[[:MEDIA $Nom_ville - Ville - PHOTOS AERIENNES|PHOTOS AERIENNES]]
*[[:MEDIA $Nom_ville - Ville - CARTES POSTALES|CARTES POSTALES]]
*[[:MEDIA $Nom_ville - Ville - FILMS|FILMS]]
*[[:MEDIA $Nom_ville - Ville - SONS-MUSIQUE|SON-MUSIQUE]]
*[[:MEDIA $Nom_ville - Ville - ALBUM|Album Photos]]
*[[:MEDIA $Nom_ville - Ville - Documents|Documents divers]]";
 
$MENU_RECIT = " '''Souvenirs'''
*[[:Histoires $Nom_ville - Ville - Forum|Forum de discussion]]
*[[:Histoires $Nom_ville - Ville - Photos de classe|Photos de classe]]
*[[:Histoires $Nom_ville - Ville - Récits|Souvenirs et Récits personnels]]
*[[:Histoires $Nom_ville - Ville - Traditions|Traditions locales]]
*[[:Histoires $Nom_ville - Ville - STELE|Stèle]]";
 
$MENU_NORMAL = "
*[[Historique $Nom_ville - Ville | Historique]]
*[[Historique condensé - $Nom_ville - Ville | Histoire condensée]]
*[[Etat AVANT $Nom_ville - Ville | Situation à l'arrivée des Européens]]
*[[Etat APRES $Nom_ville - Ville  | Situation à l'Indépendance]]
*[[Plan $Nom_ville - Ville | Plans]]
*[[Quartiers  $Nom_ville - Ville | Quartiers]]
*[[Population $Nom_ville - Ville | Population]]
*[[MEDIA $Nom_ville - Ville | Médiathèque]]
*[[Histoires $Nom_ville - Ville | J'y ai vécu et je raconte]]
*[[Bibliographie $Nom_ville - Ville | Bibliographie ]]
*[[NET $Nom_ville - Autres sites | Autres sites Internet]]";
 
// ecran divisé en 5 parties initialisation des variables
$ecran_1 ="";
$ecran_2 ="";
$ecran_3 ="";
$ecran_4 ="";
$ecran_5 ="";
 
// condition sur ecu
if ($ecu == "oui") { $ecran_1 =$IMG_ACTU; } else { $ecran_1 =$IMG_DEFO; }
// condition sur pays
if ($Pays == "ALGERIE") {$ecran_1.=$IMG_ALG;}
if ($Pays =="MAROC") {$ecran_1.=$IMG_MAR;}
if ($Pays =="TUNISIE") {$ecran_1.=$IMG_TUN;}
$ecran_1 .=$Pays;
// titre menu gauche
$ecran_2="<span class=ombre_texte><big>[[$Nom_ville - Ville | $Nom_ville]]</biG></span> <span style='margin-left:10px;font-size:small;'>Nom actuel : $Nom_actuel</span>";
// condition sur menu gauche
if ($Village == "oui") { $ecran_2 .= $MENU_VILLAGE;} else  { $ecran_2 .= $MENU_NORMAL;}
//condition sur menu droit
// condition sur page active selon le nom de la page  montes les liens !
$page_en_cours = substr ( $nom_page, 0, 5) ; if ($page_en_cours == "MEDIA") { if ($Village == "oui") {$ecran_3="";} else { $ecran_3=$MENU_MEDIA;} }
$page_en_cours = substr ( $nom_page, 0, 9) ; if ($page_en_cours == "Histoires") { $ecran_3=$MENU_RECIT;}
$page_en_cours = substr ( $nom_page, 0, 10) ; if ($page_en_cours == "Historique") { $ecran_3=$MENU_HISTO;}
 
// implantation des catégories
 
$cible = substr ( $nom_page, 0, 3) ;
$comp = substr ($Nom_ville, 0, 3);
if ($cible == $comp) { $catcat="[[Catégorie:Ville]]"; } else { $catcat="[[Catégorie:PageDeVille]]"; }
 
 
}}
}}
{{#define | MENU_RECIT | '''Souvenirs''' 
 
*[[:{{{Nom_ville}}} - Ville - Photos d'école|Photos d'école]]
 
*[[:{{{Nom_ville}}} - Ville - Récits|Souvenirs et Récits personnels]]
 
*[[:{{{Nom_ville}}} - Ville - Traditions|Traditions locales]]
 
*[[:{{{Nom_ville}}} - Ville - STELE|Stèle]]
{{ORI-COMMUN}}
}}
<table border=0 cellpadding=3 align=center width=733 cellspacing = 0 class=mm_boite_gris style="margin-bottom:35px;">
{{#define | MENU_NORMAL |
<tr BGCOLOR=#bbe5da >
<big>[[{{{Nom_ville}}} - Ville | {{{Nom_ville}}}]]</biG>
<td valign=middle align=center>
*[[Historique {{{Nom_ville}}} - Ville | Historique]]
{{#phptag: echo $ecran_1; }}
*[[Etat AVANT {{{Nom_ville}}} - Ville | Situation à l'arrivée des Européens]]
</td>
*[[Etat APRES {{{Nom_ville}}} - Ville  | Situation à l'Indépendance]]
<td valign=top width=280>
*[[Plan {{{Nom_ville}}} - Ville | Plans de {{{Nom_ville}}}]]
{{#phptag: echo $ecran_2; }}
*[[Quartiers  {{{Nom_ville}}} - Ville | Quartier {{{Nom_ville}}}]]
</td>
*[[Population {{{Nom_ville}}} - Ville | Population]]
<td valign=top width=280>
*[[MEDIA {{{Nom_ville}}} - Ville | Médiathèque]]
{{#phptag: echo $ecran_3; }}
*[[Histoires {{{Nom_ville}}} - Ville | J'y ai vécu et je raconte]]
</td>
}}
<td BGCOLOR=#bbe5da align=center width=135>
{| border=0 cellpadding=3 |
|-
| witdh=200 valign=middle align=center |
{{#ifeq | {{{ecu}}} | non | IMG_DEFO | IMG_ACTU  }}
{{{Pays}}}
| valign=top width=300|
MENU_NORMAL
| valign=top width=300|
{{#ifeq | {{PAGENAME}} | MEDIA {{{Nom_ville}}} - Ville | MENU_MEDIA }}
{{#ifeq | {{PAGENAME}} | Histoires {{{Nom_ville}}} - Ville | MENU_RECIT }}
| align=center |
[[VILLES | Retour Liste des Villes]]
<div style="position: relative">[[Image:cadre_fond.gif]]
<div style="position: relative">[[Image:cadre_fond.gif]]
<!--<div style="position: absolute; left: 0px; top: -30px">
<div style="position: absolute; left: {{#phptag: echo $gauche; }}px; top: {{#phptag: echo $haut;}}px">
{| style="background:lightblue; color:black"
|-
|'''{{{Nom_ville}}}'''
|}
</div>-->
<div style="position: absolute; left: {{{gauche}}}px; top: {{{haut}}}px">
{| style="background:transparent"
{| style="background:transparent"
|-  
|-  
Ligne 53 : Ligne 125 :
</div>
</div>
</div>
</div>
|-
</td>
|}
</tr>
 
<tr BGCOLOR=darkseagreen >
<td align=left width = 140>
 
 
</td>
<td align=center>
</td>
<td align center></td>
<td align=center>''' [[VILLES | Retour<br>Liste des Villes]]'''</td>
</tr>
</table>
{{#phptag: echo $catcat;}}

Dernière version du 4 août 2023 à 11:58