Template:Weapon page/SeoDescription: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
The following monstrosity will auto-generate a nice, sensible introduction paragraph for ''any'' combination of parameters.  So, technically, you never have to provide descriptions for weapons, but for those with unique specialties you might want to do so anyway.
The following monstrosity will auto-generate a nice, sensible introduction paragraph for ''any'' combination of parameters.  So, technically, you never have to provide descriptions for weapons, but for those with unique specialties you might want to do so anyway.
-->
-->
{{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}} || The common }} {{PAGENAME}} is {{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}}
{{PAGENAME}} is {{#if: {{{enchantment|}}} {{{rarity|}}} {{{special|}}}
|
|
   {{#if: {{{rarity|}}}
   {{#if: {{{rarity|}}}
Line 18: Line 18:
   }}
   }}
|
|
   the mundane, nonmagical
   a mundane, nonmagical
}} variant of the {{{type}}} family of weapons. It is a {{{category}}} {{{melee or ranged}}} weapon {{#switch: {{{handedness}}}
}} variant of the {{{type}}} family of weapons. It is a {{{category}}} {{{melee or ranged}}} weapon {{#switch: {{{handedness}}}
| one-handed = wielded in one hand
| one-handed = wielded in one hand

Revision as of 18:48, 15 February 2023

This is like the first part of Template:WeaponPage but without wiki markup so it can be used for the description meta tag set by WikiSeo.

Usage:

{{WeaponPageDescription
| category = martial
| melee or ranged = melee
| handedness = versatile
| type = Longswords
| rarity =
| enchantment =
| special =
}}

Result:


Template:WeaponPageDescription