Template:Structure: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
{| class="infoboxtemp" width="250" align="right" cellpadding="3" cellspacing="0"  
<tr><td colspan="2"><div id="infoboxinternal">
|-
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
{{#if: {{{image|}}}|
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:#AC8751;">{{{image|}}}</td></tr>
{{!}} class="infoboximage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{image}}} }}
<tr style="text-align:center; color:#ffffff; background:#AC8751; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hidei|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#DFCAA0;">'''General information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Constructed</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{constructed|}}}
| class="name structure" colspan="2" | '''{{{name}}}'''
</td></tr>|1{{{constructed|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Destroyed</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{destroyed|}}}
| class="header structure" colspan="2" | '''General information'''
</td></tr>|1{{{destroyed|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Location</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{location|}}}
{{#if: {{{laiddown|}}}|
</td></tr>|1{{{location|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Builder</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Foundation Laid:
{{{builder|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{builder|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#DFCAA0;">'''Physical specifications'''</th></tr>}}
{{{laiddown}}}}}
 
|-
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}">
{{#if: {{{constructed|}}}|
<td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Height</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Constructed:
{{{heigt|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>
{{{constructed}}}}}
 
|-
|1{{{height|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Width</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{destroyed|}}}|
{{{width|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Destroyed:
</td></tr>|1{{{width|}}}=}}{{t|1=|1{{{hides|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#DFCAA0;">'''Usage'''</th></tr>}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
 
{{{destroyed}}}}}
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Era(s)</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{era|}}}
{{#if: {{{location|}}}|
</td></tr>|1{{{era|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Location:
{{{affiliation|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{affiliation|}}}=}} </table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;&nbsp;[[Template:Structure infobox|[Source]]]</td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>
{{{location}}}}}
{{clear}}
|-
==Usage instructions==
{{#if: {{{builder|}}}|
Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Builder:
<pre><nowiki>
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{structure infobox
{{{builder}}}}}
|-
| class="header structure" colspan="2" | '''Physical specifications'''
|-
{{#if: {{{population|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Population:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{population}}}}}
|-
{{#if: {{{height|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Height:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{height}}}}}
|-
{{#if: {{{width|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Width:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{width}}}}}
|-
| class="header structure" colspan="2" | '''Usage'''
|-
{{#if: {{{era|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Era:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{era}}}}}
|-
{{#if: {{{affiliation|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Affiliation:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{affiliation}}}}}
|-
{{#if: {{{possessionitem|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Possession Item:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{possessionitem}}}}}
|-
|class="infoboxfooter structure" colspan="2" | {{Link color|Template:Structure|#5f697a|[ Source ]}}
|}
<noinclude>{{Clear}}
To use: Paste the following text into the desired character article, and fill in the appropriate fields.
<pre>
{{Structure
|image=
|image=
|name=
|name=
|laiddown=
|constructed=
|constructed=
|destroyed=
|destroyed=
|location=
|location=
|builder=
|builder=
|population=
|height=
|height=
|width=
|width=
|era=
|era=
|affiliation=
|affiliation=
}}</nowiki></pre>
|possessionitem=
 
}}
===Display parameters===
</pre>
*hidei
*hidep
*hideu
 
===Source===
<nowiki>
{{subst:slh|#AC8751|250px}} {{subst:sls|General information|#DFCAA0|hidei}} {{subst:sld|Constructed|constructed}} {{subst:sld|Destroyed|destroyed}} {{subst:sld|Location|location}} {{subst:sld|Builder|builder}} {{subst:sls|Physical specifications|#DFCAA0|hidep}} {{subst:sld|Height|heigt}} {{subst:sld|Width|width}}{{subst:sls|Usage|#DFCAA0|hides}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}
</nowiki>
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:41, 10 February 2022

{{{name}}}
General information
Physical specifications
Usage
[ Source ]

To use: Paste the following text into the desired character article, and fill in the appropriate fields.

{{Structure
|image=
|name=
|laiddown=
|constructed=
|destroyed=
|location=
|builder=
|population=
|height=
|width=
|era=
|affiliation=
|possessionitem=
}}