Difference between revisions of "Template:Gamelink"

From Minetest Wiki
Jump to navigation Jump to search
m
m (Replaced {{BASEPAGENAME}} with {{#titleparts}})
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span>[[{{BASEPAGENAME}}/{{{1}}}|{{ #if: {{{2|}}} | {{{2}}} | {{{1}}} }}]]</span>
+
<includeonly>[[{{#titleparts:{{FULLPAGENAME}}|2}}/{{{1}}}|{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }}]]</includeonly><noinclude>
<noinclude>
 
 
== Usage ==
 
== Usage ==
It takes either 1 or 2 parameters.
+
This template takes either 1 or 2 parameters.
 
* 1: The page to link to '''within''' the same game or mod.
 
* 1: The page to link to '''within''' the same game or mod.
* 2: An alternative text to display in the text.
+
* 2: An alternative text to display as the URL.
 
 
 
<pre>
 
<pre>
 
{{Gamelink|Steel Ingot}}
 
{{Gamelink|Steel Ingot}}
 
{{Gamelink|Steel Ingot|Steel Ingots}}
 
{{Gamelink|Steel Ingot|Steel Ingots}}
 
</pre>
 
</pre>
 
+
[[Category:Templates]]
== Limitations ==
 
It is not capable of linking remaining charakters in the link like '''Steel Ingot'''''s''. Use the 2nd parameter instead.
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 06:13, 27 May 2017

Usage

This template takes either 1 or 2 parameters.

  • 1: The page to link to within the same game or mod.
  • 2: An alternative text to display as the URL.
{{Gamelink|Steel Ingot}}
{{Gamelink|Steel Ingot|Steel Ingots}}