Template:Minecraft/doc: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Vincent243
mNo edit summary
Create: Minecraft Mod Wiki>Kapostamas
test cases for links with multiple words
Line 4: Line 4:
==Definition==
==Definition==
{{Ts|MC|Mc}}{{PsHead}}
{{Ts|MC|Mc}}{{PsHead}}
{{Ps|1|no|string|The destination page on Minecraft Wiki.|[https://minecraft.wiki Minecraft Wiki]}}
{{Ps|1|no|string|The destination page on Minecraft Wiki.|Minecraft Wiki <small>(link removed until Fandom decides to grow up)</small>}}
{{Ps|2|no|string|The text displayed as the link.|Parameter {{S|1}}}}
{{Ps|2|no|string|The text displayed as the link.|Parameter {{S|1}}}}
{{PsFoot}}
{{PsFoot}}


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 aformentioned list should contain every page in the [[:Category:Vanilla_objects|Vanilla objects category]], and should be frequently updated.
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 [[:Category:Vanilla_objects|Vanilla objects category]], and should be frequently updated.


==Examples==
==Examples==
Line 22: Line 22:
;produces
;produces
{{Minecraft|Cobblestone|Cobble}}
{{Minecraft|Cobblestone|Cobble}}
<pre style="width: 300px">
{{Minecraft|Cooked Salmon}}
</pre>
;produces
{{Minecraft|Cooked Salmon}}
<pre style="width: 300px">
{{Minecraft|Renewable resource|Renewable}}
</pre>
;produces
{{Minecraft|Renewable resource|Renewable}}

Revision as of 00:28, 28 September 2023

This is a documentation subpage for Template:Minecraft.
It contains usage information, categories and other content that is not part of the original template page.

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 (link removed until Fandom decides to grow up)
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