Template:AdvancementIcon/doc: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (Table formatting)
m (Added related link(s))
Line 79: Line 79:
  | link = SCUBA Gear
  | link = SCUBA Gear
}}
}}
== See Also ==
* <code><nowiki>{{</nowiki>[[Module:InvSprite|InvSprite]]<nowiki>}}</nowiki></code>
__NOTOC__
__NOTOC__

Revision as of 04:02, 25 May 2020

Using this template, you can create the advancements as seen within the game.

The images used are taken from {{InvSprite}}.

Gamemode 4
Semi-funny blurb about GM4

Image

Using the first parameter, {{{1}}}, you can set the image to the specified block or item or a fallback image.

For Gamemode 4 specific items or blocks, gm4: must prefix the name, e.g., gm4:Boots of Ostara

Background

Optional. The second parameter, {{{bg}}}, is used to set the background.

Optional. The third parameter, {{{state}}}, is used to display advancement completion state.

Background Parameters
Gamemode 4
Semi-funny blurb about GM4
plain|raw
Gamemode 4
Semi-funny blurb about GM4
oval|raw
Gamemode 4
Semi-funny blurb about GM4
fancy|raw
Gamemode 4
Semi-funny blurb about GM4
plain|worn
Gamemode 4
Semi-funny blurb about GM4
oval|worn
Gamemode 4
Semi-funny blurb about GM4
fancy|worn

Link

NOTE: Link is not implemented, as {{Advancement}} currently uses {{Stack}} and not {{Inventory Icon}}.

Optional. An advancement icon can contain a link using {{{link}}}.

To link Boots of Ostara, you would use {{Advancement|gm4:Boots of Ostara|link=Boots of Ostara}}.

Example Usage

Advancements can be placed inline by placing two {{Advancement}}s next to one another, without spaces or newlines.

New lines and spacing within {{Advancement}} is ignored, as long as the parameter is stated, e.g., bg = plain.

{{Advancement
 | Furnace
 | bg = plain
 | state = raw}}{{Advancement|Furnace|bg = oval|state = worn}}

{{Advancement
 | gm4:SCUBA Helmet
 | bg = fancy
 | state = worn
 | link = SCUBA Gear
}}
Gamemode 4
Semi-funny blurb about GM4
Gamemode 4
Semi-funny blurb about GM4
Gamemode 4
Semi-funny blurb about GM4

See Also