Difference between revisions of "Template:Infobox bilateral relations/sandbox2"

From blackwiki
Jump to navigation Jump to search
imported>Underlying lk
imported>MarginalCost
(updating sandbox with proposed removal of depreciation template. (Rest of code updated to current version))
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
| bodystyle     = border-collapse:collapse; width:{{#if:{{{size|}}}|{{{size}}}|250px}}
+
| bodystyle = border-collapse:collapse;
| titlestyle    =  
+
| headerstyle    = background:lightgrey
| title         = {{{title|{{#if: {{both|{{{party1|}}}|{{{party2|}}}}} | {{{party1}}}–{{{party2}}} | {{{1}}} }} relations}}}
+
| labelstyle    = font-weight:normal; text-align:center
|  image        = {{#ifexist: Media:{{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}}|size={{{size|}}}|sizedefault=250px|title=Map indicating locations of {{{party1|{{{2}}}}}} and {{{party2|{{{3}}}}}}}} }}
+
| datastyle    = text-align:center; border-left:thin solid lightgrey;
| headerstyle    =
+
| title = {{{title|{{#if: {{both|{{{party1|}}}|{{{party2|}}}}} | {{{party1}}}–{{{party2}}} | {{{1}}} }} relations}}}
|  labelstyle    =
 
|  datastyle    =
 
  
| header1  = {{#ifexist: Media:{{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}} |<tr style="height:0.6em">
+
|  image        = {{#ifexist: Media:{{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}}|size={{{size|}}}|sizedefault=250px|title=Map indicating locations of {{{party1|{{{2}}}}}} and {{{party2|{{{3}}}}}}}} | {{main other|[[Category:Infobox bilateral relations usage without maps]]}}}}
<td style="width:50%;background:#339933;"></td>
+
 
<td style="width:50%;background:#E08020;"></td>
+
| header1 = {{#ifexist: Media:{{{map|{{{party1|{{{2}}}}}} {{{party2|{{{3}}}}}} Locator.{{{filetype|png}}}}}} |<tr style="height:0.6em">
 +
<td style="background:#339933;"></td>
 +
<td style="background:#E08020;"></td>
 
</tr>
 
</tr>
 
|{{main other|[[Category:Infobox bilateral relations usage without maps]]}}
 
|{{main other|[[Category:Infobox bilateral relations usage without maps]]}}
}}
+
}}<tr>
 
+
<th scope=col style="width:50%; text-align:center">{{#ifexist:Template:Country data {{{party1|{{{2}}}}}}|{{flagbig|1={{{party1|{{{2}}}}}}|size=50x45px|2={{{flagvariant1|}}}}}|[[{{{party1|{{{2}}}}}}]]}}</th>
| header2  = <tr style="text-align:center; border-bottom:1pt solid lightgrey;">
+
<th scope=col style="width:50%; text-align:center; border-left:thin solid lightgrey;">{{#ifexist:Template:Country data {{{party2|{{{3}}}}}}|{{flagbig|1={{{party2|{{{3}}}}}}|size=50x45px|2={{{flagvariant2|}}}}}|[[{{{party2|{{{3}}}}}}]]}}</th>
<th style="width:50%; border-right:1px solid lightgrey;">{{flagbig|{{{party1|{{{2}}}}}}|size=50x45px}}</th>
 
<th style="width:50%; border-left:1px solid lightgrey;">{{flagbig|{{{party2|{{{3}}}}}}|size=50x45px}}</th>
 
 
</tr>
 
</tr>
  
| label4  = Established
+
| header3 = {{#if:{{{mission1|}}}{{{mission2|}}} | Diplomatic Mission }}
|  data4  = {{{established|}}}
 
 
 
|  label5  = Treaties
 
|  data5  = {{{treaties|}}}
 
 
 
|  label6  = Alliances
 
|  data6  = {{{alliances|}}}
 
 
 
| header7 = {{#if:{{{mission1|}}}{{{mission2|}}} | Diplomatic Mission }}
 
 
 
|  label8  = {{{party1|{{{2}}}}}}
 
|  data8  = {{{mission1|}}}
 
  
label9 = {{{party2|{{{3}}}}}}
+
label4 = {{{mission1|}}}
data9 = {{{mission2|}}}
+
data4 = {{{mission2|}}}
  
| header10 = {{#if:{{{envoytitle1|}}}{{{envoytitle2|}}}{{{envoy1|}}}{{{envoy2|}}} | Envoy }}
+
| header5  = {{#if:{{{envoytitle1|}}}{{{envoytitle2|}}}{{{envoy1|}}}{{{envoy2|}}} | Envoy }}
  
label11 = {{{party1|{{{2}}}}}}
+
label6  = {{{envoytitle1|}}} {{{envoy1|}}}
data11 = {{{envoytitle1|}}} {{{envoy1|}}}
+
data6  = {{{envoytitle2|}}} {{{envoy2|}}}
  
|  label12 = {{{party2|{{{3}}}}}}
+
}}</includeonly><noinclude>
|  data12 = {{{envoytitle2|}}} {{{envoy2|}}}
+
{{documentation}}
}}
+
</noinclude>

Revision as of 15:28, 1 August 2018

Template documentation[create]