Template:AdvancementRow: Difference between revisions

No edit summary
(added advancement icon frames - plain, oval, fancy)
Line 1: Line 1:
<includeonly><tr><td>{{ScaledImage|{{#if:{{{icon|{{{1|}}}}}}|{{{icon|{{{1}}}}}}}}.png|64px}}</td><td>{{anchor|{{{title}}}}} {{#ifeq: {{PAGENAME}} | Advancements | {{{title|—}}} | [[Advancements#{{{title}}}|{{{title|—}}}]] }}</td><td>{{{description|{{{2}}}}}}</td><td>{{#if: {{{requirements|{{{3|}}}}}} | {{{requirements|{{{3}}}}}} | — }}</td>{{#ifeq:{{PAGENAME}}|Advancements|<td>{{#if:{{{id|{{{4|}}}}}}|<code>{{{id|{{{4}}}}}}</code>|—}}</td>}}</tr></includeonly><noinclude>
<includeonly><tr><td style="padding:0; width:64px; height:64px;"><div style="position:relative; width:64px; height:64px; margin:3px;"><div style="position:absolute; top:0; left:0;">{{ScaledImage|Advancement-{{#switch:{{lc:{{{bg|}}}}}|fancy=fancy|oval=oval|#default=plain}}-raw.png|64px|link=}}</div><div style="position:absolute; top:0; left:0; width:64px; height:64px; display:flex; align-items:center; justify-content:center;">{{ScaledImage|{{#if:{{{icon|{{{1|}}}}}}|{{{icon|{{{1}}}}}}}}.png|48px|link=}}</div></div></td><td>{{anchor|{{{title}}}}} {{#ifeq: {{PAGENAME}} | Advancements | {{{title|—}}} | [[Advancements#{{{title}}}|{{{title|—}}}]] }}</td><td>{{{description|{{{2}}}}}}</td><td>{{#if: {{{requirements|{{{3|}}}}}} | {{{requirements|{{{3}}}}}} | — }}</td>{{#ifeq:{{PAGENAME}}|Advancements|<td>{{#if:{{{id|{{{4|}}}}}}|<code>{{{id|{{{4}}}}}}</code>|—}}</td>}}</tr></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 11:11, 13 November 2026

[view | edit | history | purge]Documentation

This template represents a row in Template:AdvancementTable.

Usage

{{AdvancementTable|
{{AdvancementRow
|title=Name of advancement
|bg=Specify the background ("plain", "fancy", "oval"). Background default to "plain"
|Grid icon of advancement
|Word-for-word in-game description
|If the in-game description is not obvious, explain here
|Internal ID, defaults to "—"}}
}}

Example

{{AdvancementTable|
{{AdvancementRow
|title=The First of Many
|bg=fancy
|Poke Ball
|Using four of the same Apricorn and a Copper Ingot, craft your first Poké Ball
|Have any type of [[Poké Ball]] or [[Ancient Poké Ball]] in your inventory.
|cobblemon/craft_poke_ball}}
}}

Produces:

IconNameDescriptionActual requirements (if different)
Advancement-fancy-raw.png
Poke Ball.png
The First of ManyUsing four of the same Apricorn and a Copper Ingot, craft your first Poké Ball Have any type of Poké Ball or Ancient Poké Ball in your inventory.

Note: Resource location is automatically omitted if the page is not Advancements. Hence, cobblemon/craft_poke_ball will not appear even if specified.

[view | edit | history | purge]The above documentation is transcluded from Template:AdvancementRow/doc.