Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[File:{{{image}}}|frameless|right]]
<includeonly>{{PageSeo
{{PageSeo
| image = {{{image}}}
| image = {{{image}}}
| description = {{WeaponPage/SeoDescription
| description = {{WeaponPage/SeoDescription
Line 11: Line 10:
   | special = {{{special|}}}
   | special = {{{special|}}}
   }}
   }}
}}
}}<templatestyles src="WeaponPage/styles.css"/>
<div class="bg3wiki-weapon-page-description bg3wiki-weapon-page-description-{{#if: {{{rarity|}}}
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| common
}}">
[[File:{{{image}}}|frameless|right]]
{{#if: {{{description|}}}
{{#if: {{{description|}}}
| {{{description}}}
| {{{description}}}
Line 62: Line 66:


{{quote|{{{quote|Missing quote ... imagine some nice flavor text here.}}}}}
{{quote|{{{quote|Missing quote ... imagine some nice flavor text here.}}}}}
{{#if:{{{where to find|}}}|
<h2> Where to Find </h2>


{{{where to find}}}
}}
<h2> Properties </h2>
<h2> Properties </h2>


Line 141: Line 141:
| {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
| {{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = htmlList }}
| {{{actions}}}
| {{{actions}}}
}}</div>{{#if: {{{where to find|}}} | {{blank}}
<h2> Where to Find </h2>
<div class="bg3wiki-weapon-page-where-to-find">
{{{where to find}}}
</div>
}}
}}


Line 152: Line 159:
-->
-->
This template generates entire pages for individual weapons in the game, such as [[Longsword]] (not to be confused with [[Longswords]]) or [[Worgfang]].  Note that the template adds the page to the correct categories automatically.
This template generates entire pages for individual weapons in the game, such as [[Longsword]] (not to be confused with [[Longswords]]) or [[Worgfang]].  Note that the template adds the page to the correct categories automatically.
CSS: [[Template:WeaponPage/styles.css]]


Following is an example of usage with all possible template parameters shown.  This describes a made up Longsword which for some reason deals an extra 1d4 Fire damage and is Heavy (longswords normally aren't).  If you're ever unsure what to type, simply leave the parameter empty.
Following is an example of usage with all possible template parameters shown.  This describes a made up Longsword which for some reason deals an extra 1d4 Fire damage and is Heavy (longswords normally aren't).  If you're ever unsure what to type, simply leave the parameter empty.