Template:AdvancementRow: Difference between revisions
(fit to scale ingame) |
(forgot parent) |
||
| Line 1: | Line 1: | ||
<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|40px|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|{{{ | <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|40px|link=}}</div></div></td><td>{{anchor|{{{title}}}}} {{#ifeq: {{PAGENAME}} | Advancements | {{{title|—}}} | [[Advancements#{{{title}}}|{{{title|—}}}]] }}</td><td>{{{description|{{{2}}}}}}</td>{{#ifeq:{{PAGENAME}}|Advancements|<td>{{#if:{{{parent|{{{3|}}}}}}|{{{parent|{{{3}}}}}}|—}}</td>}}<td>{{#ifeq:{{PAGENAME}}|Advancements|{{#if:{{{requirements|{{{4|}}}}}}|{{{requirements|{{{4}}}}}}|—}}|{{#if:{{{requirements|{{{3|}}}}}}|{{{requirements|{{{3}}}}}}|—}}}}</td>{{#ifeq:{{PAGENAME}}|Advancements|<td>{{#if:{{{id|{{{5|}}}}}}|<code>{{{id|{{{5}}}}}}</code>|—}}</td>}}</tr></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 08:38, 15 November 2026
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:
| Icon | Name | Description | Actual requirements (if different) |
|---|---|---|---|
![]() | The First of Many | 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. |
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.
