Template:Minecraft: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Kapostamas
hacky way to replace spaces with underscores (since Template:Link has become uneditable)
Create: Minecraft Mod Wiki>Kapostamas
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke: Link | mcWikiLink | {{#replace:{{{1}}}| |_}} | {{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#invoke: Link | mcWikiLink}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 00:39, 28 September 2023

[view | edit | history | purge]Documentation

This template creates a link to the Minecraft Wiki.

Definition

Template shortcuts
Parameter R? Type Description Default
1
No
/
The destination page on Minecraft Wiki. Minecraft Wiki
2
No
/
The text displayed as the link. Parameter <1>

Pages listed in Module:Link/VanillaPages will not generate a link to Minecraft Wiki, but will instead generate an internal link, to the Create Wiki. The aforementioned list should contain every page in the Vanilla objects category, and should be frequently updated.

Examples

{{Minecraft|Wool}}
produces

Wool

{{Minecraft|Cobblestone|Cobble}}
produces

Cobble

{{Minecraft|Cooked Salmon}}
produces

Cooked Salmon

{{Minecraft|Renewable resource|Renewable}}
produces

Renewable

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