Template:TechWeb: Difference between revisions

6 bytes removed ,  20:24, 20 April 2020
m
Typo fix
(Fixed default-cases not working for empty parameters. Adjusted template to display better default cases for missing / empty parameters (cost/required/unlocks: Nothing - designs: None - techname: Unknown Technology))
m (Typo fix)
 
Line 3: Line 3:
{|width = "100%" cellspacing="0" cellpadding="2" width=560
{|width = "100%" cellspacing="0" cellpadding="2" width=560
|align=center width="120" style="background-color:#9f88d1"|'''{{#if: {{{techname|}}}|{{{techname}}}|Unknown Technology}}'''
|align=center width="120" style="background-color:#9f88d1"|'''{{#if: {{{techname|}}}|{{{techname}}}|Unknown Technology}}'''
|'''Research Cost: '''{{#if: {{{cost|}}}|{{{cost}}}|Nothing}}
|'''Research Cost: '''{{#if: {{{cost|}}}|{{{cost}}}|None}}
|}
|}
{|width = "100%" cellspacing="0" cellpadding="2" width=560
{|width = "100%" cellspacing="0" cellpadding="2" width=560
Line 38: Line 38:
!cost
!cost
|2500
|2500
|Research cost. Default: Nothing
|Research cost. Default: None
|-
|-
!req
!req
1,133

edits