Difference between revisions of "Template:Sidebox"

From Winding Path Initiative Wiki
Jump to navigation Jump to search
(Undo revision 529 by Joecot (talk))
(Tag: Undo)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
Basic sidebox template. Used by other sidebox templates.
 +
Example:
 +
<pre>{{Sidebox
 +
|name=Billy Bats
 +
|image=BillyBrujah.jpg
 +
|box_header=Mafia
 +
|label1=Family
 +
|data1=Corleone
 +
|label2=Sect
 +
|data2=The Borough Families
 +
|label3=City
 +
|data3=NYC
 +
|label4=Status
 +
|data4=Witness Protection
 +
|player=Joe
 +
}}
 +
</pre>
  
</noinclude>
+
{{Sidebox
 +
|name=Billy Bats
 +
|image=BillyBrujah.jpg
 +
|box_header=Mafia
 +
|label1=Family
 +
|data1=Corleone
 +
|label2=Sect
 +
|data2=The Borough Families
 +
|label3=City
 +
|data3=NYC
 +
|label4=Status
 +
|data4=Witness Protection
 +
|player=Joe
 +
}}</noinclude>
 
<includeonly>
 
<includeonly>
 
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%; border: 5px black solid; float: right; margin: 1em; margin-top: 1px; margin-left: 1px; -moz-border-radius: 12px; "
 
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%; border: 5px black solid; float: right; margin: 1em; margin-top: 1px; margin-left: 1px; -moz-border-radius: 12px; "
| colspan="2" style="text-align:center; font-size: large;" | {{#if: {{{name|}}}|'''{{{name}}}'''}}
+
{{#if: {{{name|}}}|{{!}} colspan="2" style="text-align:center; font-size: large;" {{!}}'''{{{name}}}'''
|-
+
{{!}}-|}}
| colspan="2" style="text-align:center; font-size: large;" | '''{{{box_header}}}'''
+
{{#if: {{{box_header|}}}|{{!}} colspan="2" style="text-align:center; font-size: large;" {{!}}'''{{{box_header}}}'''
|-
+
{{!}}-|}}
| colspan="2" style="text-align:center;" | {{#if: {{{image|}}}| [[Image:{{{image}}}|200x200px]] }}
+
{{#if: {{{image|}}}|{{!}} colspan="2" style="text-align:center;" {{!}}[[Image:{{{image}}}|200x200px]]
|-  
+
{{!}}-|}}
 +
{{#if: {{{label1|}}}|{{!}}-  
 
! '''{{{label1}}}:'''  
 
! '''{{{label1}}}:'''  
| {{{data1}}}  
+
{{!}} {{{data1}}}|}}
|-  
+
{{#if: {{{label2|}}}|{{!}}-  
 
! '''{{{label2}}}:'''  
 
! '''{{{label2}}}:'''  
| {{{data2}}}  
+
{{!}} {{{data2}}}|}}
|-  
+
{{#if: {{{label3|}}}|{{!}}-  
 
! '''{{{label3}}}:'''  
 
! '''{{{label3}}}:'''  
| {{{data3}}}  
+
{{!}} {{{data3}}}|}}
|-  
+
{{#if: {{{label4|}}}|{{!}}-  
 
! '''{{{label4}}}:'''  
 
! '''{{{label4}}}:'''  
| {{{data4}}}  
+
{{!}} {{{data4}}}|}}
 +
{{#if: {{{label5|}}}|{{!}}-
 +
! '''{{{label5}}}:'''
 +
{{!}} {{{data5}}}|}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Latest revision as of 14:53, 22 July 2019

Basic sidebox template. Used by other sidebox templates. Example:

{{Sidebox
|name=Billy Bats
|image=BillyBrujah.jpg
|box_header=Mafia
|label1=Family
|data1=Corleone
|label2=Sect
|data2=The Borough Families
|label3=City
|data3=NYC
|label4=Status
|data4=Witness Protection
|player=Joe
}}


Billy Bats
Mafia
BillyBrujah.jpg
Family: Corleone
Sect: The Borough Families
City: NYC
Status: Witness Protection