Template:Weapon page/SeoDescription: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:


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.
Warning:  WikiSEO doesn't fully parse the text given to it via the "description" property, i.e. the result of this template.  For example, you can't use the nowiki tag for whitespace tricks, and neither can you use HTML entities like   to introduce a space character.


-->
-->
Line 38: Line 36:


<pre>
<pre>
{{WeaponPage/Description
{{WeaponPage/SeoDescription
| category = martial
| category = martial
| melee or ranged = melee
| melee or ranged = melee
Line 52: Line 50:


----
----
{{WeaponPage/Description
{{WeaponPage/SeoDescription
| category = martial
| category = martial
| melee or ranged = melee
| melee or ranged = melee
Line 62: Line 60:
}}
}}


[[Category:Weapon Page Templates]]
[[Category:Weapon page templates]]
{{#seo:
| description = Test A: <nowiki> </nowiki> Test B: &#32;
}}
</noinclude>
</noinclude>

Latest revision as of 23:43, 26 April 2024

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:

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

Result:


Weapon page/SeoDescription is a mundane, nonmagical variant of the Longswords family of weapons. It is a martial melee weapon that can be wielded in one hand, or with both hands for extra damage.