Template:TvC-Colors: Difference between revisions

Template page
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<!-- Switch statement to dynamically change text color based on the first parameter -->
<!-- Switch statement to dynamically change text color based on the first parameter -->
{{#switch: {{{1}}}
{{#switch: {{{1}}}
   <!-- If the first parameter is "red", the text will be displayed in red -->
   | red = <span style="color:#FF6347;">{{{2}}}</span>  <!-- If the first parameter is "red", the text will be displayed in red -->
   | red = <span style="color:#FF6347;">{{{2}}}</span>
   | blue = <span style="color:#87CEEB;">{{{2}}}</span>   <!-- If the first parameter is "blue", the text will be displayed in blue -->
  <!-- If the first parameter is "blue", the text will be displayed in blue -->
   | yellow = <span style="color:#FFD700;">{{{2}}}</span>   <!-- If the first parameter is "yellow", the text will be displayed in yellow -->
   | blue = <span style="color:#87CEEB;">{{{2}}}</span>
   | green = <span style="color:#90EE90;">{{{2}}}</span>   <!-- If the first parameter is "green", the text will be displayed in green -->
  <!-- If the first parameter is "yellow", the text will be displayed in yellow -->
   | #default = <span>{{{2}}}</span>  <!-- Default case: if no matching color, display text without color change -->
   | yellow = <span style="color:#FFD700;">{{{2}}}</span>
  <!-- If the first parameter is "green", the text will be displayed in green -->
   | green = <span style="color:#90EE90;">{{{2}}}</span>   
  <!-- Default case: if no matching color, display text without color change -->
  | #default = <span>{{{2}}}</span>
}}
}}


<!-- Add the page to the Tatsunoko vs Capcom: Ultimate All Stars category -->
<!-- Add the page to the Tatsunoko vs Capcom: Ultimate All Stars category -->
[[Category: Tatsunoko vs Capcom: Ultimate All Stars]]
[[Category: Tatsunoko vs Capcom: Ultimate All Stars]]

Revision as of 13:33, 11 September 2024

{{{2}}}