User:Lavaeolus/Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><div style="font-size:{{#if:{{{size|}}}|{{{size}}}|130%}}; font-family:'Linux Libertine', serif; width:100%;"> | ||
<div style="float: left; opacity: 0.5; margin: 5px; width: 30px;">{{SmallIcon|Description Icon.png}}</div> | |||
<span style="float: left; color:#6E6D6C; {{#if: {{{noitalics|}}}| | font-style: italic;}}">{{{1}}}</span> | |||
{{clear}}</div></includeonly><noinclude> | |||
- | Insert a pre-formatted blockquote for an item, class, or feature description, or simply a prominent quote from an NPC. | ||
== Usage Examples == | |||
Default usage: | |||
< | <pre>{{Description|Your description goes here.}}</pre> | ||
</ | |||
Result: | |||
{{User:Lavaeolus/Sandbox|Your description goes here.}} | |||
---- | |||
Optional {{C|size}} parameter for different description sizes: | |||
<pre>{{Description|size=90%|Here is a smaller description.}}</pre> | |||
</ | |||
Result: | |||
{{User:Lavaeolus/Sandbox|size=90%|Here is a smaller description.}} | |||
-- | ---- | ||
Optional {{C|noitalics}} parameter for longer descriptions, such as the text found in books: | |||
<pre>{{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>}}</pre> | |||
< | |||
Result: | |||
{{User:Lavaeolus/Sandbox|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 version of the template is automatically applied for [[Books]] in [[Template:MiscItemPage]].</p>}} | |||
< | |||
[[Category:Templates]] | |||
</noinclude> | |||
[[Category: Templates]]</noinclude> |
Revision as of 14:55, 28 August 2023
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:
Your description goes here.
Optional size
parameter for different description sizes:
{{Description|size=90%|Here is a smaller description.}}
Result:
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:
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.