Borderlands Wiki
Borderlands Wiki
m
(Special Part s and variants links are restructured)
 
(33 intermediate revisions by one other user not shown)
Line 1: Line 1:
  +
<infobox accent-color-text-source="color">
<onlyinclude>{{infobox
 
  +
<title source="model"><default>{{PAGENAME}}</default></title>
|Box title = {{#if:{{{color|{{{rarity|}}}}}}|{{rarity|{{{color|{{{rarity}}}}}}|{{{model|{{PAGENAME}}}}}}}<!--
 
  +
<image source="image"><default>File:MissingWeapon.jpg</default><caption source="caption"></caption></image>
-->|{{{model|{{PAGENAME}}}}}<!--
 
  +
<data source="manufacturer"> <label>[[Manufacturer]]:</label>
-->}}
 
 
<format>{{#if:{{{manufacturer|}}}|<!--
|abovestyle = background-color:#29545F; color:#FFFFFF; padding:1em;
 
 
|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}}}]]<!--
 
  +
-->|{{#if:{{{manufacturer2|}}}|<nowiki> </nowiki>and [[{{{manufacturer2}}}]]}}}}}}}}}}<!--
|Row 3 title = Model:
 
  +
--></format>
|Row 3 info = {{{model}}}
 
 
</data>
 
  +
<data source="rarity"><label>Rarity:</label><format>{{rarity link|{{{rarity}}}}}</format></data>
|Row 4 title = Capacity:
 
  +
<data source="element">
|Row 4 info = {{{capacity}}}
 
  +
<label>Element:</label>
 
 
<format>{{element|{{{damagetype|{{{element|}}}}}}<!--
|Row 5 title = Rate:
 
 
-->|{{{damagetype|{{{element|Normal}}}}}}<!--
|Row 5 info = {{{rate}}}
 
  +
-->{{#if:{{{elementchance|}}}{{{elementchance_low|}}}{{{elementchance_high|}}}|&nbsp;<!--
 
|Row 6 title = {{#if:{{{delay|}}}|Delay:}}
+
-->{{#if:{{{elementchance|}}}|&times;{{{elementchance}}}|}}<!--
  +
-->{{#if:{{{elementchance_low|}}}{{{elementchance_high|}}}|&times;{{{elementchance_low}}}&nbsp;&ndash;&nbsp;&times;{{{elementchance_high|}}}}}<!--
|Row 6 info = {{{delay|}}}
 
 
-->}}<!--
 
 
-->}}</format>
|Row 7 title = {{#if:{{{element|}}}|Element:}}
 
  +
</data>
|Row 7 info = {{#if:{{{element|}}}|{{element|{{{element}}}}}}}
 
  +
<data source="game1"><label>Game(s):</label><format>[[{{{game1|Borderlands}}}]]{{#if:{{{game2|}}}|<br>[[{{{game2}}}]]}}</format></data>
 
  +
<data source="mission"><label>Mission Reward:</label><format>[[{{{mission}}}]]</format></data>
|Row 8 title = {{#if:{{{spike damage|}}}|Spike Damage:}}
 
  +
<data source="part">
|Row 8 info = {{{spike damage|}}}
 
 
<format>'''Special Part(s):'''<br />{{part|{{{part}}}}}</format>
 
  +
</data>
|Row 9 title = {{#if:{{{nova damage|}}}|Nova Damage:}}
 
 
<navigation>{{#if:{{{variants link|}}}|{{#switch: {{lc:{{{variants link}}}}}
|Row 9 info = {{{nova damage|}}}
 
 
| on
 
 
| yes = [[{{PAGENAME}}/Variant Chart|'''[{{PAGENAME}} Variants]''']]
|Row 10 title = {{#if:{{{radius|}}}|Radius:}}
 
  +
}}|}}</navigation>
|Row 10 info = {{{radius|}}}
 
 
</infobox><includeonly><!--
 
|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}}}}}
 
| on
 
| yes = [[{{PAGENAME}}/Variant Chart|'''[{{PAGENAME}} Variants]''']]
 
}}
 
}}
 
}}<includeonly><!--
 
   
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- BEGIN CATEGORIZING ! ONLY IN MAIN SPACE !
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- BEGIN CATEGORIZING ! ONLY IN MAIN SPACE !
Line 77: Line 55:
 
-->{{#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 87: Line 67:
 
-->{{#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 93: Line 84:
 
-->}}<!-- //END CATEGORIES!
 
-->}}<!-- //END CATEGORIES!
   
--></includeonly>
+
--></includeonly><noinclude>
  +
== Usage & preview ==
</onlyinclude>
 
  +
Type in this:
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.
 
   
 
<pre>
For manufacturers, use manufacturer in case of single manufacturer, or manufacturerX in case of multiple manufacturers.
 
  +
{{Infobox shield
 
|model=
  +
|image=
  +
|caption=
 
|manufacturer=
 
|rarity=
 
|element=
 
|game1=
  +
|game2=
  +
|mission=
  +
|part=
 
|variants link=
 
|color=
  +
}}
   
<pre>{{infobox shield
+
</pre>
  +
  +
to see this:
  +
  +
{{Infobox shield
  +
|color=This is a test
  +
|model = Shield
 
|image =
 
|image =
|caption =
+
|caption = Red text flavor
 
|manufacturer1=This is a test
|manufacturer =
 
  +
|manufacturer=This is a test
or
 
 
|manufacturer2=This is a test
|manufacturer1 =
 
 
|manufacturer3=This is a test
|manufacturer2 =
 
 
|manufacturer4=This is a test
|manufacturer3 =
 
 
|manufacturer5=This is a test
|manufacturer4 =
 
  +
|element=This is a test
|manufacturer5 =
 
  +
|game1=This is a test
|model =
 
  +
|game2=This is a test
|color =
 
  +
|mission=This is a test
|rarity =
 
  +
|mission2=This is a test
|capacity =
 
  +
|part=This is a test
|rate =
 
  +
|variants link=This is a test
|delay =
 
  +
|rarity=This is a test
|element =
 
  +
|rarity color=This is a test
|spike damage =
 
  +
|type=This is a test
|nova damage =
 
  +
}}
|radius =
 
  +
|part =
 
  +
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
|game1 =
 
  +
</noinclude>
|variants link = off
 
}}</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]
 
<!-- |reload = unused reserved-->
 

Latest revision as of 22:55, 13 July 2020

Usage & preview

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