Minecraft Wiki
m (minor wordsmithing)
(Instead of transcluding the whole table through a template, use a header and footer, fixes include size limit)
Line 1: Line 1:
<includeonly>{| class="wikitable list-style-none"
+
<includeonly>{{#ifeq: {{{1|}}}|foot
 
|{{!}}}{{#vardefine: renewable-method | }}
! style="width: 10em;" | Resource
 
  +
|<!-- something about #ifeq adds an extra newline if this is missing --><nowiki/>{{{!}} class="wikitable list-style-none"
! style="width: {{#ifeq: {{{method|}}} | 0 | 40 | 15 }}em;" | {{#if: {{{not|}}} | Non-renewable products | Renewable products }}
 
 
! style="width: 10em;" {{!}} Resource
 
! style="width: {{#ifeq: {{{method|}}} | 0 | 40 | 15 }}em;" {{!}} {{#if: {{{not|}}} | Non-renewable products | Renewable products }}
 
{{#ifeq: {{{method|}}} | 0 | {{#vardefine: renewable-method | 0 }} | ! {{#if: {{{not|}}} | Reason | Renewable sources }} }}
 
{{#ifeq: {{{method|}}} | 0 | {{#vardefine: renewable-method | 0 }} | ! {{#if: {{{not|}}} | Reason | Renewable sources }} }}
 
{{!}}-
|-
 
  +
}}</includeonly><noinclude>
{{{1}}}
 
|}{{#vardefine: renewable-method | }}</includeonly><noinclude>
 
 
{{documentation|content=
 
{{documentation|content=
 
This template is used to create the table content on [[renewable resource]]
 
This template is used to create the table content on [[renewable resource]]

Revision as of 21:43, 1 May 2020

[edit | history | purge]Documentation

This template is used to create the table content on renewable resource

Usage

Rows are added to the first unnamed parameter using {{ :Renewable resource/row}}.

The parameter |method= can be set to "0" to remove the Renewable method header, used in the fishing section.

The parameter |not= can be set to change the table to listing non-renewable resources, either for use in the Pocket or Console Edition sections to list resources not renewable from the PC edition, or to list resources that are not renewable in a future update.