Feed The Beast Wiki
(Created page with "{{Doc/Start}} This is used to be more compact then {{Tl|Navbox item}}. {{Tl|NID}} will be the short version. ==Parameters== * '''1''': the item name. * '''2''': the display n...")
Tag: Template:No summary
 
m (Add optional 4th parameter to override target link)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Doc/Start}}
 
{{Doc/Start}}
This is used to be more compact then {{Tl|Navbox item}}. {{Tl|NID}} will be the short version.
+
{{Tl|Navbox item/disambiguation}}, or {{Tl|NID}} is a more compact variation of {{Tl|Navbox item}} used specifically to link to a disambiguated page title.
   
 
==Parameters==
 
==Parameters==
* '''1''': the item name.
+
* '''1''': The item name.
  +
* '''2''': ''(Optional)'' The full mod name, speeds up template massively, will be worked out from mod if not provided.
* '''2''': the display name.
 
* '''icon''': the icon to be displayed.
+
* '''3''': ''(Optional)'' The display name.
* '''gicon''': the item to be displayed as the icon.
+
* '''4''': ''(Optional)'' Target link before the disambiguation in parenthesis. Defaults to the first parameter.
* '''mod''': mod abbreviation.
+
* '''mod''': Mod abbreviation.
   
 
==Examples==
 
==Examples==
<nowiki>{{Navbox item/disambiguation|mod=IC2NC|Range Upgrade}}</nowiki>
+
<pre>{{Navbox item/disambiguation|mod=IC2NC|Range Upgrade}}</pre>
  +
produces
 
 
{{Navbox item/disambiguation|mod=IC2NC|Range Upgrade}}
 
{{Navbox item/disambiguation|mod=IC2NC|Range Upgrade}}
   
  +
<pre>{{NID|mod=IC2|Generator|IndustrialCraft 2|Generator 9001}}</pre>
{{TC|Metatemplates}}
 
  +
produces
  +
{{NID|mod=IC2|Generator|IndustrialCraft 2|Generator 9001}}
  +
  +
{{TC|Navigation metatemplates}}
 
{{Doc/End}}
 
{{Doc/End}}

Latest revision as of 09:55, 5 September 2020

Template-info.png Documentation

{{Navbox item/disambiguation}}, or {{NID}} is a more compact variation of {{Navbox item}} used specifically to link to a disambiguated page title.

Parameters

  • 1: The item name.
  • 2: (Optional) The full mod name, speeds up template massively, will be worked out from mod if not provided.
  • 3: (Optional) The display name.
  • 4: (Optional) Target link before the disambiguation in parenthesis. Defaults to the first parameter.
  • mod: Mod abbreviation.

Examples

{{Navbox item/disambiguation|mod=IC2NC|Range Upgrade}}

produces
Range Upgrade

{{NID|mod=IC2|Generator|IndustrialCraft 2|Generator 9001}}

produces
Generator 9001


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.