Sample Wiki Templates

From Technic Wiki
Jump to: navigation, search

About

This page is intended to be used to provide pieces of code that can be used to write content on this wiki. This is not an exhaustive list of templates, but an assortment of some commonly used templates.

Templates

Modbox


The Modbox template is used to display information about a mod. It has fields to display an image, the mod's Author, Website, Minecraftforum.net link, and which modpacks it is part of. The title of the modbox is given by the name of the page it is placed on.

Code Example
{{Infobox mod

|author=[[ ]]

|website=

|mcf=

|modpacks=[[ ]]

}}

Sample Wiki Templates
221px
AuthorNotch
WebsiteClick Here
Modpacks
All

Block


The Block template is used to display information about minecraft resources that are placable blocks, such as Dirt, Cobblestone, and Doors. It has fields to display a "full size" 128x128 px image, block Type, which mod it is part of, whether or not it is affected by gravity (like Sand and Gravel are), whether the block emits light and which tool is best used to pick that block up. The name at the top of the Block box comes from the name of the page it is placed on, or can be specified with an optional "title" line in the template.

Code Example
{{Block

|mod=

|type=

|gravity=

|light=

|tool=

}}

Light
No block image.png
Type

Solid Block

Requirements

?

Mod

ExampleCraft

Physics

No

Luminance

Yes

Tool

This block can be broken with any tool, but a pickaxe is the quickest

Item


The Item Template is used to display information about items, which are typically things that cannot be placed in the world on their own. Examples include Armor (must be equipped on a Player to be seen) Weapons, Tools, Books, etc. The Item Template has places to show a "full size" 128x128 image, which mod that item is part of, the category or type of item, durability (if applicable), and whether or not the item can be stacked. The title of the item box comes from the name of the page it is placed on, or can be specified with an optional "title" line in the template.

Code Example
{{item

|mod=

|type=

|durability=

|stackable=

}}

Bread
No image.png
Bread
Mod

ExampleCraft

Type

Food

Durability

N/A

Stackable

Yes (16)

Energy

?

Storage

?

Mob

The Mob Template is used to display information about mobs. It has places to display an image for the Mob, its Hit Points, Attack Strength, Spawn location, which version it was first seen in, Network ID, Savegame ID, items that it drops, and how much experience is given for killing it. The name of the mob box is taken from the name of the page the template is placed on, or can be specified with an optional "title=" line in the template.


Code Example
{{Entity

|health={{hp| # }}

|damage={{hp| # }}

|spawn=

|firstver=

|id=

|entityid=

|drops=[[ ITEM ]]

|exp= #

}}

KakerMob
No block image.png
Health points

8 (Heart.pngHeart.pngHeart.pngHeart.png)

Attack strength

4 (Heart.pngHeart.png)

Spawn

Jungle

First appearance

1.0.1

Network ID

574

Savegame ID

234

Drops

KakerPops

Experience

42

Crafting


The Crafting Grid template is used to display item recipes. A1-C3 represent the nine squares in the crafting grid, and by entering an item name after the equal sign the Grid graphic will be rendered. Put the resulting item in Output, and if more than one is created with the recipe place the number after the comma. If the recipe is shapeless, place a 1 after the equals in the 'shapeless=' section of the template.

Multiple items can be entered into a single square for recipes that have more than one type or shape. Simply enter a semi-colon (;) between each item to have the template automatically switch between items at a regular interval.

Code Example Animated Code Animated Example
{{Grid/Crafting Table

|shapeless=

|A1= |B1= |C1=

|A2= |B2= |C2=

|A3= |B3= |C3=

|Output= ,

}}

Wood








Grid layout Shapeless.png


{{Grid/Crafting Table

|shapeless=1

|A1= Wood;Wood (Jungle);Wood (Birch);Wood (Pine) |B1= |C1=

|A2= |B2= |C2=

|A3= |B3= |C3=

|Output= Oak Wood Planks,4;Jungle Wood Planks,4;Birch Wood Planks,4; Spruce Wood Planks,4

Wood








Grid layout Shapeless.png


Furnace


The Furnace Template is used to display crafting recipes that require a resource to be "cooked" to turn it into another resource, such as Raw Porkchop > Cooked Porkchop. It has places to put the input ingredient, the output received from the process, and a fuel slot.

Code Examples
{{Grid/Furnace

|Input=

|Output=

|Fuel=

}}

Wood
Coal
Charcoal


Table


The Table template is used to present information in a table. That table can be configured to collapse to save space (and default to a collapsed state) and have as many or as few columns and rows as you need. You can also place controls to sort the contents of the table.

Code Example
Spanning 2 Columns
{| class="collapsible wikitable collapsed sortable"

!width="100"| NAME

!width="100"| DESCRIPTION

|-

!colspan="#"|TITLE

|-

|| NAME || DESCRIPTION

|}

See this table...

Mod Items Template


Code Example
{{navbox

| name = MODNAME

| title = [[MODNAME]]

| listclass = hlist

|state={{{state|uncollapsed}}}


|group1=Title

|list1=

* {{NavLink|ITEM}}

* {{FormattedNavLink|REALNAME|VIEW}}

{{Navbox subgroup

}}

}}

Images


You can place images on pages by using the "File" template. You can also optionally specify the size in px.

Code Example
[[File:imagename.png|###px]] Hexxit.png

Blockquote


The Blockquote template is used to highlight a text passage, which might be flavor text from an in game description or some other quote that you want to stand out.

Code Example
{{cquote|QUOTE}}

This is a quote.