|
|
(14 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}}/doc}}</noinclude>
| |
| | |
| <includeonly> | |
| <templatestyles src="Modèle:Infobox/styles.css" /> | |
| | |
| <infobox theme="monde">
| |
| <!-- Titre principal -->
| |
| <title source="nom">{{{nom|{{PAGENAME}}}}}</title>
| |
|
| |
| <!-- Image du monde -->
| |
| {{#if:{{{image|}}}|
| |
| <image source="image">
| |
| {{#if:{{{tailleimage|}}}|<alt>{{{tailleimage}}}</alt>|<alt>280x200px</alt>}}
| |
| {{#if:{{{légende|}}}|<caption>{{{légende}}}</caption>|<caption>{{PAGENAME}}</caption>}}
| |
| </image>
| |
| }}
| |
|
| |
| <!-- Section Spécificités -->
| |
| <group>
| |
| <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> | | </noinclude> |