Template:Diagonal split header/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Updated for the style parameter)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<code><nowiki>{{Diagonal split header|Bottom|</nowiki>Top|color-1=#AAA|color-2=Blue}}</code>
<code><nowiki>{{Diagonal split header|Bottom|</nowiki>Top|color-1=#AAA|color-2=Blue|style=color:green;}}</code>


* First parameter: The content to put in the bottom left of the diagonal cell. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* First parameter: The content to put in the bottom left of the diagonal cell. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* bottom right parameter: The content to put in the bottom left of the diagonal cell. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* bottom right parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 1 to help ease of writing wikitext. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* Second parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 1 to help ease of writing wikitext. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* Second parameter: The content to put in the bottom left of the diagonal cell. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* top right parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 1 to help ease of writing wikitext. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* top right parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 2 to help ease of writing wikitext. (Optional, default: <code>&nbsp;</code> i.e. & nbsp;)
* color 1 parameter: A HTML/CSS color code. (Optional, default: #424242)
* color 1 parameter: A HTML/CSS color code. (Optional, default: #424242)
* color 2 parameter: A HTML/CSS color code. (Optional, default: #424242)
* color 2 parameter: A HTML/CSS color code. (Optional, default: #424242)
* style parameter: content to be added to css styling in addition to the diagonal cell. (Optional)


Some usage examples:
Some usage examples:
Line 18: Line 19:
{| style="margin-left: 20px;"
{| style="margin-left: 20px;"
|-
|-
!{{Diagonal split header|bottom-left=Hello|color-2=#EEE3}}
!{{Diagonal split header|bottom-left=Hello|color-2=#EEE3|style=color:green;}}
|}
|}

Latest revision as of 07:33, 8 December 2024

{{Diagonal split header|Bottom|Top|color-1=#AAA|color-2=Blue|style=color:green;}}

  • First parameter: The content to put in the bottom left of the diagonal cell. (Optional, default:   i.e. & nbsp;)
  • bottom right parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 1 to help ease of writing wikitext. (Optional, default:   i.e. & nbsp;)
  • Second parameter: The content to put in the bottom left of the diagonal cell. (Optional, default:   i.e. & nbsp;)
  • top right parameter: The content to put in the bottom left of the diagonal cell. Serves as an alternative alias for parameter 2 to help ease of writing wikitext. (Optional, default:   i.e. & nbsp;)
  • color 1 parameter: A HTML/CSS color code. (Optional, default: #424242)
  • color 2 parameter: A HTML/CSS color code. (Optional, default: #424242)
  • style parameter: content to be added to css styling in addition to the diagonal cell. (Optional)

Some usage examples:

  • {{Diagonal split header|Input|Output|color-1=ff00ff|color-2=blue}} →
Output
Input
  • {{Diagonal split header|bottom-left=Hello|color-2=#EEE3}} →
 
Hello