Template:Description: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) (Added documentation template and template demo templates) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="font-size:{{#if:{{{size|}}}|{{{size}}}| | <includeonly><div style="font-size:{{#if:{{{size|}}}|{{{size}}}|110%}}; font-family:'Linux Libertine', 'Georgia', serif; display: flex; flex-wrap: wrap;"> | ||
<div style=" | <div style="opacity: 0.5; margin: 0.5em 0.5em 0.5em 0;">[[File:Description Icon.png|24px|link=]]</div> | ||
</div> | <div class="bg3wiki-blockquote-text" style="width:100px; flex-grow: 1; {{#if: {{{noitalics|}}}| | font-style: italic;}}"> | ||
<div style=" | {{{1}}} | ||
</div></div></includeonly><noinclude>{{Documentation|content= | |||
Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC. | Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC. | ||
== Usage Examples == | == Usage Examples == | ||
{{Template demo | |||
| style = list | |||
| caption 1 = Default | |||
| <nowiki>{{Description|Your description goes here.}}</nowiki> | |||
| caption 2 = Optional {{C|size}} parameter for different description sizes: | |||
| <nowiki>{{Description|size=90%|Here is a smaller description.}}</nowiki> | |||
| caption 3 = Optional {{C|noitalics}} parameter for longer descriptions, such as the text found in books. | |||
<p>This is used for Books in [[Template:MiscItemPage]]</p> | |||
| <nowiki>{{Description|size=100%|noitalics=yes|<p>Here is a multi-paragraph description with italics removed.</p> <p>Useful for books and the like.</p>}}</nowiki> | |||
}} | |||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:16, 19 January 2025
Template documentation
Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC.
Usage Examples
Default
Markup{{Description|Your description goes here.}}Renders as
Your description goes here.
Optional size
parameter for different description sizes:
{{Description|size=90%|Here is a smaller description.}}Renders as
Here is a smaller description.
Optional noitalics
parameter for longer descriptions, such as the text found in books.
This is used for Books in Template:MiscItemPage
Markup{{Description|size=100%|noitalics=yes|<p>Here is a multi-paragraph description with italics removed.</p> <p>Useful for books and the like.</p>}}Renders as
Here is a multi-paragraph description with italics removed.
Useful for books and the like.