Template:CommentBox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:CommentBoxID|{{#if:{{#varexists:CommentBoxID}}|{{#expr:{{#var:CommentBoxID}}+1}}|1}}}}
{{#vardefine:CommentBoxID|{{#if:{{#varexists:CommentBoxID}}|{{#expr:{{#var:CommentBoxID}}+1}}|1}}}}
{| border=1 style="{{round|10}}; border:1px solid {{{bordercolor|#000}}}; background:{{{borderbackground|#5A7EB5}}};"
{| border=1 style="{{round|10}}; border:1px solid {{{bordercolor|#000}}}; background:{{{borderbackground|#5A7EB5}}};"
!class="{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column2" align=right style="{{round|10}}; background:{{{buttonbackground1|{{{buttonbackground|#F2F2F2}}}}}};"|{{{button1|{{{button}}}}}}
!class="{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column2" align=right title="{{{title1|{{{title|}}}}}}" style="{{round|10}}; background:{{{buttonbackground1|{{{buttonbackground|#F2F2F2}}}}}};"|[[File:{{{image1|{{{image|No Image.png}}}}}}|{{{size1|{{{size|50px}}}}}}|link=]]
!class="{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column2" align=right style="{{round|left|10}}; background:{{{buttonbackground2|{{{buttonbackground|#F2F2F2}}}}}}; display:none;"|{{{button2|{{{button}}}}}}
!class="{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column0 _toggler-{{#var:CommentBoxID}}Column1 _toggler-{{#var:CommentBoxID}}Column2" align=right title="{{{title2|{{{title|}}}}}}" style="{{round|left|10}}; background:{{{buttonbackground2|{{{buttonbackground|#F2F2F2}}}}}}; display:none; "|[[File:{{{image2|{{{image|No Image.png}}}}}}|{{{size2|{{{size|50px}}}}}}|link=]]
|class="{{#var:CommentBoxID}}Column2" style="{{round|right|10}}; background:{{{contentbackground|#FFFFFF}}}; display:none;"|{{{content}}}
|class="{{#var:CommentBoxID}}Column2" style="{{round|right|10}}; background:{{{contentbackground|#FFFFFF}}}; display:none;"|{{{content}}}
|}<noinclude>
|}<noinclude>
Line 15: Line 15:
|bordercolor   =  
|bordercolor   =  
|borderbackground  =  
|borderbackground  =  
|button   =  
|image   =  
|button1   =  
|image1     =  
|button2   =  
|image2     =
|size   =
|size1     =
|size2     =
|title   =
|title1     =
|title2     =  
|buttonbackground  =
|buttonbackground  =
|buttonbackground1 =
|buttonbackground1 =
Line 26: Line 32:
</pre></div>
</pre></div>


Here are descriptions of the parameters.
{{parameter|bordercolor|The color of the edges of the box's border.|Optional|#000}}
{{parameter|bordercolor|The color of the edges of the box's border.|Optional|#000}}
{{parameter|borderbackground|The center color of the border of the box.|Optional|#5A7EB5}}
{{parameter|borderbackground|The center color of the border of the box.|Optional|#5A7EB5}}
{{parameter|button|Text or image to use for the clickable button. If an image is used, the button will not function if the image doesn't have a blank target link parameter added.|Optional}}
{{parameter|image|Image to use for the clickable button.|Required}}
{{parameter|button1|Used to separately define the initial button.|Optional|value of ''button'' used if omitted}}  
{{parameter|image1|Used to separately define the initial button.|Optional|value of ''image'' used if omitted}}
{{parameter|button2|Used to separately define the second button.|Optional|value of ''button'' used if omitted}}
{{parameter|image2|Used to separately define the second button.|Optional|value of ''image'' used if omitted}}
{{parameter|size|Size of the image.|Optional|50px}}
{{parameter|size1|Size of the initial image.|Optional|value of ''size'' used if omitted}}
{{parameter|size2|Size of the second image.|Optional|value of ''size'' used if omitted}}
{{parameter|title|Tooltip text of the image.|Optional}}
{{parameter|title1|Tooltip text of the initial image.|Optional|value of ''title'' used if omitted}}  
{{parameter|title2|Tooltip text of the second image.|Optional|value of ''title'' used if omitted}}
{{parameter|buttonbackground|The color of the background behind the button.|Optional|#F2F2F2}}
{{parameter|buttonbackground|The color of the background behind the button.|Optional|#F2F2F2}}
{{parameter|buttonbackground1|The color of the background behind the initial button.|Optional|value of ''buttonbackground'' used if omitted}}
{{parameter|buttonbackground1|The color of the background behind the initial button.|Optional|value of ''buttonbackground'' used if omitted}}

Revision as of 21:41, October 4, 2012

No Image.png

Purpose

This template is the base for creating a comment box that, for example, can be used to contain certain character quotes about a page's subject.

Usage

To use this template, start with this code:

{{CommentBox
|bordercolor	   = 
|borderbackground  = 
|image		   = 
|image1	   	   = 
|image2	   	   = 
|size		   = 
|size1	   	   = 
|size2	   	   = 
|title		   = 
|title1	   	   = 
|title2	   	   = 
|buttonbackground  =
|buttonbackground1 =
|buttonbackground2 =
|content	   = 
|contentbackground =
}}
  • bordercolor — The color of the edges of the box's border. (Optional - #000)
  • borderbackground — The center color of the border of the box. (Optional - #5A7EB5)
  • image — Image to use for the clickable button. (Required )
  • image1 — Used to separately define the initial button. (Optional - value of image used if omitted)
  • image2 — Used to separately define the second button. (Optional - value of image used if omitted)
  • size — Size of the image. (Optional - 50px)
  • size1 — Size of the initial image. (Optional - value of size used if omitted)
  • size2 — Size of the second image. (Optional - value of size used if omitted)
  • title — Tooltip text of the image. (Optional )
  • title1 — Tooltip text of the initial image. (Optional - value of title used if omitted)
  • title2 — Tooltip text of the second image. (Optional - value of title used if omitted)
  • buttonbackground — The color of the background behind the button. (Optional - #F2F2F2)
  • buttonbackground1 — The color of the background behind the initial button. (Optional - value of buttonbackground used if omitted)
  • buttonbackground2 — The color of the background behind the second button. (Optional - value of buttonbackground used if omitted)
  • content — Caption to display under the image. Only displays for the thumb and caption types. (Optional )
  • contentbackground — The color of the background behind the content. (Optional - #FFFFFF)