Template:Achievement: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(New demo template and removed reference to unused parameters)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| style="max-width:{{{width|600px}}}; {{#if:{{{nopad|}}}||padding-left: 1em;}}"  
<includeonly>
|-
<div class="bg3wiki-achievement" style="box-sizing: border-box; display: flex; width: 100%; min-width: 10em; max-width: 45em; align-items: center; padding: 0 1em;">
| style="width: 80px;"| [[File:A-{{{1}}}.jpg|link=Achievements]]
<div class="bg3wiki-achievement" style="max-width: 80px;">[[File:A-{{{1}}}.jpg|link=Achievements]]</div>
| {{#switch:{{{1|}}}
<div class="bg3wiki-achievement" style="margin: 0 auto 0 0; padding: 0 0.8em; text-align:left;">
{{#switch:{{{1|}}}
| A Grym Fate = '''{{{1}}}'''<br> Kill the Adamantine Golem without using the Forge Hammer.
| A Grym Fate = '''{{{1}}}'''<br> Kill the Adamantine Golem without using the Forge Hammer.
| Absolute Power Corrupts = '''{{{1}}}'''<br> Reign with terror: take control of the Netherbrain and bend the world to your will.
| Absolute Power Corrupts = '''{{{1}}}'''<br> Reign with terror: take control of the Netherbrain and bend the world to your will.
Line 56: Line 57:
| Under Lock and Key = '''{{{1}}}'''<br> Rescue all the prisoners from the depths of Moonrise Towers in one playthrough.
| Under Lock and Key = '''{{{1}}}'''<br> Rescue all the prisoners from the depths of Moonrise Towers in one playthrough.
| You Have Two Hands for a Reason = '''{{{1}}}'''<br> Pet Scratch and the owlbear cub at the same time - the greatest joy an adventurer could ask for.
| You Have Two Hands for a Reason = '''{{{1}}}'''<br> Pet Scratch and the owlbear cub at the same time - the greatest joy an adventurer could ask for.
|  Foehammer = '''{{{1}}}'''<br> Complete the game in Honour mode.
}}
}}
|}</includeonly><noinclude>[[Category:Templates]]
</div>
Usage: {{code|<nowiki>{{Achievement|Descent from Avernus}}</nowiki>}}
</div>
</includeonly><noinclude>[[Category:Templates]]


Result: {{Achievement|Descent From Avernus}}
Display the icon and description of a Baldur's Gate 3 achievement.


Change max-width either in '''px''' or in '''%''': {{code|<nowiki>{{Achievement|Action Surge|width=600px}}</nowiki>}}
== Examples ==
 
{{Template demo
Result: {{Achievement|Action Surge|width=600px}}
| <nowiki>{{Achievement|Descent From Avernus}}</nowiki>
 
| <nowiki>{{Achievement|Action Surge}}</nowiki>
Change max-width either in '''px''' or in '''%''': {{code|<nowiki>{{Achievement|No Penny Required|width=100%}}</nowiki>}}
| <nowiki>{{Achievement|Busker}}</nowiki>
 
}}
Result: {{Achievement|No Penny Required|width=100%}}
 
Remove padding by adding {{InfoBlob|<nowiki>nopad=1</nowiki>}}: {{code|<nowiki>{{Achievement|Busker|nopad=1}}</nowiki>}}


Result: {{Achievement|Busker|nopad=1}}
</noinclude>
</noinclude>

Latest revision as of 04:50, 20 July 2024


Display the icon and description of a Baldur's Gate 3 achievement.

Examples

Markup Renders as
{{Achievement|Descent From Avernus}}
A-Descent From Avernus.jpg

Descent From Avernus
Take control of the nautiloid and escape the Hells.

{{Achievement|Action Surge}}
A-Action Surge.jpg

Action Surge
Perform five attacks in one turn. Your enemies won't know what hit them (literally).

{{Achievement|Busker}}
A-Busker.jpg

Busker
Earn a hundred gold from playing sweet, sweet music in a single playthrough.