Difference between revisions of "Template:Achievement"

From Team Fortress Wiki
Jump to: navigation, search
m (add missing cats)
Line 1: Line 1:
<!--  
+
<table cellpadding="0" style="width: {{{width|50%}}}; text-align: left;"><tr>
 +
<td width="10%" rowspan="2">[[File:{{{image|Tf2-logo-transparent.png}}}|64px]]</td>
 +
<td style="padding-left: 2px; padding-right: 4px;">'''''{{{name|Achievement Name}}}'''''</td></tr><tr>
 +
<td style="padding-left: 2px; padding-right: 4px;">{{{desc|Lorem ipsum dolor sit amet, lorem ipsum, dolor, sit amet. Lorem dolor, sit amet ipsum.}}}{{#if:{{{reward|}}}|<br />
 +
<small>'''Reward''': [[{{{reward|Weapons}}}|{{{reward|Weapon name}}}]]</small></td>|</td>}}</tr></table><noinclude>
  
    intended to replace tables used for achievements
+
== Usage ==
    with a standardised template so they all look the same.  
+
This template was created in order to standardise how achievements appear in article pages.
 +
* {{ Achievement
 +
** | ''image'' - file name of the image (excluding "File:" or "Image:" prefix). Will display TF2 logo if none is given.
 +
** | ''name''  - name of the achievement.
 +
** | ''desc'' or ''description'' - the corresponding description (should use exact wording from Steam page).
 +
** | ''reward'' - if the achievement is a Milestone achievement, put the name of the weapon that is earned (i.e. the [[Ambassador]]).
 +
* <nowiki>}}</nowiki>
  
  -->
 
{| cellpadding="0" style="width: {{#if:{{{columns|}}}|true|50%|100%}}; text-align: left;"
 
| width="10%" | [[File:{{{image|Tf2-logo-transparent.png}}}|64px]]
 
| style="padding-left: 2px; padding-right: 4px;" | '''''{{{name|Achievement Name}}}'''''
 
{{{desc|{{{description|Lorem ipsum dolor sit amet, lorem ipsum, dolor, sit amet. Lorem dolor, sit amet ipsum.}}}}}}{{#if:{{{reward|}}}|<br />
 
<small>'''Reward''': [[{{{reward|Weapons}}}|{{{reward|Weapon name}}}]]</small>|}}
 
|}<noinclude>
 
'''Usage:'''
 
 
* {{ Achievement |
 
** ''image'' - file name of the image (excluding "File:" or "Image:" prefix). Will display TF2 logo if none is given.
 
** ''name''  - name of the achievement.
 
** ''desc'' or ''description'' - the corresponding description (should use exact wording from Steam page).
 
** ''reward'' - if the achievement is a Milestone achievement, put the name of the weapon that is earned (i.e. the [[Ambassador]]).
 
* <nowiki>}}</nowiki>
 
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 07:26, 29 July 2010

64px Achievement Name
Lorem ipsum dolor sit amet, lorem ipsum, dolor, sit amet. Lorem dolor, sit amet ipsum.

Usage

This template was created in order to standardise how achievements appear in article pages.

  • {{ Achievement
    • | image - file name of the image (excluding "File:" or "Image:" prefix). Will display TF2 logo if none is given.
    • | name - name of the achievement.
    • | desc or description - the corresponding description (should use exact wording from Steam page).
    • | reward - if the achievement is a Milestone achievement, put the name of the weapon that is earned (i.e. the Ambassador).
  • }}