Template:Diagonal split header: Difference between revisions
Jump to navigation
Jump to search
List of all templates
(Split table cell following Wikipedia's table examples.) |
(Adding optional parameter to add CSS inline styling.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>style="background:linear-gradient(to top right,{{{color-1|#424242}}} 49%,#EEEA 50%,{{{color-2|#424242}}} 51%)"|<div style="margin-left:2em;text-align:right">{{{2|top-right}}}</div><div style="margin-right:2.5em;text-align:left">{{{1|bottom-left}}}</div></includeonly><noinclude>{{doc}}</noinclude> | <includeonly>style="background:linear-gradient(to top right,{{{color-1|#424242}}} 49%,#EEEA 50%,{{{color-2|#424242}}} 51%); {{{style|}}}"|<div style="margin-left:2em;text-align:right">{{{2|{{{top-right| }}}}}}</div><div style="margin-right:2.5em;text-align:left">{{{1|{{{bottom-left| }}}}}}</div></includeonly><noinclude>{{doc}}</noinclude> |
Latest revision as of 07:32, 8 December 2024
[View] [Edit] [Page history]
Documentation{{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:
- 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:
- Second parameter: The content to put in the bottom left of the diagonal cell. (Optional, default:
- 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:
- 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
|
---|