Template:WeaponType: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added alias support)
(Now uses standard IconLink format, with alias as second parameter instead of size)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{WeaponIcon|{{{1}}}|{{{2|25}}}}} [[{{{alias|{{{1}}}}}}]]</includeonly><noinclude>
<includeonly>{{IconLink|{{{1}}} Icon.png|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}}</includeonly><noinclude>
Usage: {{code|<nowiki>{{WeaponType|Morningstars}}</nowiki>}}
Usage: {{code|<nowiki>{{WeaponType|Morningstars}}</nowiki>}}


Result: {{WeaponType|Morningstars}}
Result: {{WeaponType|Morningstars}}


or Result: {{WeaponType|Longswords|40}} {{code|<nowiki>{{WeaponType|Longswords|40}}</nowiki>}}
or Result: {{WeaponType|Longswords|w=40}} {{code|<nowiki>{{WeaponType|Longswords|w=40}}</nowiki>}}


With Alias: {{code|<nowiki>{{WeaponType|Morningstars|alias=Morningstar}}</nowiki>}}
With Alias: {{code|<nowiki>{{WeaponType|Morningstars|Morningstar}}</nowiki>}}


Result: {{WeaponType|Morningstars|alias=Morningstar}}
Result: {{WeaponType|Morningstars|Morningstar}}




[[Category:Weapon Property Templates]]
[[Category:Weapon Property templates]]
</noinclude>
</noinclude>

Latest revision as of 20:51, 1 August 2024

Usage: {{WeaponType|Morningstars}}

Result: Morningstars Morningstars

or Result: Longswords Longswords {{WeaponType|Longswords|w=40}}

With Alias: {{WeaponType|Morningstars|Morningstar}}

Result: Morningstar Morningstar