User:Boblers/DescriptionTable/header: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(trying out a template idea)
 
(remove extra line break)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="roundtable" style="margin:auto; background: #{{{bgcolor|{{dark color dark}}}}}; border: 3px solid #{{{bordercolor|{{dark color light}}}}}"
<includeonly>{| class="roundtable" style="margin:auto; background: #{{{bgcolor|{{dark color dark}}}}}; border: 3px solid #{{{bordercolor|{{dark color light}}}}}"
|-
|-
! style="background: #{{{bgcolor|{{ghost color light}}}}}; {{roundytl|10px}}" width=150px | {{color|{{{headertextcolor|000000}}}|Pokémon}}
! style="background: #{{{headerbgcolor|{{ghost color light}}}}}; {{roundytl|10px}}" width=150px | {{color|{{{textcolor|000000}}}|{{{column1name|Pokémon}}}}}
! style="background: #{{{bgcolor|{{ghost color light}}}}}; {{roundytr|10px}}" width=750px | {{color|{{{headertextcolor|000000}}}|Description}}
! style="background: #{{{headerbgcolor|{{ghost color light}}}}}; {{roundytr|10px}}" width=750px | {{color|{{{textcolor|000000}}}|Description}}</includeonly><noinclude>
</includeonly><noinclude>


==Template fields==
==Template fields==
Line 10: Line 9:
* '''headerbgcolor''' - Takes a hex code for the background color of the header cells. Defaults to {{template|ghost color light}}.
* '''headerbgcolor''' - Takes a hex code for the background color of the header cells. Defaults to {{template|ghost color light}}.
* '''textcolor''' - Takes a hex code for the color of the text in the header. Defaults to <code>000000</code>.
* '''textcolor''' - Takes a hex code for the color of the text in the header. Defaults to <code>000000</code>.
* '''column1name''' - Optionally specify a name for the header of column 1. Defaults to <code>Pokémon</code>.


==Examples==
==Examples==
===Default===
<pre>
{{User:Boblers/DescriptionTable/header}}
{{User:Boblers/DescriptionTable/header}}
|}
</pre>
{{User:Boblers/DescriptionTable/header}}
|}
===Custom colors and column name===
<pre>
{{User:Boblers/DescriptionTable/header
|bgcolor={{Locationcolor/dark|Volcano}}
|bordercolor={{Locationcolor/med|Volcano}}
|headerbgcolor={{Locationcolor/light|Volcano}}
|textcolor=FFBC00
|column1name=Characters
}}
|}
</pre>
{{User:Boblers/DescriptionTable/header
|bgcolor={{Locationcolor/dark|Volcano}}
|bordercolor={{Locationcolor/med|Volcano}}
|headerbgcolor={{Locationcolor/light|Volcano}}
|textcolor=FFBC00
|column1name=Characters
}}
|}
|}
</noinclude>
</noinclude>

Latest revision as of 15:06, 21 July 2024


Template fields

  • bgcolor - Takes a hex code for the background color of the table. Defaults to {{dark color dark}}.
  • bordercolor - Takes a hex code for the border color of the table. Defaults to {{dark color light}}.
  • headerbgcolor - Takes a hex code for the background color of the header cells. Defaults to {{ghost color light}}.
  • textcolor - Takes a hex code for the color of the text in the header. Defaults to 000000.
  • column1name - Optionally specify a name for the header of column 1. Defaults to Pokémon.

Examples

Default

{{User:Boblers/DescriptionTable/header}}
|}
Pokémon Description

Custom colors and column name

{{User:Boblers/DescriptionTable/header
|bgcolor={{Locationcolor/dark|Volcano}}
|bordercolor={{Locationcolor/med|Volcano}}
|headerbgcolor={{Locationcolor/light|Volcano}}
|textcolor=FFBC00
|column1name=Characters
}}
|}
Characters Description