Template:HistorySub: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->{{#vardefine:page|&#58;{{FULLPAGENAME}}}}cat:{{#var:page}}|<!--FALSE-->{{#vardefine:page|{{FULLPAGENAME}}}}page:{{#var:page}}}}
-->{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}
{| style="border: 1px solid rgb(183,143,81); border-width: 1px 4px; border-radius: 0.33em; background: rgba(80,60,30,0.4); padding: 0px 4px;"
{| style="border: 1px solid rgb(183,143,81); border-width: 1px 4px; border-radius: 0.33em; background: rgba(80,60,30,0.4); padding: 0px 4px;"
|-
|-
| History:  
| History:  
| class="plainlinks" | {{#if:{{{1|}}}|<!--TRUE-->[[{{#var:page}}/{{{1}}}|{{{1}}}]]}}<!--
| class="plainlinks" | {{#if:{{{1|}}}|<!--TRUE-->[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]}}<!--
-->{{#if:{{{2|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{2}}}|{{{2}}}]]}}<!--
-->{{#if:{{{2|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{2}}}|{{{2}}}]]}}<!--
-->{{#if:{{{3|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{3}}}|{{{3}}}]]}}<!--
-->{{#if:{{{3|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{3}}}|{{{3}}}]]}}<!--
-->{{#if:{{{4|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{4}}}|{{{4}}}]]}}<!--
-->{{#if:{{{4|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{4}}}|{{{4}}}]]}}<!--
-->{{#if:{{{5|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{5}}}|{{{5}}}]]}}<!--
-->{{#if:{{{5|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{5}}}|{{{5}}}]]}}<!--
-->{{#if:{{{6|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{6}}}|{{{6}}}]]}}<!--
-->{{#if:{{{6|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{6}}}|{{{6}}}]]}}<!--
-->{{#if:{{{7|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{7}}}|{{{7}}}]]}}<!--
-->{{#if:{{{7|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{7}}}|{{{7}}}]]}}<!--
-->{{#if:{{{8|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{8}}}|{{{8}}}]]}}<!--
-->{{#if:{{{8|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{8}}}|{{{8}}}]]}}<!--
-->{{#if:{{{9|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#var:page}}/{{{9}}}|{{{9}}}]]}}<!--
-->{{#if:{{{9|}}}|<!--TRUE-->&nbsp;&rarr;&nbsp;[[{{#ifeq:{{NAMESPACE}}|Category|<!--TRUE-->&#58;}}{{FULLPAGENAME}}/{{{9}}}|{{{9}}}]]}}<!--
-->{{#if:{{{10|}}}|<!--TRUE-->TOO MANY VERSIONS!}}
-->{{#if:{{{10|}}}|<!--TRUE-->TOO MANY VERSIONS!}}
|}</includeonly><noinclude><!--
|}</includeonly><noinclude><!--

Revision as of 14:12, 5 January 2018

Usage

The History template is meant to be used at the top of articles just below the Version template to link to archive sub-pages.

{{HistorySub|<subpagename>}}
  • The code above can be pasted into your page and edited.
  • You can add up to 9 sub-pages. The 10th sub-page will show an error.
  • If listing more than one sub-page, order them from newest to oldest.