Difference between revisions of "Template:History"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{ #ifeq: {{ #var:history-head}} | 1 || <table class="wikitable" data-description="History"> {{ #vardefine:history-head|1}} }}{{#ifeq: {{{1|}}}|foot |</table> |...")
 
Line 1: Line 1:
<includeonly>{{
+
<includeonly>{{#switch: {{{1}}}
#ifeq: {{ #var:history-head}} | 1
+
| head = <table class="wikitable" data-description="History">
  || <table class="wikitable" data-description="History"> {{ #vardefine:history-head|1}}
+
| foot = </table>
}}{{#ifeq: {{{1|}}}|foot
+
| #default = <tr><th>{{{1}}}</th><td>{{{2}}}</td></tr>
|</table>
+
|<tr><th>{{{1}}}</th><td>{{{2}}}</td></tr>
+
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 +
{{History|head}}
 
{{History|1.1|test}}
 
{{History|1.1|test}}
 
{{History|1.2|test}}
 
{{History|1.2|test}}
 
{{History|foot}}
 
{{History|foot}}
 
</noinclude>
 
</noinclude>

Revision as of 05:10, 2 August 2020

1.1test
1.2test