Difference between revisions of "Template:Show achievement plain"

From Team Fortress Wiki
Jump to: navigation, search
(+)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{view|}}}
+
<includeonly>{{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-{{{view}}}}}</includeonly><noinclude>
| title = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-title}}
+
{{Doc begin}}
| desc = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-desc}}
+
This is a wrapper for {{tl|Dictionary/achievements}} which results in the achievement name/description/image name, as opposed to the combined form shown from {{tl|Show achievement}}.
| icon = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-icon}}
+
 
| reward = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-reward}}
+
== Example usage ==
}}</includeonly>
+
{{tlx|show achievement plain|General|Dynasty|4=view=title}} produces <code>{{show achievement plain|General|Dynasty|view=title}}</code>
 +
<br>
 +
{{tlx|show achievement plain|General|Dynasty|4=view=desc}} produces <code>{{show achievement plain|General|Dynasty|view=desc}}</code>
 +
<br>
 +
{{tlx|show achievement plain|General|Dynasty|4=view=icon}} produces <code>{{show achievement plain|General|Dynasty|view=icon}}</code>
 +
<br><br>
 +
compared to {{tlx|show achievement|General|Dynasty}} which produces {{show achievement|General|Dynasty}}
 +
</noinclude>

Latest revision as of 03:35, 2 June 2024

Documentation for Show achievement plain

This is a wrapper for {{Dictionary/achievements}} which results in the achievement name/description/image name, as opposed to the combined form shown from {{Show achievement}}.

Example usage

{{show achievement plain|General|Dynasty|view=title}} produces Dynasty
{{show achievement plain|General|Dynasty|view=desc}} produces Win 20 games.
{{show achievement plain|General|Dynasty|view=icon}} produces Tf win multiplegames.png

compared to {{show achievement|General|Dynasty}} which produces

Dynasty
Dynasty
Win 20 games.