Difference between revisions of "Template:Sidebox"

From Winding Path Initiative Wiki
Jump to navigation Jump to search
(Created page with "<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-lef...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<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>
 +
 +
{{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]]
|-  
+
{{!}}-|}}
! '''{{{Label1}}}:'''  
+
{{#if: {{{label1|}}}|{{!}}-
| {{{Data1}}}  
+
! '''{{{label1}}}:'''
|-  
+
{{!}} {{{data1}}}|}}
! '''{{{Label2}}}:'''  
+
{{#if: {{{label2|}}}|{{!}}-  
| {{{Data2}}}  
+
! '''{{{label2}}}:'''  
|-  
+
{{!}} {{{data2}}}|}}
! '''{{{Label3}}}:'''  
+
{{#if: {{{label3|}}}|{{!}}-  
| {{{Data2}}}  
+
! '''{{{label3}}}:'''  
|-  
+
{{!}} {{{data3}}}|}}
! '''{{{Label4}}}:'''  
+
{{#if: {{{label4|}}}|{{!}}-  
| {{{Data2}}}  
+
! '''{{{label4}}}:'''  
 +
{{!}} {{{data4}}}|}}
 +
{{#if: {{{label5|}}}|{{!}}-  
 +
! '''{{{label5}}}:'''  
 +
{{!}} {{{data5}}}|}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Latest revision as of 13: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