Template:CommentBox: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
No edit summary
mNo 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 title="{{{title1|{{{title|}}}}}}" style="{{round|10}}; background:{{{buttonbackground1|{{{buttonbackground|#F2F2F2}}}}}};"|[[File:{{{image1|{{{image|No Image.png}}}}}}|{{{size1|{{{size|50px}}}}}}|link=]]
!class="Comm{{#var:CommentBoxID}}Column0 _toggler-Comm{{#var:CommentBoxID}}Column0 _toggler-Comm{{#var:CommentBoxID}}Column1 _toggler-Comm{{#var:CommentBoxID}}Column2" align=right title="{{{title1|{{{title|}}}}}}" style="{{round|10}}; background:{{{buttonbackground1|{{{buttonbackground|#F2F2F2}}}}}};"|[[File:{{{image1|{{{image|No Image.png}}}}}}|{{{size1|{{{size|40px}}}}}}|link=]]
!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="Comm{{#var:CommentBoxID}}Column1 _toggler-Comm{{#var:CommentBoxID}}Column0 _toggler-Comm{{#var:CommentBoxID}}Column1 _toggler-Comm{{#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|40px}}}}}}|link=]]
|class="{{#var:CommentBoxID}}Column2" style="{{round|right|10}}; background:{{{contentbackground|#FFFFFF}}}; display:none;"|{{{content}}}
|class="Comm{{#var:CommentBoxID}}Column2" style="{{round|right|10}}; background:{{{contentbackground|#FFFFFF}}}; display:none;"|{{{content}}}
|}<noinclude>
|}<noinclude>


Line 37: Line 37:
{{parameter|image1|Used to separately define the initial button.|Optional|value of ''image'' used if omitted}}  
{{parameter|image1|Used to separately define the initial button.|Optional|value of ''image'' used if omitted}}  
{{parameter|image2|Used to separately define the second button.|Optional|value of ''image'' 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|size|Size of the image.|Optional|40px}}
{{parameter|size1|Size of the initial image.|Optional|value of ''size'' used if omitted}}  
{{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|size2|Size of the second image.|Optional|value of ''size'' used if omitted}}