Difference between revisions of "Template:Kirby Infobox"
(Added documentation, fixed some things) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Documentation | + | <noinclude>{{Documentation|content= |
− | |content= | ||
== About the template == | == About the template == | ||
This template is the basic template for information related to the [[Kirby series]] and other Kirby related articles. | This template is the basic template for information related to the [[Kirby series]] and other Kirby related articles. | ||
Line 46: | Line 45: | ||
|row5 = Row 5 e | |row5 = Row 5 e | ||
|text5 = E | |text5 = E | ||
+ | |row6 = Row 6 f | ||
+ | |text6 = F | ||
}} | }} | ||
<pre style="display: inline-block;"> | <pre style="display: inline-block;"> | ||
Line 67: | Line 68: | ||
|row5 = Row 5 e | |row5 = Row 5 e | ||
|text5 = E | |text5 = E | ||
+ | |row6 = Row 6 f | ||
+ | |text6 = F | ||
}} | }} | ||
</pre> | </pre> | ||
}} | }} | ||
− | </noinclude> | + | </noinclude><includeonly> |
− | <includeonly> | ||
{|style="border-top:solid 2px {{{border-color|#f25c86}}}; border-left:solid 2px {{{border-color|#f25c86}}}; border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; border-radius:5px; border-spacing:0; width:300px; margin:0 0 1em 1em; padding:0; clear: right; float: right;" | {|style="border-top:solid 2px {{{border-color|#f25c86}}}; border-left:solid 2px {{{border-color|#f25c86}}}; border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; border-radius:5px; border-spacing:0; width:300px; margin:0 0 1em 1em; padding:0; clear: right; float: right;" | ||
{{#if:{{{title|}}}|{{!}}colspan=2 style="background:{{{title-color|}}}; border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}};"{{!}}{{{title}}}|}} | {{#if:{{{title|}}}|{{!}}colspan=2 style="background:{{{title-color|}}}; border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}};"{{!}}{{{title}}}|}} | ||
Line 91: | Line 93: | ||
{{#if:{{{row5|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row5}}} | {{#if:{{{row5|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row5}}} | ||
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text5}}}|}} | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text5}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row6|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row6}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text6}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row7|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row7}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text7}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row8|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row8}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text8}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row9|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row9}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text9}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row10|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row10}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text10}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row11|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row11}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text11}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row12|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row12}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text12}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row13|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row13}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text13}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row14|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row14}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text14}}}|}} | ||
+ | |- | ||
+ | {{#if:{{{row15|}}}|{{!}}style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; text-align:center; font-weight:bold; color:{{{title-font-color|black}}}; background:{{{title-color|}}}; width:{{{row-width|auto}}}"{{!}}{{{row15}}} | ||
+ | {{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text15}}}|}} | ||
|} | |} | ||
</includeonly> | </includeonly> |
Latest revision as of 16:43, 27 May 2023
Template Documentation [Edit]
This is an in-line documentation.
About the template
This template is the basic template for information related to the Kirby series and other Kirby related articles.
Completed templates
Usage
{{Kirby Infobox |title = Title header |title-color = The color of the title header (default is #FFC0C8) |column-color = The color of the left columns. |border-color = The color of the template's border (default is #f25c86) |title-font-color = The color of the text in the title header (default is black) |column-font-color = The color of the text in the left columns (default is black) |image = The image file |imgsize = The width/height of the image (must be no bigger than 300px. Example: 100px) |caption = A short description of the image. |row1 = The title of the first column |text1 = The text that corresponds to the content of the first column |row2 = The title of the second column |text2 = The text that corresponds to the content of the second column }}
Example and preview
This is a title | |
Caption | |
Row 1 a | A |
Row 2 b | B |
Row 3 c | C |
Row 4 d | D |
Row 5 e | E |
Row 6 f | F |
{{Kirby Infobox |title = This is a title |image = 暗黑魅塔.png |caption = Caption |title-color = #d0d0ff |border-color = #8080ff |title-font-color = white |column-font-color = #8080ff |row-width = 100px |row1 = Row 1 a |text1 = A |row2 = Row 2 b |text2 = B |row3 = Row 3 c |text3 = C |row4 = Row 4 d |text4 = D |row5 = Row 5 e |text5 = E |row6 = Row 6 f |text6 = F }}