Difference between revisions of "Template:Conflict Infobox"
From Discovery Wiki
Jump to navigationJump to search (Fixing templates that include categories when transcluding themselves.) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 300px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3" | {| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 300px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3" | ||
|- | |- | ||
− | | colspan="2" | + | | colspan="2" class="infobox-name"|'''{{{conflict}}}''' |
{{#if: {{{partof|}}} | {{!}}- | {{#if: {{{partof|}}} | {{!}}- | ||
− | {{!}} colspan="2" | + | {{!}} colspan="2" class="infobox-section" {{!}} Part of the {{{partof}}} |
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{date|}}} | {{!}}- |
{{!}} style="font-weight: bold;" {{!}} Date | {{!}} style="font-weight: bold;" {{!}} Date | ||
{{!}} style="padding-right: 1em;" {{!}} {{{date}}} | {{!}} style="padding-right: 1em;" {{!}} {{{date}}} | ||
Line 12: | Line 12: | ||
|- | |- | ||
|style="width: 70px; font-weight: bold;" | Location | |style="width: 70px; font-weight: bold;" | Location | ||
− | |style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{ | + | |style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{region|}}} |
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{region|}}} | <br>''{{{region}}}'' }} | | {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{region|}}} | <br>''{{{region}}}'' }} | ||
| ''unknown'' | | ''unknown'' | ||
Line 25: | Line 25: | ||
}} | }} | ||
|- | |- | ||
− | | colspan="2" | + | | colspan="2" class="infobox-section" | Belligerents |
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
{| style="width: 100%;" | {| style="width: 100%;" | ||
|- | |- | ||
− | | style="vertical-align: top; width: 50%; padding-right: | + | | style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" | |
− | | style="vertical-align: top; width: 50%; padding-left: | + | {{{combatant1}}} |
+ | | style="vertical-align: top; width: 50%; padding-left: 7px;" | | ||
+ | {{{combatant2}}} | ||
|} | |} | ||
{{#if: {{{commander1|}}}{{{commander2|}}} | | {{#if: {{{commander1|}}}{{{commander2|}}} | | ||
{{!}}- | {{!}}- | ||
− | {{!}} colspan="2" | + | {{!}} colspan="2" class="infobox-section" {{!}} Commanders |
{{!}}- | {{!}}- | ||
{{!}} colspan="2" {{!}} | {{!}} colspan="2" {{!}} | ||
{{{!}} style="width: 100%;" | {{{!}} style="width: 100%;" | ||
{{!}}- | {{!}}- | ||
− | {{!}} style="vertical-align: top; width: 50%; padding-right: | + | {{!}} style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" {{!}} |
− | {{!}} style="vertical-align: top; width: 50%; padding-left: | + | {{{commander1}}} |
+ | {{!}} style="vertical-align: top; width: 50%; padding-left: 7px;" {{!}} | ||
+ | {{{commander2}}} | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
{{#if: {{{strength1|}}}{{{strength2|}}} | | {{#if: {{{strength1|}}}{{{strength2|}}} | | ||
{{!}}- | {{!}}- | ||
− | {{!}} colspan="2" | + | {{!}} colspan="2" class="infobox-section" {{!}} Strength |
{{!}}- | {{!}}- | ||
{{!}} colspan="2" {{!}} | {{!}} colspan="2" {{!}} | ||
{{{!}} style="width: 100%;" | {{{!}} style="width: 100%;" | ||
{{!}}- | {{!}}- | ||
− | {{!}} style="vertical-align: top; width: 50%; padding-right: | + | {{!}} style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" {{!}} |
− | {{!}} style="vertical-align: top; width: 50%; padding-left: | + | {{{strength1}}} |
+ | {{!}} style="vertical-align: top; width: 50%; padding-left: 7px;" {{!}} | ||
+ | {{{strength2}}} | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
|} | |} | ||
− | [[Category: Conflicts]] | + | {{#ifeq:{{NAMESPACE}}|Template||[[Category:Conflicts]]}}<noinclude>--> |
− | <noinclude> | ||
− | --> | ||
==Example 1== | ==Example 1== | ||
===Usage=== | ===Usage=== |
Latest revision as of 20:48, 24 January 2012
Example 1
Usage
{{Conflict Infobox | conflict = Omega-5 Conflict | partof = Corsair - Hessian War | date = 740 [[A.S.]] | sector = | system = [[Omega-5]] | region = [[Border Worlds]] | result = | status = Ongoing conflict | combatant1 = [[Red Hessians]] | combatant2 = {{House Link | Corsairs}} | commander1 = | commander2 = | strength1 = Exact number unknown,<br>believed to maintain numerical superiority | strength2 = Exact number unknown }}
Result
Omega-5 Conflict | |||
Part of the Hessian-Corsair War | |||
Date | 740 A.S. | ||
Location | Omega-5 Border Worlds | ||
Status | Ongoing conflict | ||
Belligerents | |||
| |||
Strength | |||
|
Example 2
Usage
{{Conflict Infobox | conflict = Battle of the Yanagi cloud | partof = [[Eighty Years War]] | date = 668 [[A.S.]] | sector = C5 | system = [[Sigma-13]] | region = [[Border Worlds]] | result = Decisive victory for the [[Gas Miners Guild]] | status = | combatant1 = {{House Link | Rheinland}} | combatant2 = [[Gas Miners Guild]] | commander1 = Empress Leicht | commander2 = GMG Security Council | strength1 = | strength2 = }}
Result
Battle of the Yanagi cloud | |||
Part of the Eighty Years War | |||
Date | 668 A.S. | ||
Location | C5, Sigma-13 Border Worlds | ||
Result | Decisive victory for the Gas Miners Guild | ||
Belligerents | |||
| |||
Commanders | |||
|