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

Aller à la navigation Aller à la recherche
aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 6 : Ligne 6 :
|header1 = Informations générales
|header1 = Informations générales
|label2  = [[Fichier:IconDynmap.png|alt=|16px]] Coordonnées
|label2  = [[Fichier:IconDynmap.png|alt=|16px]] Coordonnées
|data2    = [https://map.steamhouse.org/?worldname={{#if: {{{dynmapWorld|}}} | {{{dynmapWorld}}} | world }}&mapname={{#ifeq: {{{dynmapView|}}} | surface | surface | flat }}&zoom={{#if: {{{dynmapZoom|}}} | {{{dynmapZoom}}} | 0 }}&x={{#if: {{{xCoord|}}} | {{{xCoord}}} | 0}}&y={{#if: {{{yCoord|}}} | {{{yCoord}}} | 0}}&z={{#if: {{{zCoord|}}} | {{{zCoord}}} | 0}} {{#if: {{{xCoord|}}} | {{{xCoord}}} | 0}}, {{#if: {{{yCoord|}}} | {{{yCoord}}} | 0}}, {{#if: {{{zCoord|}}} | {{{zCoord}}} | 0}}]
|data2    = [https://map.steamhouse.org/?worldname={{#if: {{{dynmapWorld|}}} | {{{dynmapWorld}}} | world }}&mapname={{#ifeq: {{{dynmapView|}}} | surface | flat | surface }}&zoom={{#if: {{{dynmapZoom|}}} | {{{dynmapZoom}}} | 0 }}&x={{#if: {{{xCoord|}}} | {{{xCoord}}} | 0}}&y={{#if: {{{yCoord|}}} | {{{yCoord}}} | 0}}&z={{#if: {{{zCoord|}}} | {{{zCoord}}} | 0}} {{#if: {{{xCoord|}}} | {{{xCoord}}} | 0}}, {{#if: {{{yCoord|}}} | {{{yCoord}}} | 0}}, {{#if: {{{zCoord|}}} | {{{zCoord}}} | 0}}]
|label3  = [[Fichier:IconFaction.png|alt=|16px]] Faction
|label3   = [[Fichier:IconLocalisation.png|alt=|16px]] Localisation
|data3   = {{#if: {{{faction|}}} | [[{{{faction}}} (Faction)| {{{faction}}}]][[Catégorie:{{{faction}}}]] | Aucune }}
|data3    = {{{localisation|}}}
|label4   = [[Fichier:IconLocalisation.png|alt=|16px]] Localisation
|label4   = [[Fichier:IconFaction.png|alt=|16px]] Faction
|data4   = {{{localisation|}}}
|data4   = {{#if: {{{faction|}}} | [[{{{faction}}} (Faction)| {{{faction}}}]][[Catégorie:{{{faction}}}]]}}
|label5   = [[Fichier:IconTheme.png|alt=|16px]] Thème
|label5   = Date de création
|data5   = {{#if: {{{musicLink|}}} | [{{{musicLink}}} Lien Youtube] | Pas de musique}}
|data5   = {{{datelorecreate|}}}
|header6 = Type de lieu
|label6   = [[Fichier:IconTheme.png|alt=|16px]] Thème
|data7   = {{#if: {{{iconPlace|}}} | [[Fichier:IconPlaces{{{iconPlace}}}.png|alt=|64px]] | Pas d’icône }}
|data6   = {{#if: {{{musicLink|}}} | [{{{musicLink}}} Lien Youtube] | Pas de musique}}
|header7 = Type de lieu
|data8   = {{#if: {{{iconPlace|}}} | [[Fichier:IconPlaces{{{iconPlace}}}.png|alt=|64px]] | Pas d’icône }}
|header9 = Métadonnées
|header9 = Métadonnées
|label10  = [[Fichier:IconCreatorNPC.png|alt=|16px]] Constructeur
|label10  = [[Fichier:IconCreatorNPC.png|alt=|16px]] Constructeur
Ligne 24 : Ligne 26 :
}}
}}
<includeonly>[[Catégorie:Lieux]]</includeonly>
<includeonly>[[Catégorie:Lieux]]</includeonly>
<noinclude>
<templatedata>
{
"params": {
"title": {
"label": "Titre Infobox",
"description": "Titre de l'infobox",
"default": "Le titre de la page",
"type": "string"
},
"infoboxPicture": {
"label": "Nom normalisé",
"description": "Le nom normalisé de l'image, permettant l'affichage automatique de l'image d'infobox",
"example": "\"Abysses\" \"SpaceUnion\"",
"type": "string",
"default": "PlaceholderLieux"
},
"dynmapWorld": {
"label": "Monde dynmap",
"description": "Monde à afficher sur la dynmap",
"example": "\"world\" \"idblock\"",
"default": "world"
},
"dynmapView": {
"label": "Vue dynmap",
"description": "Vue en 3D ou en 2D",
"example": "\"Surface\" ou \"Flat\"",
"type": "string",
"default": "surface"
},
"dynmapZoom": {
"label": "Zoom dynmap",
"description": "Taille du zoom. 0 étant le plus petit et 6 le plus grand.",
"type": "number",
"default": "0"
},
"xCoord": {
"label": "Coordonnée X",
"type": "number"
},
"yCoord": {
"label": "Coordonnée Y",
"type": "number"
},
"zCoord": {
"label": "Coordonnée Z",
"type": "number"
},
"faction": {
"label": "Faction",
"description": "La faction auquel appartient le lieu",
"example": "\"Revolution's Thunder\" \"Hostile\" \"Aucune\" \"Pacifique\"",
"type": "string"
},
"localisation": {
"label": "Localisation",
"description": "Où se situe le lieu",
"example": "\"Revolution's Thunder\" \"Forêt de Travers\"",
"type": "string"
},
"musicLink": {
"label": "Musique",
"description": "Lien Youtube vers la musique du lieu",
"example": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"default": "\"Pas de musique\""
},
"iconPlace": {
"label": "Icone",
"description": "Icone à afficher qui indique le type de lieu",
"default": "Aucune"
},
"creator": {
"label": "Créateur",
"description": "Qui a créé le lieu (IRL) ?",
"type": "wiki-user-name"
},
"contributors": {
"label": "Contributeurs",
"description": "Liste des contributeurs au projet (IRL)",
"type": "string"
},
"datecreate": {
"label": "Date de création",
"description": "Quand le lieu à été construit (IRL)",
"example": "2017, Janvier 2020, 15 Novembre 2018",
"type": "date"
},
"datelorecreate": {
"label": "Date de création (lore)",
"description": "Quand le lieu à été créé dans le lore",
"type": "string"
}
},
"description": "Infobox pour les lieux comme des maisons, des caves, etc",
"paramOrder": [
"title",
"infoboxPicture",
"dynmapWorld",
"dynmapView",
"dynmapZoom",
"xCoord",
"yCoord",
"zCoord",
"datelorecreate",
"faction",
"localisation",
"musicLink",
"iconPlace",
"creator",
"contributors",
"datecreate"
]
}
</templatedata>
</noinclude>

Menu de navigation