Difference between revisions of "Template:NewItem"

From TerraFirmaCraft Plus Wiki
Jump to: navigation, search
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
{{Stub}}
 +
 
{{Item
 
{{Item
 
|title={{subst:BASEPAGENAMEE}}
 
|title={{subst:BASEPAGENAMEE}}
|image={{subst:BASEPAGENAMEE}}.png  <!-- The large 144px or 150px image of the item -->
+
|image={{subst:BASEPAGENAMEE}}.png  <!-- The large (~150px) image of the item, including file extension (.png, .gif). Alt images can be added using ; -->
|invimage={{subst:BASEPAGENAMEE}}    <!-- grid version image. There can be more of these entries (|invimage2= |invimage3= etc.) for variant inv images-->
+
|invimage={{subst:BASEPAGENAMEE}}    <!-- grid version image. For alt images add new lines (|invimage2= |invimage3= etc.) -->
 
|stackable=    <!-- yes or no, amt. ex:Yes, 64 -->
 
|stackable=    <!-- yes or no, amt. ex:Yes, 64 -->
 
|size=  
 
|size=  
Line 9: Line 11:
 
|itemid=  
 
|itemid=  
 
}}
 
}}
 
== About ==      <!-- Short description that would go in a tooltip or a list of items in the game. ex: A short thin piece of wood. Useful for crafting. -->
 
  
 
== Obtaining ==    <!-- Detailed description of where to find the item or how to craft it. -->
 
== Obtaining ==    <!-- Detailed description of where to find the item or how to craft it. -->
Line 16: Line 16:
 
{{Recipe/{{subst:BASEPAGENAMEE}}}}  <!-- Default recipe. If this is a broken link, follow it and create the recipe there. More info at Template:Recipe -->
 
{{Recipe/{{subst:BASEPAGENAMEE}}}}  <!-- Default recipe. If this is a broken link, follow it and create the recipe there. More info at Template:Recipe -->
  
== Use ==    <!-- Detailed description of how the item is used and crafting recipes it is used in. -->
+
== Usage ==    <!-- Detailed description of how the item is used and crafting recipes it is used in. -->
  
This item is used in the following recipes:
+
== Related Pages ==  <!-- This section is a list of pages that link here or use the item's grid image. Do not leave this list on the page, it is only here to help you find related recipes when creating the page. -->
  
{{Special:Whatlinkshere/{{subst:BASEPAGENAMEE}}}}   <!-- This creates a list of pages that use this item's grid image. Do not leave this list on the page, it is only here to help you find related recipes when creating the page. -->
+
{{Special:WhatLinksHere/{{subst:BASEPAGENAMEE}}}}
  
 
== Trivia ==    <!-- add any other info that doesn't fit above. Perhaps how the game item relates or differs from its real world version, or of the item used be different in past versions of the game. -->
 
== Trivia ==    <!-- add any other info that doesn't fit above. Perhaps how the game item relates or differs from its real world version, or of the item used be different in past versions of the game. -->
 +
 +
== Gallery ==    <!-- add in-game or other images here-->
 +
<gallery mode=packed>
 +
File:Filename.png|Caption
 +
File:Filename2.png|Caption
 +
</gallery>
 +
 +
== History == <!-- Information about the history of the item. -->
 +
 +
{{History|b}}
 +
{{History||VERSION|INFORMATION}}
 +
{{History|foot}}
  
 
{{Blocks}} <!-- adds navigation menu to bottom of page -->
 
{{Blocks}} <!-- adds navigation menu to bottom of page -->
Line 28: Line 40:
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
==About==
+
{{/doc}}
This is template for creating new item pages with item info box, sections, nav box, category tag, and additional instructions commented in the page's wikicode.
+
  
==Use==
 
In the blank edit box of a new page, type <nowiki>{{subst:NewItem}}</nowiki> and save the page. On saving, the does a one-time transclusion of this template and saves the page as if the template contents were manually entered. The page name where it is called is used to autocomplete certain parts of the template (ex:item images and recipe template), so make sure that the url of the page you're creating matches the names of the item's images.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 11:05, 18 July 2020


Template documentation (for the above template, sometimes hidden or invisible)

Template:NewItem/doc


Visit Template:NewItem/doc to edit this text! (How does this work?)