Difference between revisions of "Template:Version/row"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "<includeonly><tr><td style="background-color:{{ #switch: {{{4|}}} |latest = #E5F9FF |gray = #D4D4D4 |#FFFFFF }}; text-align:center;">{{ #ifeq: {{{4|}}} | lates...")
 
m (make link work for forum link)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><tr><td style="background-color:{{
 
<includeonly><tr><td style="background-color:{{
   #switch: {{{4|}}}
+
   #switch: {{{type|}}}
     |latest = #E5F9FF
+
     | latest = #E5F9FF
     |gray = #D4D4D4
+
    | beta = #FFE8A8
     |#FFFFFF
+
     | gray = #D4D4D4
 +
     | #FFFFFF
 
}}; text-align:center;">{{
 
}}; text-align:center;">{{
   #ifeq: {{{4|}}} | latest
+
   #ifeq: {{{type|}}} | latest
 
     |'''Latest:'''<br />
 
     |'''Latest:'''<br />
}} ComputerCraft '''{{{1}}}''' for '''Minecraft {{{2}}}''' ([http://www.computercraft.info/{{{3}}}/computercraft-{{#replace: {{{1}}} | . | - }}/ download])</td></tr></includeonly><noinclude>
+
}} ComputerCraft '''{{{1}}}''' {{
 +
  #ifeq: {{{type|}}} | beta
 +
    | ''Beta''
 +
}} for '''Minecraft {{{2}}}''' ([http://www.computercraft.info/{{{link|{{{3}}}/computercraft-{{#replace: {{{1}}} | . | - }}}}}/ download])</td></tr></includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}

Revision as of 23:36, 9 December 2015

This template is used to create the rows on {{version}}

Parameters

  • {{{1}}}: Sets the version number
  • {{{2}}}: Sets the coorsponding Minecraft version
  • {{{3}}}: Release date, formatted in YYYY/MM/DD format, for example 2015/12/04. Not needed if {{{link}}} is set.
  • {{{type}}}: Row type. Set to gray for a gray row (alternating colors), latest for the blue row with the "latest" header, or beta for an orange row with the "beta" text.
  • {{{link}}}: Sets the link, using the value after www.computercraft.info/. Defaults to {{{3}}}/computercraft-{{{1}}} with the periods in {{{1}}} being replaced with dashes.