Template:Weapon: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
No edit summary
 
m (adding another useful field, especially for upgraded items)
 
(9 intermediate revisions by 4 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:#a00;">{{{image|}}}</td></tr>
{{!}}  class="infoboximage" colspan="2" {{!}} {{{image}}}}}
<tr style="text-align:center; color:#ffffff; background:#a00; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#e55;">'''Production&nbsp;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;">Manufacturer</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{manufacturer|}}}
| colspan="2" class="name weapon" | '''{{{name}}}'''
</td></tr>|1{{{manufacturer|}}}=}} {{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;">Model</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{model|}}}
| colspan="2" class="header weapon" | '''Production information'''
</td></tr>|1{{{model|}}}=}} {{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;">Type</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{type|}}}
{{#if: {{{manufacturer|}}}|
</td></tr>|1{{{type|}}}=}} {{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;">Cost</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" {{!}} Manufacturer:
{{{cost|}}}
{{!}} class="infoboxinfodata" {{!}}  
</td></tr>|1{{{cost|}}}=}} {{t|1=|1{{{hidet|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#e55;">'''Technical&nbsp;specifications'''</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;">Size</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{manufacturer}}}}}
{{{size|}}}
|-
</td></tr>|1{{{size|}}}=}} {{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;">Capacity</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{model|}}}|
{{{capacity|}}}
{{!}} class="infoboxinfoheader" {{!}} Model:
</td></tr>|1{{{capacity|}}}=}} {{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;">Range</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" {{!}}  
{{{range|}}}
{{{model}}}}}
</td></tr>|1{{{range|}}}=}} {{t|1=|1{{{hideu|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#e55;">'''Usage'''</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;">Era(s)</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{era|}}}
{{#if: {{{type|}}}|
</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" {{!}} Type:
{{{affiliation|}}}
{{!}} class="infoboxinfodata" {{!}}  
</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:Weapon|[Source]]]</td></tr></table><noinclude>
{{{type}}}}}
{{clear}}
|-
==Usage instructions==
{{#if: {{{cost|}}}|
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" {{!}} Cost:
<pre><nowiki>
{{!}} class="infoboxinfodata" {{!}}
{{{cost}}}}}
|-
{{#if: {{{item|}}}|
{{!}} class="infoboxinfoheader" {{!}} Possession Item:
{{!}} class="infoboxinfodata" {{!}}
{{{item}}}}}
|-
| colspan="2" class="header weapon" | '''Technical Specifications'''
|-
{{#if: {{{size|}}}|
{{!}} class="infoboxinfoheader" {{!}} Size:
{{!}} class="infoboxinfodata" {{!}}
{{{size}}}}}
|-
{{#if: {{{range|}}}|
{{!}} class="infoboxinfoheader" {{!}} Range:
{{!}} class="infoboxinfodata" {{!}}
{{{range}}}}}
|-
{{#if: {{{material|}}}|
{{!}} class="infoboxinfoheader" {{!}} Material(s)
{{!}} class="infoboxinfodata" {{!}}
{{{material}}}}}
|-
{{#if: {{{capacity|}}}|
{{!}} class="infoboxinfoheader" {{!}} Capacity:
{{!}} class="infoboxinfodata" {{!}}
{{{capacity}}}}}
|-
{{#if: {{{range|}}}|
{{!}} class="infoboxinfoheader" {{!}} Range:
{{!}} class="infoboxinfodata" {{!}}
{{{range}}}}}
|-
{{#if: {{{mods|}}}|
{{!}} class="infoboxinfoheader" {{!}} Modifications:
{{!}} class="infoboxinfodata" {{!}}
{{{mods}}}}}
|-
{{#if: {{{inscriptions|}}}|
{{!}} class="infoboxinfoheader" {{!}} Inscriptions:
{{!}} class="infoboxinfodata" {{!}}
{{{inscriptions}}}}}
|-
{{#if: {{{markings|}}}|
{{!}} class="infoboxinfoheader" {{!}} Other Markings:
{{!}} class="infoboxinfodata" {{!}}
{{{markings}}}}}
|-
| colspan="2" class="header weapon" | '''Usage & History'''
|-
{{#if: {{{purpose|}}}|
{{!}} class="infoboxinfoheader" {{!}} Purpose:
{{!}} class="infoboxinfodata" {{!}}
{{{purpose}}}}}
|-
{{#if: {{{heritage|}}}|
{{!}} class="infoboxinfoheader" {{!}} Heritage:
{{!}} class="infoboxinfodata" {{!}}  
{{{heritage}}}}}
|-
{{#if: {{{creators|}}}|
{{!}} class="infoboxinfoheader" {{!}} Creators:
{{!}} class="infoboxinfodata" {{!}}
{{{creators}}}}}
|-
{{#if: {{{owners|}}}|
{{!}} class="infoboxinfoheader" {{!}} Owners:
{{!}} class="infoboxinfodata" {{!}}
{{{owners}}}}}
|-
| colspan="2" class="infoboxfooter weapon" | {{Link color|Template:Weapon|#8b574f|[ Source ]}}
|}
<noinclude>{{Clear}}
To use: Paste the following text into the desired character article, and fill in the appropriate fields.
<pre>
{{Weapon
{{Weapon
| image=
| image=
Line 33: Line 109:
| type=
| type=
| cost=
| cost=
| item=
| size=
| size=
| material=
| capacity=
| capacity=
| range=
| range=
| era=
| mods=
| affiliation=
| inscriptions=
}}</nowiki></pre>
| markings=
 
| purpose=
===Display parameters===
| heritage=  
*hidep
| creators=  
*hidet
| owners=  
*hideu
}}
 
</pre>
===Source===
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
<nowiki>{{subst:slh|#a00|250px}} {{subst:sls|Production&nbsp;information|#e55|hidep}} {{subst:sld|Manufacturer|manufacturer}} {{subst:sld|Model|model}} {{subst:sld|Type|type}} {{subst:sld|Cost|cost}} {{subst:sls|Technical&nbsp;specifications|#e55|hidet}} {{subst:sld|Size|size}} {{subst:sld|Capacity|capacity}} {{subst:sld|Range|range}} {{subst:sls|Usage|#e55|hideu}} {{subst:sld|Era(s)|era}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}</nowiki>
 
[[Category:Infobox templates|Weapon]]
</noinclude>

Latest revision as of 21:14, 7 April 2025

{{{name}}}
Production information
Technical Specifications
Usage & History
[ Source ]

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

{{Weapon
| image=
| name=
| manufacturer=
| model=
| type=
| cost=
| item=
| size=
| material=
| capacity=
| range=
| mods=
| inscriptions=
| markings= 
| purpose= 
| heritage= 
| creators= 
| owners= 
}}