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)
m Ajout accès
 
(17 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<!--
<includeonly><templatestyles src="Infobox/styles.css" />{{#invoke:Infobox|main|Monde
Template:Infobox monde - PortableInfobox Version
| type = normal
-----------------------------------------------
| nom = {{{nom|{{{1|}}}}}}
Infobox template for world/server information using PortableInfobox extension
| image = {{{image|}}}
 
| tailleimage = {{{tailleimage|}}}
Provides mobile-compatible, semantic infobox for game world specifications
| legende = {{{legende|}}}
with automatic responsive design and improved accessibility.
| seed = {{{seed|}}}
 
| monde = {{{monde|}}}
Parameters:
| x = {{{x|}}}
- nom: World name (defaults to page name)
| y = {{{y|}}}
- image: Image filename
| z = {{{z|}}}
- tailleimage: Image size override
| status = {{{status|}}}
- légende: Image caption
| difficulte = {{{difficulte|}}}
- seed: World seed value
| acces = {{{access|}}}
- type: World type
}}{{#ifeq:{{NAMESPACE}}||[[Catégorie:Monde]]}}</includeonly><noinclude>
- monde: World identifier for map links
{{Documentation}}
- x, y, z: Spawn coordinates
</noinclude>
- status: Current world status
- difficulté: Difficulty level
 
-->
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
<includeonly>
<infobox theme="monde" accent-color-default="#86C705" accent-color-text="#fff">
 
  <!-- Title Section -->
  <title source="nom">
    <default>{{{nom|{{PAGENAME}}}}}</default>
  </title>
 
  <!-- Image Section -->
  {{#if:{{{image|}}}|
  <image source="image">
    <default>{{{image}}}</default>
    <caption source="légende">
      <default>{{{légende|{{PAGENAME}}}}}</default>
    </caption>
  </image>
  }}
 
  <!-- Specifications Header -->
  <header>Spécificités</header>
 
  <!-- Seed Information -->
  <data source="seed" name="seed">
    <label>Seed</label>
    <format>''{{{seed}}}''</format>
  </data>
 
  <!-- Type Information -->
  <data source="type" name="type">
    <label>Type</label>
    <default>{{{type}}}</default>
  </data>
 
  <!-- Spawn Coordinates (conditional) -->
  {{#if:{{{x|}}}{{{y|}}}{{{z|}}}|
  <data source="spawn" name="spawn">
    <label>Spawn</label>
    <format>''[https://map.nefald.fr/?worldname={{{monde}}}&mapname=surface&zoom=4&x={{{x}}}&y={{{y}}}&z={{{z}}} {{{x}}}, {{{y}}}, {{{z}}}]''</format>
  </data>
  }}
 
  <!-- Other Information Header -->
  <header>Autres infos</header>
 
  <!-- Status (conditional) -->
  {{#if:{{{status|}}}|
  <data source="status" name="status">
    <label>Status</label>
    <default>{{{status}}}</default>
  </data>
  }}
 
  <!-- Difficulty (conditional) -->
  {{#if:{{{difficulté|}}}|
  <data source="difficulté" name="difficulté">
    <label>Difficulté</label>
    <default>{{{difficulté}}}</default>
  </data>
  }}
 
</infobox>
</includeonly>
 
<noinclude>[[Catégorie:Infobox]]</noinclude>