Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633
edits
m (Table formatting) |
(Added another example usage) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{Advancement}} | {{Advancement}} | ||
== Image == | == Usage == | ||
=== Image === | |||
Using the first parameter, {{Code|{{{1}}}}}, you can set the image to the specified block or item or a fallback image. | Using the first parameter, {{Code|{{{1}}}}}, you can set the image to the specified block or item or a fallback image. | ||
Line 11: | Line 12: | ||
For Gamemode 4 specific items or blocks, <code>gm4:</code> must prefix the name, e.g., <code>gm4:Boots of Ostara</code> | For Gamemode 4 specific items or blocks, <code>gm4:</code> must prefix the name, e.g., <code>gm4:Boots of Ostara</code> | ||
== Background == | === Background === | ||
''Optional.'' The second parameter, {{Code|{{{bg}}}}}, is used to set the background. | ''Optional.'' The second parameter, {{Code|{{{bg}}}}}, is used to set the background. | ||
Line 40: | Line 41: | ||
|} | |} | ||
== Link== | === Link === | ||
<span style = "color:red">NOTE: Link is not implemented, as <code><nowiki>{{</nowiki>Advancement<nowiki>}}</nowiki></code> currently uses <code><nowiki>{{</nowiki>Stack<nowiki>}}</nowiki></code> and not <code><nowiki>{{</nowiki>Inventory Icon<nowiki>}}</nowiki></code>.</span> | <span style = "color:red">NOTE: Link is not implemented, as <code><nowiki>{{</nowiki>Advancement<nowiki>}}</nowiki></code> currently uses <code><nowiki>{{</nowiki>Stack<nowiki>}}</nowiki></code> and not <code><nowiki>{{</nowiki>Inventory Icon<nowiki>}}</nowiki></code>.</span> | ||
Line 53: | Line 54: | ||
New lines and spacing within <code><nowiki>{{</nowiki>Advancement<nowiki>}}</nowiki></code> is ignored, as long as the parameter is stated, e.g., <code>bg = plain</code>. | New lines and spacing within <code><nowiki>{{</nowiki>Advancement<nowiki>}}</nowiki></code> is ignored, as long as the parameter is stated, e.g., <code>bg = plain</code>. | ||
The second and third parameters can be written inline, as shown in the last example, but unless the template is written without spaces, the output will fail. | |||
<pre> | <pre> | ||
Line 65: | Line 68: | ||
| state = worn | | state = worn | ||
| link = SCUBA Gear | | link = SCUBA Gear | ||
}}</pre> | }}{{Advancement|Diamond Hoe|fancy|raw}} | ||
</pre> | |||
{{Advancement | {{Advancement | ||
Line 78: | Line 82: | ||
| state = worn | | state = worn | ||
| link = SCUBA Gear | | link = SCUBA Gear | ||
}} | }}{{Advancement|Diamond Hoe|fancy|raw}} | ||
== See Also == | |||
* <code><nowiki>{{</nowiki>[[Module:InvSprite|InvSprite]]<nowiki>}}</nowiki></code> | |||
__NOTOC__ | __NOTOC__ |
edits