Template:BattleTemplate: Difference between revisions
No edit summary Tag: Reverted |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width: | {| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:350px; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5" | ||
|- | |- | ||
|<div> | |<div> | ||
Line 6: | Line 6: | ||
! class="summary" colspan="2" style="background-color:#212121;text-align:center;vertical-align:middle;font-size:200%;border: 2px solid #FFFFFF;color: #FFFFFF;" | {{{name|{{{title1|{{PAGENAME}}}}}}}} | ! class="summary" colspan="2" style="background-color:#212121;text-align:center;vertical-align:middle;font-size:200%;border: 2px solid #FFFFFF;color: #FFFFFF;" | {{{name|{{{title1|{{PAGENAME}}}}}}}} | ||
|- | |- | ||
| style="background-color: | | style="background-color:#EEEEEE;text-align:center;vertical-align:middle;color: grey; {{#if:{{{part_of|}}}| |display: none;}}" colspan="2" | Part of: {{{part_of|}}} | ||
|- | |- | ||
| style="text-align:center;{{#if:{{{image|}}}| |display: none;}}" | {{{image|}}} | | style="text-align:center;{{#if:{{{image|}}}| |display: none;}}" | {{{image|}}} | ||
Line 69: | Line 69: | ||
! class="summary" colspan="2" style="text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Casualties and losses''' | ! class="summary" colspan="2" style="text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Casualties and losses''' | ||
|- style="{{#if:{{{losses1|}}}{{{losses2|}}}{{{losses3|}}}| |display: none;}}" | |- style="{{#if:{{{losses1|}}}{{{losses2|}}}{{{losses3|}}}| |display: none;}}" | ||
| | | | ||
{| cellspacing="1" cellpadding="1" style="text-align: left;" | {| cellspacing="1" cellpadding="1" style="text-align: left;" | ||
| style="vertical-align:top;{{#if:{{{beligerent1|}}}||{{#if:{{{losses1|}}}|display: none;|}}}}{{#if:{{{beligerent1|}}}|width: calc(100%/ | | style="vertical-align:top;{{#if:{{{beligerent1|}}}||{{#if:{{{losses1|}}}|display: none;|}}}}{{#if:{{{beligerent1|}}}|width: calc(100%/2);|width: calc(100%/2);}}" | {{{losses1|}}} | ||
| style="height: 100%; width: 1px; border-right: 1px dotted #AAAAAA;" | | | style="height: 100%; width: 1px; border-right: 1px dotted #AAAAAA;" | | ||
| style="vertical-align:top;{{#if:{{{ | | style="vertical-align:top;{{#if:{{{beligerent2|}}}||{{#if:{{{losses2|}}}|display: none;|}}}}{{#if:{{{beligerent2|}}}|width: calc(100%/2);|width: calc(100%/2);}}" | {{{losses2|}}} | ||
| style="height: 100%; width: 1px; border-right: 1px dotted #AAAAAA; {{#if:{{{ | | style="height: 100%; width: 1px; border-right: 1px dotted #AAAAAA; {{#if:{{{beligerent1|}}}| |display: none;}}" | | ||
| style="vertical-align:top;{{#if:{{{ | |} | ||
|- style="{{#if:{{{losses1|}}}{{{losses2|}}}{{{losses3|}}}| |display: none;}}" | |||
! class="summary" colspan="2" style="text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Other Casualties and losses''' | |||
|- style="{{#if:{{{losses1|}}}{{{losses2|}}}{{{losses3|}}}| |display: none;}}" | |||
{| cellspacing="1" cellpadding="1" style="text-align: left;" | |||
| style="height: 100%; width: 1px; border-right: 1px dotted #AAAAAA; {{#if:{{{beligerent1|}}}| |display: none;}}" | | |||
| style="vertical-align:top;{{#if:{{{beligerent1|}}}|width: calc(100%/1);|{{#if:{{{losses3|}}}|width: 100%;|display: none;}}}}" | {{{losses3|}}} | |||
|} | |} | ||
|- | |- | ||
|}</div> | |}</div> | ||
|}<noinclude> | |}<noinclude> | ||
fix please add TemplateData extension | |||
<pre> | |||
How to use: | |||
1-) Put this in a page | |||
2-) Then add the parameters | |||
3-) If there are no info about a parameter | |||
just make it empty | |||
4-) And your finished! | |||
</pre> | |||
<pre> | <pre> | ||
{{Battle | {{Battle | ||
Line 107: | Line 123: | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | |||
{ | |||
"description": "Battle Template For Everyone :D", | |||
"params": { | |||
"part_of": { | |||
"label": "Part Of Text", | |||
"required": false, | |||
"type": "string", | |||
"description": "If the battle part of a war or something like that use this" | |||
}, | |||
"name": { | |||
"label": "Name of The Battle", | |||
"required": false, | |||
"type": "string", | |||
"description": "Name of the battle", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"required": false, | |||
"description": "Image of the Battle", | |||
"suggested": true | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "Cation of the Image", | |||
"type": "string" | |||
}, | |||
"date": { | |||
"label": "date", | |||
"suggested": true, | |||
"required": false, | |||
"type": "string", | |||
"description": "Date of the battle" | |||
}, | |||
"location": { | |||
"suggested": true, | |||
"label": "Location", | |||
"description": "The location that battle took place", | |||
"example": "Bruh land (present-day BRUHHHHH Land)", | |||
"type": "string" | |||
}, | |||
"result": { | |||
"label": "Result", | |||
"type": "string", | |||
"description": "The result of battle" | |||
}, | |||
"changes": { | |||
"label": "Territorial changes", | |||
"type": "string", | |||
"description": "Territorial changes caused by the war" | |||
}, | |||
"beligerent1": { | |||
"required": true | |||
}, | |||
"beligerent2": { | |||
"required": true | |||
}, | |||
"beligerent3": {}, | |||
"leaders1": { | |||
"required": true | |||
}, | |||
"leaders2": { | |||
"required": true | |||
}, | |||
"leaders3": {}, | |||
"strength1": { | |||
"required": true | |||
}, | |||
"strength2": { | |||
"required": true | |||
}, | |||
"strength3": {}, | |||
"losses1": { | |||
"required": true | |||
}, | |||
"losses2": { | |||
"required": true | |||
}, | |||
"losses3": {}, | |||
"status": {} | |||
}, | |||
"sets": [] | |||
} | |||
</templatedata> | |||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:46, 24 February 2024
|
fix please add TemplateData extension
How to use: 1-) Put this in a page 2-) Then add the parameters 3-) If there are no info about a parameter just make it empty 4-) And your finished!
{{Battle | part_of = | name = | image = | caption = | date = | location = | result = | changes = | beligerent1 = | beligerent2 = | beligerent3 = | leaders1 = | leaders2 = | leaders3 = | strength1 = | strength2 = | strength3 = | losses1 = | losses2 = | losses3 = }}
<templatedata> { "description": "Battle Template For Everyone :D", "params": { "part_of": { "label": "Part Of Text", "required": false, "type": "string", "description": "If the battle part of a war or something like that use this" }, "name": { "label": "Name of The Battle", "required": false, "type": "string", "description": "Name of the battle", "suggested": true }, "image": { "label": "Image", "required": false, "description": "Image of the Battle", "suggested": true }, "caption": { "label": "Caption", "description": "Cation of the Image", "type": "string" }, "date": { "label": "date", "suggested": true, "required": false, "type": "string", "description": "Date of the battle" }, "location": { "suggested": true, "label": "Location", "description": "The location that battle took place", "example": "Bruh land (present-day BRUHHHHH Land)", "type": "string" }, "result": { "label": "Result", "type": "string", "description": "The result of battle" }, "changes": { "label": "Territorial changes", "type": "string", "description": "Territorial changes caused by the war" }, "beligerent1": { "required": true }, "beligerent2": { "required": true }, "beligerent3": {}, "leaders1": { "required": true }, "leaders2": { "required": true }, "leaders3": {}, "strength1": { "required": true }, "strength2": { "required": true }, "strength3": {}, "losses1": { "required": true }, "losses2": { "required": true }, "losses3": {}, "status": {} }, "sets": [] } </templatedata>