Difference between revisions of "Template:Description"
Jump to navigation
Jump to search
m (alter width for revised DocProv layout) |
m (t) |
||
Line 4: | Line 4: | ||
The result will be as shown below with your text replacing the curly-braced parameter. | The result will be as shown below with your text replacing the curly-braced parameter. | ||
</noinclude><includeonly>{{#ifeq: {{#strlen: {{{1|}}}}}|0|[[Category:Undescribed Pages]]|<div align="left"> | </noinclude><includeonly>{{#ifeq: {{#strlen: {{{1|}}}}}|0|[[Category:Undescribed Pages]]|<div align="left"> | ||
− | {{{!}}style="width: | + | {{{!}}style="width:98%; font-style:italic; text-align:left; background-color:ivory; border:1pt solid darkgoldenrod; padding:0.1em 0.5em; font-size:105%;" |
{{!}}- | {{!}}- | ||
{{!}}{{#ifexpr: {{#strlen: [[Description::{{{1}}}]]}}<500|{{{1}}}|{{#substring: {{{1}}}|0|500}}{{RED|{{#substring: {{{1}}}|500}}}}[[Category:Pages with overlong descriptions]]}} | {{!}}{{#ifexpr: {{#strlen: [[Description::{{{1}}}]]}}<500|{{{1}}}|{{#substring: {{{1}}}|0|500}}{{RED|{{#substring: {{{1}}}|500}}}}[[Category:Pages with overlong descriptions]]}} | ||
{{!}}}<br/></div>}}[[Description::{{{1}}}| ]]</includeonly> | {{!}}}<br/></div>}}[[Description::{{{1}}}| ]]</includeonly> |
Revision as of 07:59, 28 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). If the description is 500 characters or longer, the excess is displayed in red, and the page is assigned to Category:Pages with overlong descriptions
It is for use by other templates rather than directly in pages.
Usage:
{{Description|TEXT}}
The result will be as shown below with your text replacing the curly-braced parameter.