Discuter:Grand Djihad

Un article de ShadowWiki.

Jump to: navigation, search

Comment fait on une infobox sur le modèle de Wikipedia pour les conflits militaires ?Shadmad 12 octobre 2007 à 19:34 (CEST)

Euh... Tu veux dire un truc au code aussi complexe que ça?
{| class="infobox" style="width: 300px;" |+ style="background: #EEE; color:black;" | {{{conflit|{{PAGENAME}}}}} |- {{#if:{{{image|}}} | {{!}} {{#if:{{{combattants3|}}} | colspan="3" | colspan="2" }} class="infoboximage" style="padding:0.5em" {{!}} {{{image|}}}<br/><small>{{{légende|}}}</small> }} |- | {{#if:{{{combattants3|}}} | colspan="3" | colspan="2" }} style="background: #EEE;" class="infoboxsoustitre" {{!}} Informations générales |- ! Date | {{{date|}}} |- ! Lieu | {{{lieu|}}} |- {{#if:{{{casus|}}} | ! ''[[Casus belli|Casus belli]]'' {{!}} {{{casus|}}} }} |- {{#if:{{{territoires|}}} | ! Changements territoriaux {{!}} {{{territoires|}}} }} |- ! Issue | {{{issue|}}} |- {{#if:{{{combattants1|}}}{{{combattants2|}}}{{{combattants3|}}} | {{!}} {{#if:{{{combattants3|}}} | colspan="3" | colspan="2" }} style="background: #EEE;" class="infoboxsoustitre" {{!}} Belligérants }} |- {{#if:{{{combattants1|}}}{{{combattants2|}}}{{{combattants3|}}} | {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{combattants1|}}} {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{combattants2|}}} {{#if:{{{combattants3|}}} | {{!}} width="33%" {{!}} {{{combattants3|}}} }}}} |- {{#if:{{{commandant1|}}}{{{commandant2|}}}{{{commandant3|}}} | {{!}} {{#if:{{{commandant3|}}} | colspan="3" |colspan="2" }} class="infoboxsoustitre" style="background: #EEE; text-algn:left;" {{!}} Commandants }} |- {{#if:{{{commandant1|}}}{{{commandant2|}}}{{{commandant3|}}} | {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{commandant1|}}} {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{commandant2|}}} {{#if:{{{combattants3|}}} | {{!}} width="33%" {{!}} {{{commandant3|}}} }}}} |- {{#if:{{{forces1|}}}{{{forces2|}}}{{{forces3|}}} | {{!}} {{#if:{{{commandant3|}}} | colspan="3" | colspan="2" }} class="infoboxsoustitre" style="background: #EEE;" {{!}} Forces en présence }} |- {{#if:{{{forces1|}}}{{{forces2|}}}{{{forces3|}}} | {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{forces1|}}} {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{forces2|}}} {{#if:{{{combattants3|}}} | {{!}} width="33%" {{!}} {{{forces3|}}} }}}} |- {{#if:{{{pertes1|}}}{{{pertes2|}}}{{{pertes3|}}} | {{!}} {{#if:{{{combattants3|}}} | colspan="3" | colspan="2" }} class="infoboxsoustitre" style="background: #EEE;" {{!}} Pertes }} |- {{#if:{{{pertes1|}}}{{{pertes2|}}}{{{pertes3|}}} | {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{pertes1|}}} {{!}} {{#if:{{{combattants3|}}} | width="33%" | width="50%" }} style="text-align:left;vertical-align:top;" {{!}} {{{pertes2|}}} {{#if:{{{combattants3|}}} | {{!}} width="33%" {{!}} {{{pertes3|}}} }}}} |- {{#if:{{{combattants3|}}} | | {{#if:{{{pertes3|}}} | {{!}} colspan="2" style="text-align: center;" {{!}} style="text-align:left;vertical-align:top;" {{{pertes3|}}} }}}} |- {{#if:{{{guerre|}}} | {{!}} {{#if:{{{combattants3|}}} | colspan="3" | colspan="2" }} style="text-align: center; background: #EEE; font-size:110%;" {{!}} '''{{{guerre|}}}''' }} |- {{#if:{{{batailles|}}} | {{!}} {{#if:{{{commandant3|}}} | colspan="3" | colspan="2" }} class="infoboxsoustitre" style="background: #EEE;" {{!}} Batailles }} |- {{#if:{{{batailles|}}} | {{!}} {{#if:{{{combattants3|}}}|colspan="3"|colspan="2"}} {{!}} {{{batailles|}}} }} |- {{#if:{{{notes|}}} | {{!}} {{#if:{{{commandant3|}}} | colspan="3" | colspan="2" }} class="infoboxsoustitre" style="background: #EEE;" {{!}} Notes }} |- {{#if:{{{notes|}}} | {{!}} {{#if:{{{combattants3|}}}|colspan="3"|colspan="2"}} {{!}} {{{notes|}}} }} |}<noinclude> <br style="clear:right;" /> {{Modèle utilisant les ParserFunctions}} {{Projet:Histoire militaire/infobox conflit militaire}} [[Catégorie:Modèle infobox militaire|Conflit]] [[da:Skabelon:Militær konflikt]] [[el:Πρότυπο:Μάχη]] [[en:Template:Infobox Military Conflict]] [[fi:Malline:Taistelu]] [[it:Template:Conflitto]] [[nl:Sjabloon:Infobox Militair Conflict]] [[no:Mal:Infoboks slag]] [[ro:Format:Infobox_conflict_militar]] [[sv:Mall:Slagfakta]] [[zh:Template:Infobox Military]] </noinclude>
Laisse tomber, c'est beaucoup trop complexe à la fois pour nous et pour l'outil MediaWiki de ShadowWiki, je crois! Faudra se contenter d'un modèle beaucoup plus modeste, je pense, de ce style.
El Comandante Hasta ∞ 13 octobre 2007 à 02:34 (CEST)


Le texte en dehors de la infobox est illisible en étant ressérré à droite, je préfère autant qu'il n'y ai pas de boîte, plutôt que d'avoir ce résultat... Shadmad 15 octobre 2007 à 11:38 (CEST)
J'ai fait du mieux que j'ai pu, mais il doit y avoir moyen d'arriver à faire flotter le tableau en haut à droite, avec un meilleur code. Mieux vaut laisser comme cela en espérant qu'on ait un jour un participant assez technique pour y parvenir, non? El Comandante Hasta ∞ 15 octobre 2007 à 15:57 (CEST)

Gasp...c'est moche. Personne n'a une solution pour la mise en page ?

--Caimbeul 8 mars 2009 à 21:08 (CET)
Nexus