« Modèle:Infobox Monde » : différence entre les versions
De Nefald
Autres actions
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... » |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<!-- | <!-- | ||
Template:Infobox | Template:Infobox Monde - PortableInfobox Version with Shared CSS | ||
----------------------------------------------- | --------------------------------------------------------------- | ||
Infobox template for world | Infobox template for Minecraft world information using PortableInfobox extension | ||
with centralized CSS styling system. | |||
with | |||
Parameters: | Parameters: | ||
- nom: World name (defaults to page name) | - nom: World name (defaults to page name) | ||
- image: | - 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}}/ | |||
<includeonly> | <includeonly> | ||
<infobox theme="monde | <templatestyles src="Modèle:Infobox/styles.css" /> | ||
<infobox theme="monde"> | |||
<!-- Title | <!-- World Title --> | ||
<title source="nom" | <title source="nom">{{{nom|{{PAGENAME}}}}}</title> | ||
<!-- | <!-- World Screenshot --> | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<image source="image"> | <image source="image"> | ||
< | {{#if:{{{tailleimage|}}}|<alt>{{{tailleimage}}}</alt>}} | ||
<caption | {{#if:{{{légende|}}}|<caption>{{{légende}}}</caption>}} | ||
</image> | </image> | ||
}} | }} | ||
<!-- Specifications | <!-- Technical Specifications Group --> | ||
<header> | <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|}}}| | {{#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|}}}| | {{#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> | </infobox> | ||
</includeonly> | </includeonly> | ||
<noinclude>[[Catégorie: | <noinclude> | ||
[[Catégorie:Modèle d'infobox]] | |||
</noinclude> |