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)
Aucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
Balises : Modification par mobile Modification par le web mobile
Ligne 1 : Ligne 1 :
<!--
Template:Infobox Monde - PortableInfobox Version with Shared CSS
---------------------------------------------------------------
Infobox template for Minecraft world information using PortableInfobox extension
with centralized CSS styling system.
Parameters:
- nom: World name (defaults to page name)
- image: World screenshot filename
- tailleimage: Image size override
- légende: Image caption
- seed: World seed value
- type: World type (Normal, Superflat, etc.)
- monde: World identifier for map links
- x, y, z: Spawn coordinates
- status: Current world status
- difficulté: Difficulty level
-->
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
<includeonly>
<includeonly>
<templatestyles src="Modèle:Infobox/styles.css" />
{{#css:Modèle:Infobox/styles.css}}
 
{{#invoke:Infobox|main
<infobox theme="monde">
| type = monde
  <!-- Titre principal -->
| nom = {{{nom|{{{1|}}}}}}
  <title source="nom">{{{nom|{{PAGENAME}}}}}</title>
| image = {{{image|}}}
 
| tailleimage = {{{tailleimage|}}}
  <!-- Image du monde -->
| legende = {{{legende|}}}
  {{#if:{{{image|}}}|
| seed = {{{seed|}}}
  <image source="image">
| type = {{{type|}}}
    {{#if:{{{tailleimage|}}}|<alt>{{{tailleimage}}}</alt>|<alt>280x200px</alt>}}
| monde = {{{monde|}}}
    {{#if:{{{légende|}}}|<caption>{{{légende}}}</caption>|<caption>{{PAGENAME}}</caption>}}
| x = {{{x|}}}
  </image>
| y = {{{y|}}}
  }}
| z = {{{z|}}}
 
| status = {{{status|}}}
  <!-- Section Spécificités -->
| difficulte = {{{difficulte|}}}
  <group>
}}</includeonly>
    <header>Spécificités</header>
   
    <!-- Seed -->
    {{#if:{{{seed|}}}|
    <data source="seed">
      <label>Seed</label>
      <default><span class="seed-value">{{{seed}}}</span></default>
    </data>
    }}
   
    <!-- Type de monde -->
    {{#if:{{{type|}}}|
    <data source="type">
      <label>Type</label>
      <default>{{{type}}}</default>
    </data>
    }}
   
    <!-- Coordonnées Spawn -->
    {{#if:{{{x|}}}{{{y|}}}{{{z|}}}|
    <data source="spawn">
      <label>Spawn</label>
      <default>
        {{#if:{{{monde|}}}|
          <span class="spawn-coords">[https://map.nefald.fr/?worldname={{{monde}}}&mapname=surface&zoom=4&x={{{x}}}&y={{{y}}}&z={{{z}}} {{{x}}}, {{{y}}}, {{{z}}}]</span>
        |
          <span class="spawn-coords">{{{x}}}, {{{y}}}, {{{z}}}</span>
        }}
      </default>
    </data>
    }}
  </group>
 
  <!-- Section Autres infos -->
  {{#if:{{{status|}}}{{{difficulté|}}}|
  <group>
    <header>Autres infos</header>
   
    <!-- Status -->
    {{#if:{{{status|}}}|
    <data source="status">
      <label>Status</label>
      <default>{{{status}}}</default>
    </data>
    }}
   
    <!-- Difficulté -->
    {{#if:{{{difficulté|}}}|
    <data source="difficulte">
      <label>Difficulté</label>
      <default>{{{difficulté}}}</default>
    </data>
    }}
  </group>
  }}
</infobox>
</includeonly>
 
 
<noinclude>
[[Catégorie:Modèle d'infobox]]
</noinclude>