Difference between revisions of "Template:FeatureDescription"
From YTMND
(added a code example) |
|||
Line 2: | Line 2: | ||
<tr bgcolor="#ff9900"><td> | <tr bgcolor="#ff9900"><td> | ||
<table width="{{{width|250}}}-5px" align="center" border="0" cellpadding="2" cellspacing="0"> | <table width="{{{width|250}}}-5px" align="center" border="0" cellpadding="2" cellspacing="0"> | ||
− | <tr bgcolor="#ff5720"><td><center><big><font color="#e6dfcb" face="cooper lt bt">'''<span class="plainlinks" | + | <tr bgcolor="#ff5720"><td><center><big><font color="#e6dfcb" face="cooper lt bt">'''<span class="plainlinks">[{{{featurelink|http://www.ytmnd.com/}}} {{{topic|The Front Page}}}]</span>'''</font></big></center></td></tr> |
</table></td></tr><tr bgcolor="#f3efe5"><td> | </table></td></tr><tr bgcolor="#f3efe5"><td> | ||
*''{{{Label1|Label 1}}}:'' '''{{{Description1|Description 1}}}''' | *''{{{Label1|Label 1}}}:'' '''{{{Description1|Description 1}}}''' | ||
Line 18: | Line 18: | ||
}} | }} | ||
<br><br><br> | <br><br><br> | ||
− | + | '''Example:''' | |
+ | |||
+ | The following code | ||
+ | |||
+ | <code><nowiki> | ||
+ | {{FeatureDescription | ||
+ | |topic=YTMND Career | ||
+ | |width=250 | ||
+ | |Label1=YTMNDs Created | Description1=72 | ||
+ | |Label2=Views Accumulated | Description2=671,650 | ||
+ | |Label3=Votes Accumulated | Description3=17,878 | ||
+ | |Label4=Average Site Rating | Description4=4.14 {{star|41}} | ||
+ | |Label5={{favsmall}} Collected | Description5=1,094 | ||
+ | }} | ||
+ | </nowiki></code> | ||
+ | |||
+ | will yield the following table. | ||
+ | |||
+ | |||
+ | {{FeatureDescription | ||
+ | |topic=YTMND Career | ||
+ | |width=250 | ||
+ | |Label1=YTMNDs Created | Description1=72 | ||
+ | |Label2=Views Accumulated | Description2=671,650 | ||
+ | |Label3=Votes Accumulated | Description3=17,878 | ||
+ | |Label4=Average Site Rating | Description4=4.14 {{star|41}} | ||
+ | |Label5={{favsmall}} Collected | Description5=1,094 | ||
+ | }} | ||
+ | |||
+ | |||
+ | '''Note''' that the variables are case-sensitive. Leaving a variable out will result in a default value. | ||
+ | |||
+ | |||
+ | <hr> | ||
+ | |||
+ | |||
+ | <!-- the original table code -----------------------------------------------------> | ||
<table width="250px" cellpadding="2" cellspacing="0" border="0" rules="none" frame="box"> | <table width="250px" cellpadding="2" cellspacing="0" border="0" rules="none" frame="box"> | ||
<tr bgcolor="#ff9900"><td> | <tr bgcolor="#ff9900"><td> | ||
Line 31: | Line 67: | ||
</td></tr> | </td></tr> | ||
</table> | </table> | ||
− | + | <!-- -----------------------------------------------------------------------------> | |
</noinclude> | </noinclude> |
Revision as of 03:48, September 19, 2007
This template is a work in progress.
| |
|
Example:
The following code
{{FeatureDescription
|topic=YTMND Career
|width=250
|Label1=YTMNDs Created | Description1=72
|Label2=Views Accumulated | Description2=671,650
|Label3=Votes Accumulated | Description3=17,878
|Label4=Average Site Rating | Description4=4.14 {{star|41}}
|Label5={{favsmall}} Collected | Description5=1,094
}}
will yield the following table.
| |
Note that the variables are case-sensitive. Leaving a variable out will result in a default value.
| |