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)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="display: flex; width: 100%; min-width: 10em; max-width: 45em; align-items: center;">
<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;">
<div style="max-width: 80px;">[[File:A-{{{1}}}.jpg|link=Achievements]]</div>
<div class="bg3wiki-achievement" style="max-width: 80px;">[[File:A-{{{1}}}.jpg|link=Achievements]]</div>
<div style="margin: 0 auto 0 0; text-align:left;">
<div class="bg3wiki-achievement" style="margin: 0 auto 0 0; padding: 0 0.8em; text-align:left;">
{{#switch:{{{1|}}}
{{#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.
Line 62: Line 62:
</div>
</div>
</includeonly><noinclude>[[Category:Templates]]
</includeonly><noinclude>[[Category:Templates]]
Usage: {{code|<nowiki>{{Achievement|Descent from Avernus}}</nowiki>}}


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


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


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

Latest revision as of 05: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.