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

De Encyclopédie-de-L'AFN_1830-1962
mAucun résumé des modifications
mAucun résumé des modifications
 
(12 versions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
$Nom_actuel=  $argv['Nom_actuel'];  
$Nom_actuel=  $argv['Nom_actuel'];  
$gauche=  $argv['gauche'];  
$gauche=  $argv['gauche'];  
$haut=  $argv['haut'];
$haut=  $argv['haut'];
$Village=  $argv['Village'];  
$Pays=$argv['Pays'];  
$Pays=   $argv['Pays'];  
$ecu=  $argv['ecu'];
$Album=  $argv['Album'];
$Forum=  $argv['Forum']; 
$LAT=  $argv['LAT'];  
$LAT=  $argv['LAT'];  
$LNG=  $argv['LNG'];  
$LNG=  $argv['LNG'];  
$doc =  $argv['doc'];  
 
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="";}




Ligne 24 : Ligne 25 :
$IMG_ACTU= "[[Image:ecu_$Nom_ville.gif|center|120px]]";
$IMG_ACTU= "[[Image:ecu_$Nom_ville.gif|center|120px]]";
$IMG_DEFO = "[[Image:ecu_vide.gif|center]]";
$IMG_DEFO = "[[Image:ecu_vide.gif|center]]";
$IMG_MAROC = "[[Image:Maroc drapeau.png|center]]";
$IMG_MAR = "[[Image:Maroc drapeau.png|center]]";
$IMG_TUN = "[[Image:Tunisie drapeau.gif|center]]";
$IMG_TUN = "[[Image:Tunisie drapeau.gif|center]]";
$IMG_ALG = "[[Image:Algérie drapeau.gif|center]]";
$IMG_ALG = "[[Image:Algérie drapeau.gif|center]]";
Ligne 74 : Ligne 75 :
if ($ecu == "oui") { $ecran_1 =$IMG_ACTU; } else { $ecran_1 =$IMG_DEFO; }
if ($ecu == "oui") { $ecran_1 =$IMG_ACTU; } else { $ecran_1 =$IMG_DEFO; }
// condition sur pays
// condition sur pays
$ecran_1 .= $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
// titre menu gauche
$ecran_2="<span class=ombre_texte><big>[[$Nom_ville - Ville | $Nom_ville]]</biG></span> Nom_actuel : $Nom_actuel";
$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
// condition sur menu gauche
if ($Village == "oui") { $ecran_2 .= $MENU_VILLAGE;} else  { $ecran_2 .= $MENU_NORMAL;}
if ($Village == "oui") { $ecran_2 .= $MENU_VILLAGE;} else  { $ecran_2 .= $MENU_NORMAL;}
Ligne 91 : Ligne 95 :


{{ORI-COMMUN}}
{{ORI-COMMUN}}
<table border=0 cellpadding=3 align=center width=733 cellspacing = 0 >
<table border=0 cellpadding=3 align=center width=733 cellspacing = 0 class=mm_boite_gris >
<tr BGCOLOR=#bbe5da >
<tr BGCOLOR=#bbe5da >
<td valign=middle align=center>
<td valign=middle align=center>
Ligne 116 : Ligne 120 :
<tr BGCOLOR=darkseagreen >
<tr BGCOLOR=darkseagreen >
<td align=left width = 140>
<td align=left width = 140>
{{#ifeq | {{{doc}}} ||| [[Documentation {{{Nom_ville}}} - Supplément | Documents Supplémentaires]] }}
'''{{#ifeq | {{{Album|}}} ||| [{{{Album}}}  Album ] {{#ifeq | {{{Forum|}}} ||| " - " }} }}'''
'''{{#ifeq | {{{Forum|}}} ||| [{{{Forum}}}  Forum] }}'''
<!--[http://anom.archivesnationales.culture.gouv.fr/caomec2/resultats.php?territoire={{{Pays}}}&commune={{#strtoupper|{{#str_replace|" "|+|{{{Nom_ville}}}}}}} Archives officielles]-->
<!--Remplacer espaces par '+' et affecter à la variable 'NOM_VILLE'-->
{{#setvar| NOM_VILLE | {{#str_replace|" "| "+" | {{{Nom_ville}}} }} }}
<!--Remplacer '-' par '+' et affecter à la variable 'NOM_VILLE'-->
{{#setvar| NOM_VILLE | {{#str_replace|"-"| "+" | {{#var|NOM_VILLE}} }} }}
<!--supprimer les caractères accentués du paramètre-->
<!--le é-->
{{#setvar|NOM_VILLE | {{#str_replace | é| e| {{#var|NOM_VILLE}} }} }}
<!--le è-->
{{#setvar|NOM_VILLE | {{#str_replace | è| e| {{#var|NOM_VILLE}} }} }}
<!--le ê-->
{{#setvar|NOM_VILLE | {{#str_replace | ê| e| {{#var|NOM_VILLE}} }} }}
<!--le ë-->
{{#setvar|NOM_VILLE | {{#str_replace | ë| e| {{#var|NOM_VILLE}} }} }}
<!--le à-->
{{#setvar|NOM_VILLE | {{#str_replace | à| a| {{#var|NOM_VILLE}} }} }}
<!--le â-->
{{#setvar|NOM_VILLE | {{#str_replace | â| a| {{#var|NOM_VILLE}} }} }}
<!--le ä-->
{{#setvar|NOM_VILLE | {{#str_replace | ä| a| {{#var|NOM_VILLE}} }} }}
<!--le î-->
{{#setvar|NOM_VILLE | {{#str_replace | î| i| {{#var|NOM_VILLE}} }} }}
<!--le ï-->
{{#setvar|NOM_VILLE | {{#str_replace | ï| i| {{#var|NOM_VILLE}} }} }}
<!--le ô-->
{{#setvar|NOM_VILLE | {{#str_replace | ô| o| {{#var|NOM_VILLE}} }} }}
<!--le ö-->
{{#setvar|NOM_VILLE | {{#str_replace | ö| o| {{#var|NOM_VILLE}} }} }}
<!--le ù-->
{{#setvar|NOM_VILLE | {{#str_replace | ù| u| {{#var|NOM_VILLE}} }} }}
<!--le û-->
{{#setvar|NOM_VILLE | {{#str_replace | û| u| {{#var|NOM_VILLE}} }} }}
<!--le ü-->
{{#setvar|NOM_VILLE | {{#str_replace | ü| u| {{#var|NOM_VILLE}} }} }}
<!--Passer en majuscule et affecter à la variable 'NOM_VILLE'-->
{{#setvar| NOM_VILLE | {{#strtoupper|{{#var|NOM_VILLE}} }} }}


<!--Affecter le paramètre Pays à la variable '_PAYS'-->
{{#setvar |_PAYS | {{{Pays}}} }}


<!--N'appeler les archives que s'il s'agit d'une commune algérienne
{{#ifeq | {{{Pays}}} | ALGERIE  |[http://anom.archivesnationales.culture.gouv.fr/caomec2/resultats.php?territoire={{#var|_PAYS}}&commune={{#var|NOM_VILLE}} Archives officielles] }}
supprimé car génère une erreur
-->
</td>
</td>
<td align=center>
<td align=center>

Dernière version du 29 avril 2018 à 18:45