Template:Description: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Improve HTML fix breaking lines when using links.)
No edit summary
 
Line 1: Line 1:
<includeonly><div style="font-size:{{#if:{{{size|}}}|{{{size}}}|110%}}; font-family:'Linux Libertine', 'Georgia', serif; display: flex; flex-wrap: wrap;">
<includeonly><div style="font-size:{{#if:{{{size|}}}|{{{size}}}|110%}}; font-family:'Linux Libertine', 'Georgia', serif; display: flex; flex-wrap: wrap;">
<div style="opacity: 0.5; margin: 0.5em 0.5em 0.5em 0;">[[File:Description Icon.png|24px|link=]]</div>
<div style="opacity: 0.5; margin: 0.5em 0.5em 0.5em 0;">[[File:Description Icon.png|24px|link=]]</div>
<div class="bg3wiki-blockquote-text" style="width:100px; flex-grow: 1; {{#if: {{{noitalics|}}}| | font-style: normal;}}">
<div class="bg3wiki-blockquote-text" style="width:100px; flex-grow: 1; {{#if: {{{noitalics|}}}| | font-style: italic;}}">
{{{1}}}
{{{1}}}
</div></div></includeonly><noinclude>
</div></div></includeonly><noinclude>

Latest revision as of 21:32, 22 June 2024

Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC.

Usage Examples

Default usage:

{{Description|Your description goes here.}}

Result:

Description Icon.png

A garment worn by one of three monks who fought together against Headless Serpent, Secret Venom, a gang in the port city of Nyanzaru. This was worn by Roahton Mobar, whose stances were broad and strong.


Optional size parameter for different description sizes:

{{Description|size=90%|Here is a smaller description.}}

Result:

Description Icon.png

Here is a smaller description.


Optional noitalics parameter for longer descriptions, such as the text found in books:

{{Description|size=100%|noitalics=yes|<p>Here is a multi-paragraph description with italics removed.</p> <p>Useful for books and the like.</p> <p>This is used for Books in [[Template:MiscItemPage]]</p>}}

Result:

Description Icon.png

Here is a multi-paragraph description with italics removed.

Useful for books and the like.

This version of the template is automatically applied for Books in Template:MiscItemPage.