|
|
(16 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 with Shared CSS
| | | type = normal |
| ---------------------------------------------------------------
| | | nom = {{{nom|{{{1|}}}}}} |
| Infobox template for Minecraft world information using PortableInfobox extension
| | | image = {{{image|}}} |
| with centralized CSS styling system.
| | | tailleimage = {{{tailleimage|}}} |
| | | | legende = {{{legende|}}} |
| Parameters:
| | | seed = {{{seed|}}} |
| - nom: World name (defaults to page name)
| | | monde = {{{monde|}}} |
| - image: World screenshot filename
| | | x = {{{x|}}} |
| - tailleimage: Image size override
| | | y = {{{y|}}} |
| - légende: Image caption
| | | z = {{{z|}}} |
| - seed: World seed value
| | | status = {{{status|}}} |
| - type: World type (Normal, Superflat, etc.)
| | | difficulte = {{{difficulte|}}} |
| - monde: World identifier for map links
| | | acces = {{{access|}}} |
| - x, y, z: Spawn coordinates
| | }}{{#ifeq:{{NAMESPACE}}||[[Catégorie:Monde]]}}</includeonly><noinclude> |
| - status: Current world status
| | {{Documentation}} |
| - difficulté: Difficulty level
| |
| -->
| |
| | |
| <noinclude>{{{{FULLPAGENAME}}/Documentation}}</noinclude>
| |
| | |
| <includeonly> | |
| <templatestyles src="Modèle:Infobox/styles.css" /> | |
| | |
| <infobox theme="monde">
| |
|
| |
| <!-- World Title -->
| |
| <title source="nom">{{{nom|{{PAGENAME}}}}}</title>
| |
|
| |
| <!-- World Screenshot -->
| |
| {{#if:{{{image|}}}|
| |
| <image source="image">
| |
| {{#if:{{{tailleimage|}}}|<alt>{{{tailleimage}}}</alt>}}
| |
| {{#if:{{{légende|}}}|<caption>{{{légende}}}</caption>}}
| |
| </image>
| |
| }}
| |
|
| |
| <!-- Technical Specifications Group -->
| |
| <group name="specifications" layout="default">
| |
| <header>Spécifications techniques</header>
| |
|
| |
| <!-- World Seed -->
| |
| {{#if:{{{seed|}}}|
| |
| <data source="seed">
| |
| <label>Seed</label>
| |
| <default><code>{{{seed}}}</code></default>
| |
| </data>
| |
| }}
| |
|
| |
| <!-- World Type -->
| |
| {{#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>
| |
|
| |
| <!-- Location Information Group -->
| |
| {{#if:{{{x|}}}{{{y|}}}{{{z|}}}|
| |
| <group name="location" layout="default">
| |
| <header>Localisation</header>
| |
|
| |
| <!-- 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>
| |
| }}
| |
|
| |
| <!-- Server Status Group -->
| |
| {{#if:{{{status|}}}|
| |
| <group name="status" layout="default">
| |
| <header>Statut</header>
| |
|
| |
| <!-- Current Status -->
| |
| <data source="status">
| |
| <label>État actuel</label>
| |
| <default>
| |
| {{#switch:{{{status}}}
| |
| |Monde principal=<span style="color: #86C705; font-weight: bold;">🟢 {{{status}}}</span>
| |
| |Actif=<span style="color: #86C705; font-weight: bold;">🟢 {{{status}}}</span>
| |
| |Inactif=<span style="color: #FFA500; font-weight: bold;">🟡 {{{status}}}</span>
| |
| |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>
| |
| | |
| </includeonly>
| |
| | |
| <noinclude>
| |
| [[Catégorie:Modèle d'infobox]]
| |
| </noinclude> | | </noinclude> |