Difference between revisions of "Template:Description"

From Wikispooks
Jump to navigation Jump to search
m (95% centered hides rt-hand part of box and text behind the image (if present) could probably be be addresses by altering the display statements order but this way is quicker - and I prefer LJ anyway)
(Add Undescribed documents category)
Line 1: Line 1:
<noinclude>[[category:Semantic Templates]]This semantic template is for page descriptions. Unlike the other semantic data templates, as well as adding the  property it also produces a visual output (as long as the TEXT parameter is non-empty), displaying it in a left-justified block of italic text with gold border and light gold background. It has just the one parameter which is the description (500 characters or less).<br/> ''It is for use by other templates rather than directly in pages.''<br/>
+
<noinclude>[[category:Semantic Templates]]This semantic template is for page descriptions. Unlike the other semantic data templates, as well as adding the  property it also produces a visual output (as long as the TEXT parameter is non-empty), displaying it in a left-justified block of italic text with gold border and light gold background. It has just the one parameter which is the description (500 characters or less).<br/> ''It is for use by other templates rather than directly in pages.'' If called with an empty parameter, the document is added to the category of {{Cat|Undescribed documents}}.<br/>
 
Usage:
 
Usage:
 
:<Code><nowiki>{{Description|TEXT}}</nowiki></code>
 
:<Code><nowiki>{{Description|TEXT}}</nowiki></code>
Line 7: Line 7:
 
{{!}}-
 
{{!}}-
 
{{!}}[[Description::{{{1}}}]]
 
{{!}}[[Description::{{{1}}}]]
{{!}}}<br/></div>}}
+
{{!}}}<br/></div>|[[category:Undescribed documents]}}

Revision as of 06:58, 5 January 2014

This semantic template is for page descriptions. Unlike the other semantic data templates, as well as adding the property it also produces a visual output (as long as the TEXT parameter is non-empty), displaying it in a left-justified block of italic text with gold border and light gold background. It has just the one parameter which is the description (500 characters or less).
It is for use by other templates rather than directly in pages. If called with an empty parameter, the document is added to the category of Category:Undescribed documents.
Usage:

{{Description|TEXT}}

The result will be as shown below with your text replacing the curly-braced parameter.

{{#if: |

{{{1}}}

|[[category:Undescribed documents]}}