Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

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

De Nefald
Hiob (discussion | contributions)
Page créée avec « <!-- Template:Infobox monde - PortableInfobox Version ----------------------------------------------- Infobox template for world/server information using PortableInfobox extension Provides mobile-compatible, semantic infobox for game world specifications with automatic responsive design and improved accessibility. Parameters: - nom: World name (defaults to page name) - image: Image filename - tailleimage: Image size override - légende: Image caption - seed: W... »
 
Hiob (discussion | contributions)
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<!--  
<!--
Template:Infobox monde - PortableInfobox Version
Template:Infobox Monde - PortableInfobox Version with Shared CSS
-----------------------------------------------
---------------------------------------------------------------
Infobox template for world/server information using PortableInfobox extension
Infobox template for Minecraft world information using PortableInfobox extension
 
with centralized CSS styling system.
Provides mobile-compatible, semantic infobox for game world specifications
with automatic responsive design and improved accessibility.


Parameters:
Parameters:
- nom: World name (defaults to page name)
- nom: World name (defaults to page name)
- image: Image filename
- image: World screenshot filename
- tailleimage: Image size override
- tailleimage: Image size override
- légende: Image caption
- légende: Image caption
- seed: World seed value
- seed: World seed value
- type: World type
- type: World type (Normal, Superflat, etc.)
- monde: World identifier for map links
- monde: World identifier for map links
- x, y, z: Spawn coordinates
- x, y, z: Spawn coordinates
- status: Current world status
- status: Current world status
- difficulté: Difficulty level
- difficulté: Difficulty level
-->


-->
<noinclude>{{{{FULLPAGENAME}}/Documentation}}</noinclude>
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>


<includeonly>
<includeonly>
<infobox theme="monde" accent-color-default="#86C705" accent-color-text="#fff">
<templatestyles src="Modèle:Infobox/styles.css" />
 
<infobox theme="monde">
    
    
   <!-- Title Section -->
   <!-- World Title -->
   <title source="nom">
   <title source="nom">{{{nom|{{PAGENAME}}}}}</title>
    <default>{{{nom|{{PAGENAME}}}}}</default>
  </title>
    
    
   <!-- Image Section -->
   <!-- World Screenshot -->
   {{#if:{{{image|}}}|
   {{#if:{{{image|}}}|
   <image source="image">
   <image source="image">
     <default>{{{image}}}</default>
     {{#if:{{{tailleimage|}}}|<alt>{{{tailleimage}}}</alt>}}
     <caption source="légende">
     {{#if:{{{légende|}}}|<caption>{{{légende}}}</caption>}}
      <default>{{{légende|{{PAGENAME}}}}}</default>
    </caption>
   </image>
   </image>
   }}
   }}
    
    
   <!-- Specifications Header -->
   <!-- Technical Specifications Group -->
   <header>Spécificités</header>
   <group name="specifications" layout="default">
 
    <header>Spécifications techniques</header>
  <!-- Seed Information -->
   
  <data source="seed" name="seed">
    <!-- World Seed -->
    <label>Seed</label>
    {{#if:{{{seed|}}}|
    <format>''{{{seed}}}''</format>
    <data source="seed">
  </data>
      <label>Seed</label>
 
      <default><code>{{{seed}}}</code></default>
  <!-- Type Information -->
    </data>
  <data source="type" name="type">
    }}
    <label>Type</label>
   
    <default>{{{type}}}</default>
    <!-- World Type -->
   </data>
    {{#if:{{{type|}}}|
    <data source="type">
      <label>Type de monde</label>
      <default>{{{type}}}</default>
    </data>
    }}
   
    <!-- Difficulty -->
    {{#if:{{{difficulté|}}}|
    <data source="difficulte">
      <label>Difficulté</label>
      <default>{{{difficulté}}}</default>
    </data>
    }}
   
   </group>
    
    
   <!-- Spawn Coordinates (conditional) -->
   <!-- Location Information Group -->
   {{#if:{{{x|}}}{{{y|}}}{{{z|}}}|
   {{#if:{{{x|}}}{{{y|}}}{{{z|}}}|
   <data source="spawn" name="spawn">
   <group name="location" layout="default">
    <label>Spawn</label>
    <header>Localisation</header>
    <format>''[https://map.nefald.fr/?worldname={{{monde}}}&mapname=surface&zoom=4&x={{{x}}}&y={{{y}}}&z={{{z}}} {{{x}}}, {{{y}}}, {{{z}}}]''</format>
   
   </data>
    <!-- Spawn Coordinates -->
    <data source="spawn">
      <label>Spawn</label>
      <default>
        {{#if:{{{monde|}}}|
          [https://map.example.com/?worldname={{{monde}}}&mapname=surface&zoom=4&x={{{x|0}}}&y={{{y|64}}}&z={{{z|0}}}  
          X: {{{x|0}}}, Y: {{{y|64}}}, Z: {{{z|0}}}]
        |
          X: {{{x|0}}}, Y: {{{y|64}}}, Z: {{{z|0}}}
        }}
      </default>
    </data>
   
   </group>
   }}
   }}
    
    
   <!-- Other Information Header -->
   <!-- Server Status Group -->
  <header>Autres infos</header>
 
  <!-- Status (conditional) -->
   {{#if:{{{status|}}}|
   {{#if:{{{status|}}}|
   <data source="status" name="status">
   <group name="status" layout="default">
    <label>Status</label>
    <header>Statut</header>
    <default>{{{status}}}</default>
   
  </data>
    <!-- Current Status -->
  }}
    <data source="status">
 
      <label>État actuel</label>
  <!-- Difficulty (conditional) -->
      <default>
  {{#if:{{{difficulté|}}}|
        {{#switch:{{{status}}}
  <data source="difficulté" name="difficulté">
        |Monde principal=<span style="color: #86C705; font-weight: bold;">🟢 {{{status}}}</span>
    <label>Difficulté</label>
        |Actif=<span style="color: #86C705; font-weight: bold;">🟢 {{{status}}}</span>
    <default>{{{difficulté}}}</default>
        |Inactif=<span style="color: #FFA500; font-weight: bold;">🟡 {{{status}}}</span>
   </data>
        |Archivé=<span style="color: #CC0000; font-weight: bold;">🔴 {{{status}}}</span>
        |En construction=<span style="color: #099DFF; font-weight: bold;">🔵 {{{status}}}</span>
        |{{{status}}}
        }}
      </default>
    </data>
   
   </group>
   }}
   }}
    
    
</infobox>
</infobox>
</includeonly>
</includeonly>


<noinclude>[[Catégorie:Infobox]]</noinclude>
<noinclude>
[[Catégorie:Modèle d'infobox]]
</noinclude>