Difference between revisions of "Template:Kirby Infobox"

From Moegirlpedia
Jump to: navigation, search
(Created page with "{|style="border-top:solid 2px {{{border-color|#f25c86}}}; border-left:solid 2px {{{border-color|#f25c86}}}; border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:so...")
 
(Added documentation, fixed some things)
Line 1: Line 1:
 +
<noinclude>{{Documentation
 +
|content=
 +
== About the template ==
 +
This template is the basic template for information related to the [[Kirby series]] and other Kirby related articles.
 +
 +
== Completed templates ==
 +
* [[Template:Kirby Infobox/character]]
 +
 +
== Usage ==
 +
<pre>
 +
{{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
 +
}}
 +
</pre>
 +
 +
== Example and preview ==
 +
{{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
 +
}}
 +
<pre style="display: inline-block;">
 +
{{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
 +
}}
 +
</pre>
 +
}}
 +
</noinclude>
 +
<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 4: Line 77:
 
{{#if:{{{image|}}}|{{!}}colspan=2 align="center" style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; background:#F3F3F3; font-size:{{{font-size|80%}}}{{!}}[[File:{{{image}}}|{{#if:{{{imgsize|}}}|{{{imgsize}}}|280px}}]]{{#if:{{{caption|}}}|<br />{{{caption|}}}|}}|}}
 
{{#if:{{{image|}}}|{{!}}colspan=2 align="center" style="border-right:solid 1px {{{border-color|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; background:#F3F3F3; font-size:{{{font-size|80%}}}{{!}}[[File:{{{image}}}|{{#if:{{{imgsize|}}}|{{{imgsize}}}|280px}}]]{{#if:{{{caption|}}}|<br />{{{caption|}}}|}}|}}
 
|-
 
|-
{{#if:{{{title1|}}}|{{!}}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:{{{title-width|auto}}}"{{!}}{{{row1}}}
+
{{#if:{{{row1|}}}|{{!}}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}}}"{{!}}{{{row1}}}
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{text-color|black}}}; background:{{{bg-color|}}};"{{!}}{{{text1}}}|}}
+
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text1}}}|}}
 
|-
 
|-
{{#if:{{{title2|}}}|{{!}}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:{{{title-width|auto}}}"{{!}}{{{row1}}}
+
{{#if:{{{row2|}}}|{{!}}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}}}"{{!}}{{{row2}}}
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{text-color|black}}}; background:{{{bg-color|}}};"{{!}}{{{text2}}}|}}
+
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text2}}}|}}
 
|-
 
|-
{{#if:{{{title3|}}}|{{!}}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:{{{title-width|auto}}}"{{!}}{{{row2}}}
+
{{#if:{{{row3|}}}|{{!}}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}}}"{{!}}{{{row3}}}
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{text-color|black}}}; background:{{{bg-color|}}};"{{!}}{{{text3}}}|}}
+
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text3}}}|}}
 
|-
 
|-
{{#if:{{{title4|}}}|{{!}}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:{{{title-width|auto}}}"{{!}}{{{row3}}}
+
{{#if:{{{row4|}}}|{{!}}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}}}"{{!}}{{{row4}}}
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{text-color|black}}}; background:{{{bg-color|}}};"{{!}}{{{text4}}}|}}
+
{{!}}style="border-right:solid 1px {{{border|#f25c86}}}; border-bottom:solid 1px {{{border-color|#f25c86}}}; color:{{{column-font-color|black}}}; background:{{{column-color|}}};"{{!}}{{{text4}}}|}}
 
|-
 
|-
{{#if:{{{title5|}}}|{{!}}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:{{{title-width|auto}}}"{{!}}{{{row1}}}
+
{{#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:{{{text-color|black}}}; background:{{{bg-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}}}|}}
 
|}
 
|}
<noinclude>{{Documentation}}</noinclude>
+
</includeonly>

Revision as of 16:47, 22 May 2023

Template-info.svg Template Documentation  [Edit]

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
暗黑魅塔.png
Caption
Row 1 a A
Row 2 b B
Row 3 c C
Row 4 d D
Row 5 e E
{{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
}}