Module:Drapeau
Apparence
[voir] [modifier] [historique] [purger]
Exemples
Pour des exemples, voir la page de test permettant de tester diverses modifications apportées.
code | rendu | modèle |
---|---|---|
{{#Invoke:Drapeau | pays }} | ![]() | |
{{#Invoke:Drapeau | pays | France }} | ![]() | |
{{#Invoke:Drapeau | pays | Égypte}} | ![]() | |
{{#Invoke:Drapeau | pays | Belgique}} | ![]() | |
{{#Invoke:Drapeau | pays | Népal}} | ![]() | |
{{#Invoke:Drapeau | pays | Équateur}} | ![]() | |
{{#Invoke:Drapeau | pays | Émirats arabes unis}} | ![]() | |
{{#Invoke:Drapeau | pays | États-Unis}} | ![]() | |
{{#Invoke:Drapeau | pays | Bordurie}} | ![]() | |
{{#Invoke:Drapeau | pays | FRA}} {{#Invoke:Drapeau | pays | CIO=FRA}} |
![]() | |
{{#Invoke:Drapeau | pays | CIO=UAE}} | ![]() | |
{{#Invoke:Drapeau | pays | ISO=ARE}} | - | |
{{#Invoke:Drapeau | pays | France |align=right}} | France ![]() | |
{{#Invoke:Drapeau | pays | France |lien=non}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=football}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=Marine de guerre}} | ![]() | |
{{#Invoke:Drapeau | pays | Égypte |domaine=Marine de guerre}} | ![]() | |
{{#Invoke:Drapeau | pays | Royaume-Uni |domaine=Marine de guerre}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=JO}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=JO CIO}} | ![]() | |
{{#Invoke:Drapeau | pays|France|cible=[[Laurent Jalabert]]}} | ![]() | |
{{#Invoke:Drapeau | pays|France|cible=[[Laurent Jalabert]]|domaine=}} | ![]() | |
{{#Invoke:Drapeau | pays|France|2000|domaine=JO CIO|cible=[[Tony Estanguet]]}} | ![]() | |
{{#Invoke:Drapeau | pays | France | année=1820}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=football|compétition=en|édition=2000}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=compétition|compétition=jo|édition=2000}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=compétition|compétition=jo|édition=1992}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=compétition|compétition=jo|édition=ete1992}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=handball|compétition=jo|édition=2012}} | ![]() | |
{{#Invoke:Drapeau | pays | France |domaine=pelote basque}} | ![]() |
Syntaxe | Aperçu | Aperçu |
---|---|---|
{{drapeau2|Belgique|t=1}}
|
||
{{drapeau2|Égypte|t=1}}
|
||
{{drapeau2|France|t=1}}
|
||
{{drapeau2|CIO=ISV|t=1}}
|
||
{{drapeau2|Népal|t=1}}
|
Domaines paramétrés
Erreur de script : la fonction « list » n’existe pas.
Pays paramétrés
- Les pays
Erreur de script : la fonction « list » n’existe pas.
- Les pays non-autonome
Erreur de script : la fonction « list » n’existe pas.
- Les dépendances à statut spécial
Erreur de script : la fonction « list » n’existe pas.
- Les pays disparus
Erreur de script : la fonction « list » n’existe pas.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis sa sous-page de documentation. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (modifier).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
--[[
This module is intended to replace the functionality of {{drapeau2}} and related
templates. It provides several methods, including
]]
math_mod = require( "Module:Math" );
globalFrame = nil
drapeau = {};
paysFlag={ france="Flag_of_France.svg", belgique="Flag_of_Belgium.svg" }
--[[
pays
Affiche le pays accompagné de son drapeau {{drapeau2}}
Usage:
{{ Invoke:Drapeau | pays | France }}
]]
function drapeau.pays(frame)
globalFrame = frame
local args = frame.args
if args[1] == nil then
local pFrame = frame:getParent();
args = pFrame.args;
for k,v in pairs( frame.args ) do
args[k] = v;
end
end
for i=1,10 do
if args[i] == nil then
args[i] = ""
else
args[i] = args[i]:match( '^%s*(.-)%s*$' ); --remove whitespace
end
end
return paysFlag[args[1]]
end
function drapeau.Pays(frame)
return drapeau.pays(frame)
end
return drapeau