Template:Minecraft/doc: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
BoxWithout (talk | contribs)
m 8 revisions imported
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
This template creates a link to the [[w:c:minecraft|Minecraft Wiki]].
This template creates a link to the {{MC|Minecraft Wiki}}.


==Usage==
==Definition==
{{Ts|MC|Mc}}
{{Ts|MC|Mc}}{{PsHead}}
{{T|Minecraft|1|2}}, where:
{{Ps|1|no|string|The destination page on Minecraft Wiki.| {{MC}}}}
*{{S|1}} is the link destination (required).
{{Ps|2|no|string|The text displayed as the link.|Parameter {{S|1}}}}
*{{S|2}} is the link display name (optional, default to: {{P|1}})
{{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 aforementioned list should contain every page in the [[:Category:Vanilla_objects|Vanilla objects category]], and should be frequently updated.


==Examples==
==Examples==
Line 20: 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}}

Latest revision as of 21:33, 14 February 2025

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[edit source]

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[edit source]

{{Minecraft|Wool}}
produces

Wool

{{Minecraft|Cobblestone|Cobble}}
produces

Cobble

{{Minecraft|Cooked Salmon}}
produces

Cooked Salmon

{{Minecraft|Renewable resource|Renewable}}
produces

Renewable