Template:Description: Difference between revisions
Appearance
Created page with "<includeonly><div class="description-wrapper"><!-- -->{{#if:{{{title|}}}|<!-- --><div class="description-title"><b>{{{title}}}</b></div><!-- --><hr class="description-separator" /><!-- -->}}<!-- --><div class="description-content">{{#if:{{{italic|}}}|<i>}}{{{1|Description}}}{{#if:{{{italic|}}}|</i>}}</div><!-- -->{{#if:{{{2|}}}|<!-- --><hr class="description-separator" /><!-- --><div class="description-source">''{{{2}}}''</div>|<!-- -->{{Namespace|main=Category:Pages w..." |
ReisuDesign (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="description-wrapper"><!-- | <includeonly><div class="description-wrapper2"><div class="description-wrapper"><!-- | ||
-->{{#if:{{{title|}}}|<!-- | -->{{#if:{{{title|}}}|<!-- | ||
--><div class="description-title" | --><div class="description-title">{{{title}}}</div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
--><div class="description-content">{{#if:{{{italic|}}}|<i>}}{{{1|Description}}}{{#if:{{{italic|}}}|</i>}}</div><!-- | --><div class="description-content">{{#if:{{{italic|}}}|<i>}}{{{1|Description}}}{{#if:{{{italic|}}}|</i>}}</div><!-- | ||
-->{{#if:{{{2|}}}|<!-- | -->{{#if:{{{2|}}}|<!-- | ||
--><div class="description-source">''{{{2}}}''</div>|<!-- | --><div class="description-source">''{{{2}}}''</div>|<!-- | ||
-->{{Namespace|main=[[Category:Pages with Sourceless Descriptions]]}}<!-- | -->{{Namespace|main=[[Category:Pages with Sourceless Descriptions]]}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></div></includeonly><noinclude>{{Documentation}}</noinclude> | --></div></div></includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 11:45, 13 October 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses CSS found at MediaWiki:Description.css.
Used to display Descriptions with formatting for source and title.
Syntax
[edit source]- 1 — Description text
- 2 — Source of description
- title — Title of description
- italic — Transform description into italic
Example
[edit source]Lore description
{{Description
|Step through the archway and wander into a place brimming with life, alongside the little creatures drawn here by the planet.
Gather close, sip some tea, take a rest, and stay sprawled out until nightfall if you like. No one here will ever hurry you along.
|Omnidex
}}
yields:
Step through the archway and wander into a place brimming with life, alongside the little creatures drawn here by the planet.
Gather close, sip some tea, take a rest, and stay sprawled out until nightfall if you like. No one here will ever hurry you along.
Omnidex
{{Description|This Description has a title|title = Description Title|italic = 1}} yields:
Description Title
This Description has a title
Template Data
[edit source]Used to display Descriptions with formatting for source and title.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Description Text.
| String | required |
| Source | 2 | Source of Description below text right aligned (Italics). | String | optional |
| Title | title | Title of Description above text (Bold). | String | optional |
| Italic Description | italic | Transform the description into italic text | Boolean | optional |