Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
development:wiki [2020/01/24 21:42] – external edit 127.0.0.1development:wiki [2021/07/12 18:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Wiki guideline for editors ====== +====== Wiki Guidelines ====== 
-First of all, thank you for your efforts to make this wiki better. Seriously, with a lot of blocks and items it is near to impossible for developers to keep wiki up-to-date.  +First of all, thank you for your efforts to make this wiki better. Seriously, with a lot of blocks and items it is near to impossible for developers to keep wiki up-to-date.
-\\ +
-===== Wiki Structure ===== +
-In order to have breadcrumbs we have 3 major sections: Items, Blocks and Energy. While Energy section contains information about blocks it servers purpose to not bloat Blocks section too much. +
-This approach introduce kind of burden to create page for a particular block or item twice. First page - with content with one of above mentioned major section. Second page is redirect required by plugins used to help with items and recipes+
  
-===== MC specific plugins ===== +See our **[[development:wiki:templates|Page Templates]]** for use when creating and editing pages. 
-Couple words about these specific plugins we use:+ 
 +==== Wiki Structure ==== 
 +In order to have breadcrumbs we have 3 major sections:\\ 
 +**Energy** - Any item or block that uses power. Including cables, generators, batteries, machines, and powered tools.\\ 
 +**Items** - Non-power related items. Including cells, dusts, ingots, parts, etc.\\ 
 +**Blocks** - Non-power related blocks. Including ores, machine frames/casings, storage/tank units, etc. 
 + 
 +Each item or block will require two pages:\\ 
 +1. A redirect page at its //mods:namespace:item_name// location (see below at #Minecraft_Items)\\ 
 +2. A content page in one of the three sections above 
 +==== Syntax ==== 
 +Here are some syntax examples for the two [P]lugins that provide extra Minecraft-specific features, and for handy DokuWiki tools: 
 + 
 +<tabs> 
 +  * [[#tab-items|[P] Minecraft Items]] 
 +  * [[#tab-recipes|[P] Minecraft Recipes]]  
 +  * [[#tab-manual_items| Manual Links]] 
 +  * [[#tab-redirects| Redirects]] 
 +  
 +<pane id="tab-items"> 
 +=== Minecraft Items Plugin ==== 
 +**Allows you to insert a fancy link to a block or item**\\
  
-1) Minecraft item plugin allows you to insert fancy link to block or item. 
 Syntax:   Syntax:  
 <code> <mcitem>namespace:item_name</mcitem> </code> <code> <mcitem>namespace:item_name</mcitem> </code>
-namespace is either "minecraftfor vanilla items or "techreborn" for TR items and in general stands from mod name.  +''namespace'' is either ''techreborn'' or ''minecraft'' for vanilla items\\ 
-\\ +''item_name'' is the registry name for an item
-item_name is registry name for an item. Same as in .json recipes, for example. Or in advanced tooltip withing MC. +
-\\ +
-Plugin will automatically generate link to a page like mods:techreborn:item_name. That page should have redirect to a page with real content.  +
-Redirect syntax for items is: +
-<code>~~REDIRECT>items:item_name~~</code> +
-Replace "items" with "blocks" or "energy" to redirect to a proper section.+
  
-2) Minecraft recipe plugin +Example: 
-Syntax:+<code> 
 +<mcitem>minecraft:iron_ore</mcitem> 
 +<mcitem>techreborn:copper_ore</mcitem> 
 +</code> 
 +Produces: 
 +<mcitem>minecraft:iron_ore</mcitem> 
 +<mcitem>techreborn:copper_ore</mcitem> 
 + 
 +<callout type="info" icon="true"> 
 +If this produces something that is grammatically incorrect //(maybe you need plural or want "Cell" to refer to the "Empty Cell" page, etc)// see the **Manual Links** tab for custom names. 
 +</callout> 
 + 
 +This will automatically generate a link to the page ''mods:namespace:item_name''.  
 +That page requires a redirect to the page with real content following wiki structure.\\ 
 + 
 +<callout type="warning" icon="true"> 
 +**There should be no content besides redirects under the ''mods:'' namespace.** For an example page, see **[[development:wiki:templates]]**. 
 +</callout> 
 +</pane> 
 + 
 +<pane id="tab-recipes"> 
 +=== Minecraft Recipe Plugin === 
 +Allows for pretty formatted recipes. 
 + 
 +<code> 
 +<recipe> 
 +size 3x3 
 +input air air air 
 +input air minecraft:coal air 
 +input air minecraft:stick air 
 +output minecraft:torch,
 +tool minecraft:crafting_table 
 +</recipe> 
 +</code> 
 + 
 +<recipe> 
 +size 3x3 
 +input air air air 
 +input air minecraft:coal air 
 +input air minecraft:stick air 
 +output minecraft:torch,
 +tool minecraft:crafting_table 
 +</recipe>\\  
 + 
 +== Attributes == 
 + 
 +^ Attribute ^ Default Value ^ Allowed Values ^ Description ^ 
 +| ''size''  | Optional; ''3x3'' | Any positive integers. | Size of the crafting grid in width by height. | 
 +| ''input''  | Optional; ''air'' | Images from the :mods namespace. | Fills in the crafting grid with items. Use ''input'' for each row of items on the crafting table you wish to define. | 
 +| ''output'' | Optional; ''air'' | Images from the :mods namespace. | Fills in the output section of the crafting grid with an icon. | 
 +| ''tool'' | Optional; ''minecraft:crafting_table'' | Images from the :mods namespace. | Replaces the icon of the Crafting Table with another block or tool. | 
 + 
 +<callout type="info"> 
 +=== Specifying Quantities === 
 + 
 +Both commands ''input'' and ''output'' take item stacks as arguments in the form: 
 +<code> 
 +wiki_page,amount 
 + 
 +minecraft:torch,
 +minecraft:cobblestone,
 +</code> 
 + 
 +''wiki_page'' is prefixed with :mods: and therefore resolves the detail page and when suffixed again with .png the image of a block. 
 + 
 +''amount'' defines the quantity of an item that is used in the recipe. If omitted, exactly one is assumed. Only amounts larger than one are indicated with numbers. 
 + 
 +Note that tool also takes an item stack as an argument, but it will ignore any amounts. 
 +</callout> 
 + 
 + 
 +=== Additional Examples === 
 + 
 +<code> 
 +<recipe> 
 +input air minecraft:stick air 
 +input minecraft:wood_planks minecraft:wood_planks minecraft:wood_planks 
 +input minecraft:wood_planks air air 
 +output techreborn:treetap 
 +</recipe> 
 +</code> 
 + 
 +<recipe> 
 +input air minecraft:stick air 
 +input minecraft:wood_planks minecraft:wood_planks minecraft:wood_planks 
 +input minecraft:wood_planks air air 
 +output techreborn:treetap 
 +</recipe> 
 + 
 +\\ 
 +Example furnace recipe (note: size and tool are optional):
 <code> <code>
 <recipe> <recipe>
Line 31: Line 131:
 </recipe> </recipe>
 </code> </code>
-where size and tool are optional+Produces: 
 +<recipe> 
 +size 1x1 
 +input minecraft:cobblestone 
 +output minecraft:stone 
 +tool minecraft:furnace 
 +</recipe> 
 +</pane>
  
 +<pane id="tab-manual_items">
 +=== Manual Links ===
 +Images and links can also be specified manually using this format:
 +<code>{{:mods:techreborn:compressor.png?nolink&24}}**[[mods:techreborn:compressor|Manual Naming]]** </code>\\
 +Which produces: {{:mods:techreborn:compressor.png?nolink&24}}**[[mods:techreborn:Compressor|Manual Naming]]**
  
 +For a plain in-line link to a page you could use: <code>[[mods:techreborn:compressor|a plain link]]</code>
 +Which would produce [[mods:techreborn:compressor|a plain link]]
 +
 +<callout type="info">
 +Use links with images wherever it makes sense. You can use an image for non-item pages too, like an Insulated Copper Cable image {{:mods:techreborn:insulated_copper_cable.png?nolink&24}} to go with a link to the **[[energy:cables]]** page.
 +</callout>
 +</pane>
 +
 +<pane id="tab-redirects">
 +=== Redirects ===
 +<callout icon="true" type="info">To edit a page that already has a redirect simply add ''&do=edit'' to the end of the URL (eg. https://wiki.techreborn.ovh/doku.php?id=mods:techreborn:galena_ore&do=edit)</callout>
 +Redirect syntax for items is:
 +<code>~~REDIRECT>namespace:item_name~~</code>
 +Where ''namespace'' is likely ''items'', ''blocks'' or ''energy''.\\
 +Namespaces can also be nested, like <code>~~REDIRECT>namespace:subnamespace:item_name~~</code>
 +**Contextual example:**\\
 +On the page ''mods:techreborn:grinder'' there should be the following redirect: <code>~~REDIRECT>energy:machines:grinder~~</code>
  
 +=== Vanilla Redirects ===
 +Also works for external links for vanilla items, for example:
 +<code>~~REDIRECT>http://minecraft.gamepedia.com/Iron_Ore~~</code>
 +</pane>
 +</tabs>
  • Last modified: 2020/01/24 21:42
  • by 127.0.0.1