FANDOM


m
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>{{infobox
+
<infobox accent-color-text-source="color">
|Box title = {{#if:{{{color|{{{rarity|}}}}}}|{{rarity|{{{color|{{{rarity}}}}}}|{{{model|{{PAGENAME}}}}}}}<!--
+
<title source="model"><default>{{PAGENAME}}</default></title>
-->|{{{model|{{PAGENAME}}}}}<!--
+
<image source="image"><default>File:MissingWeapon.jpg</default><caption source="caption"></caption></image>
-->}}
+
<data source="manufacturer"> <label>[[Manufacturer]]:</label>
|abovestyle = background-color:#29545F; color:#FFFFFF; padding:1em;
+
<format>{{#if:{{{manufacturer|}}}|<!--
 
|image = {{#if:{{{image|}}}|{{{image|}}}|File:MissingWeapon.jpg}}
 
|imagewidth = {{{imagewidth|250}}}
 
|caption = <span style="color:white">{{{caption|{{#if:{{{image|}}}|{{{model|{{PAGENAME}}}}}|Picture needed.}}}}}</span>
 
 
|labelstyle = width:50%
 
 
<!-- Manufacturer if one, Manufacturers if many -->
 
|Row 1 title = [[Manufacturer]]{{#if:{{{manufacturer1|}}}{{{manufacturer1|}}}|s}}:
 
 
<!-- Dhal Dhal, Hyperion and Jakobs -->
 
|Row 1 info = {{#if:{{{manufacturer|}}}|<!--
 
 
-->{{#switch:{{{manufacturer|}}}
 
-->{{#switch:{{{manufacturer|}}}
| All = All [[Manufacturer]]s
+
| All = All [[manufacturer]]s
  +
| Bandit = [[Bandit (manufacturer)|Bandits]]
  +
| Scav = [[Scav (manufacturer)|Scavs]]
  +
| B&S = {{B&S}}
  +
| Bandits and Scavs = [[Bandit (manufacturer)|Bandits]] and [[Scav (manufacturer)|Scavs]]
 
| [[{{{manufacturer}}}]]
 
| [[{{{manufacturer}}}]]
}}<!--
+
}}}}</format></data>
-->}}<!--
+
<data source="manufacturer1">
-->{{#if:{{{manufacturer1|}}}|[[{{{manufacturer1}}}]]}}<!--
+
<label>[[Manufacturer]]{{#if:{{{manufacturer2|}}}|s}}:</label>
-->{{#if:{{{manufacturer2|}}}|{{#if:{{{manufacturer3|}}}|,&#32;|&#32;and&#32;}}[[{{{manufacturer2}}}]]}}<!--
+
<format>{{#if:{{{manufacturer1|}}}|[[{{{manufacturer1}}}]]}}<!-- not so smart solution to do this only for ,\and
-->{{#if:{{{manufacturer3|}}}|{{#if:{{{manufacturer4|}}}|,&#32;|&#32;and&#32;}}[[{{{manufacturer3}}}]]}}<!--
+
-->{{#if:{{{manufacturer6|}}}|, [[{{{manufacturer2}}}]], [[{{{manufacturer3}}}]], [[{{{manufacturer4}}}]], [[{{{manufacturer5}}}]] and [[{{{manufacturer6}}}]]<!--
-->{{#if:{{{manufacturer4|}}}|{{#if:{{{manufacturer5|}}}|,&#32;|&#32;and&#32;}}[[{{{manufacturer4}}}]]}}<!--
+
-->|{{#if:{{{manufacturer5|}}}|, [[{{{manufacturer2}}}]], [[{{{manufacturer3}}}]], [[{{{manufacturer4}}}]] and [[{{{manufacturer2}}}]]<!--
-->{{#if:{{{manufacturer5|}}}|&#32;and [[{{{manufacturer5}}}]]}}
+
-->|{{#if:{{{manufacturer4|}}}|, [[{{{manufacturer2}}}]], [[{{{manufacturer3}}}]] and [[{{{manufacturer4}}}]]<!--
+
-->|{{#if:{{{manufacturer3|}}}|, [[{{{manufacturer2}}}]] and [[{{{manufacturer3}}}]]<!--
|Row 3 title = Model:
+
-->|{{#if:{{{manufacturer2|}}}|<nowiki> </nowiki>and [[{{{manufacturer2}}}]]}}}}}}}}}}<!--
|Row 3 info = {{{model}}}
+
--></format>
+
</data>
|Row 4 title = Capacity:
+
<data source="rarity"><label>Rarity:</label><format>{{rarity link|{{{rarity}}}}}</format></data>
|Row 4 info = {{{capacity}}}
+
<data source="element">
+
<label>Element:</label>
|Row 5 title = Rate:
+
<format>{{element|{{{damagetype|{{{element|}}}}}}<!--
|Row 5 info = {{{rate}}}
+
-->|{{{damagetype|{{{element|Normal}}}}}}<!--
+
-->{{#if:{{{elementchance|}}}{{{elementchance_low|}}}{{{elementchance_high|}}}|&nbsp;<!--
|Row 6 title = {{#if:{{{delay|}}}|Delay:}}
+
-->{{#if:{{{elementchance|}}}|&times;{{{elementchance}}}|}}<!--
|Row 6 info = {{{delay|}}}
+
-->{{#if:{{{elementchance_low|}}}{{{elementchance_high|}}}|&times;{{{elementchance_low}}}&nbsp;&ndash;&nbsp;&times;{{{elementchance_high|}}}}}<!--
+
-->}}<!--
|Row 7 title = {{#if:{{{element|}}}|Element:}}
+
-->}}</format>
|Row 7 info = {{#if:{{{element|}}}|{{element|{{{element}}}}}}}
+
</data>
+
<data source="game1"><label>Game(s):</label><format>[[{{{game1|Borderlands}}}]]{{#if:{{{game2|}}}|<br>[[{{{game2}}}]]}}</format></data>
|Row 8 title = {{#if:{{{spike damage|}}}|Spike Damage:}}
+
<data source="mission"><label>Mission Reward:</label><format>[[{{{mission}}}]]</format></data>
|Row 8 info = {{{spike damage|}}}
+
<group><header>Special Part(s)</header>
+
<navigation>{{{part}}}</navigation></group>
|Row 9 title = {{#if:{{{nova damage|}}}|Nova Damage:}}
+
<data source="variants link"><format>{{#if: {{{variants link|}}}|
|Row 9 info = {{{nova damage|}}}
 
 
|Row 10 title = {{#if:{{{radius|}}}|Radius:}}
 
|Row 10 info = {{{radius|}}}
 
 
|Row 11 title = Game
 
|Row 11 info = [[{{{game1|Borderlands}}}]]
 
 
|Row 12 title =
 
|Row 12 info = {{#if:{{{part|}}}|'''Special Part(s):''' {{part|{{{part}}}}}}}
 
 
|Row 13 title =
 
|Row 13 info = {{#if: {{{variants link|}}}|
 
 
{{#switch: {{lc:{{{variants link}}}}}
 
{{#switch: {{lc:{{{variants link}}}}}
 
| on
 
| on
 
| yes = [[{{PAGENAME}}/Variant Chart|'''[{{PAGENAME}} Variants]''']]
 
| yes = [[{{PAGENAME}}/Variant Chart|'''[{{PAGENAME}} Variants]''']]
 
}}
 
}}
}}
+
}}</format></data>
}}<includeonly><!--
+
</infobox><includeonly><!--
   
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- BEGIN CATEGORIZING ! ONLY IN MAIN SPACE !
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- BEGIN CATEGORIZING ! ONLY IN MAIN SPACE !
Line 52: Line 52:
 
-->{{#if:{{{manufacturer|}}}|<!--
 
-->{{#if:{{{manufacturer|}}}|<!--
 
-->{{#switch:{{{manufacturer|}}}
 
-->{{#switch:{{{manufacturer|}}}
| All = [[Category:Dahl]][[Category:Hyperion]][[Category:Jakobs]][[Category:Maliwan]][[Category:Bandit]][[Category:Tediore]][[Category:Torgue]][[Category:Vladof]][[Category:Pangolin]][[Category:Anshin]]
+
| All = [[Category:Anshin]]{{#if: {{#pos: {{{game1}}}{{{game2}}}|lands 2}}|[[Category:Bandit]]}}[[Category:Dahl]][[Category:Hyperion]][[Category:Jakobs]][[Category:Maliwan]][[Category:Torgue]][[Category:Pangolin]]{{#if: {{#pos: {{{game1}}}{{{game2}}}|Pre-S}}|[[Category:Scav]]}}[[Category:Tediore]][[Category:Vladof]]
  +
| B&S = [[Category:Bandit]][[Category:Scav]]
  +
| Bandits and Scavs = [[Category:Bandit]][[Category:Scav]]
 
| [[Category:{{{manufacturer}}}]]
 
| [[Category:{{{manufacturer}}}]]
 
}}<!--
 
}}<!--
Line 62: Line 62:
 
-->{{#if:{{{manufacturer5|}}}|[[Category:{{{manufacturer5}}}]]}}<!--
 
-->{{#if:{{{manufacturer5|}}}|[[Category:{{{manufacturer5}}}]]}}<!--
   
-->[[Category:{{{game1|Borderlands}}}]]<!--
+
-->{{#if:{{{game1|}}}|[[Category:Items in {{{game1}}}]]}}<!--
  +
-->{{#if:{{{game2|}}}|[[Category:Items in {{{game2}}}]]}}<!--
  +
  +
-->{{#if:{{{mission|}}}|[[Category:Mission reward items]]}}<!--
  +
  +
Deprecation Segment
  +
-->{{#if:{{{damagetype|}}}|[[Category:Deprecated infobox parameters]]}}<!--
  +
-->{{#if:{{{make|}}}|[[Category:Deprecated infobox parameters]]}}<!--
  +
-->{{#if:{{{rarity color|}}}|[[Category:Deprecated infobox parameters]]}}<!--
  +
  +
Fields that don't belong in infobox shield
  +
-->{{#if:{{{type|}}}|[[Category:Deprecated infobox parameters]]}}<!--
   
 
-->{{#ifeq:{{{image|}}}||[[Category:Weapons With Missing Images]]}}<!--
 
-->{{#ifeq:{{{image|}}}||[[Category:Weapons With Missing Images]]}}<!--
Line 68: Line 68:
 
-->}}<!-- //END CATEGORIES!
 
-->}}<!-- //END CATEGORIES!
   
--></includeonly>
+
--></includeonly><noinclude>
</onlyinclude>
+
== Usage & preview ==
To use this template, copy the following code and fill in the information. For the image, DO NOT insert the brackets. The template will insert them automatically.
+
Type in this:
  +
  +
<pre>
  +
{{Infobox shield
  +
|model=
  +
|image=
  +
|caption=
  +
|manufacturer=
  +
|rarity=
  +
|element=
  +
|game1=
  +
|game2=
  +
|mission=
  +
|part=
  +
|variants link=
  +
|color=
  +
}}
  +
  +
</pre>
  +
  +
to see this:
  +
  +
{{Infobox shield
  +
|color=This is a test
  +
|model=This is a test
  +
|image=This is a test
  +
|imagewidth=This is a test
  +
|caption=This is a test
  +
|manufacturer1=This is a test
  +
|manufacturer=This is a test
  +
|manufacturer2=This is a test
  +
|manufacturer3=This is a test
  +
|manufacturer4=This is a test
  +
|manufacturer5=This is a test
  +
|element=This is a test
  +
|game1=This is a test
  +
|game2=This is a test
  +
|mission=This is a test
  +
|mission2=This is a test
  +
|part=This is a test
  +
|variants link=This is a test
  +
|rarity=This is a test
  +
|damagetype=This is a test
  +
|make=This is a test
  +
|rarity color=This is a test
  +
|type=This is a test
  +
}}
   
For manufacturers, use manufacturer in case of single manufacturer, or manufacturerX in case of multiple manufacturers.
 
   
<pre>{{infobox shield
+
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
|image =
+
</noinclude>
|caption =
 
|manufacturer =
 
or
 
|manufacturer1 =
 
|manufacturer2 =
 
|manufacturer3 =
 
|manufacturer4 =
 
|manufacturer5 =
 
|model =
 
|color =
 
|rarity =
 
|capacity =
 
|rate =
 
|delay =
 
|element =
 
|spike damage =
 
|nova damage =
 
|radius =
 
|part =
 
|game1 =
 
|variants link = off
 
}}</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]
 
<!-- |reload = unused reserved-->
 

Latest revision as of 14:06, May 5, 2020

Usage & preview Edit

Type in this:

{{Infobox shield
|model=
|image=
|caption=
|manufacturer=
|rarity=
|element=
|game1=
|game2=
|mission=
|part=
|variants link=
|color=
}}

to see this:


Click here to refresh the preview above

Community content is available under CC-BY-SA unless otherwise noted.