Template:TalkTextTest2: Difference between revisions

m
Look at the usage section for all the new fields/fields made optional
m (oops. Sometimes I code it with nbsp;, sometimes with a space)
m (Look at the usage section for all the new fields/fields made optional)
Line 1: Line 1:
{| style="background:transparent"
{| style="background:transparent"
|valign=top|[[File:{{{image}}}|50px]]
{{#if:{{{image|}}}|{{!}}valign=top{{!}}[[File:{{{image}}}{{!}}60px]]|{{!}}width="60px"{{!}}}}
|<table width=100% border="0" cellpadding="0" cellspacing="0" style="background:transparent">
|<table width=100% border="0" cellpadding="0" cellspacing="0" style="background:transparent">
|-
|-
|COLSPAN=10 width=10 height=1|
|width=1 height=1|
|height=1 bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}}|
|width=1|
|COLSPAN=5 width=5|
|width=1|
|width=1|
|width=1|
|width=1|
|width=1|
|width=1|
|width=1|
|width=1|
|bgcolor={{{border|gray}}}|
|width=1|
|width=1|
|width=1|
|width=1|
|width=1|
|-
|-
|COLSPAN=8 width=8 height=1|
|colspan=8 height=1|
|colspan=2 bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}} width=1|
|colspan=2 bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}}|
|bgcolor={{{color}}}|
|colspan=2 bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}} width=1|
|colspan=2 bgcolor={{{border|gray}}}|
|COLSPAN=3 width=3|
|colspan=3|
|-
|-
|COLSPAN=7 width=7 height=1|
|colspan=7 height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} COLSPAN=5|
|bgcolor={{{color}}} colspan=5|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|COLSPAN=2 width=2|
|colspan=2|
|-
|-
|COLSPAN=6 width=6 height=2|
|colspan=6 height=2|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} colspan=7|
|bgcolor={{{color}}} colspan=7|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|width=1|
|
|-
|COLSPAN=5 width=5 height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|BGCOLOR={{{color}}} COLSPAN=4 width=4|
|BGCOLOR={{{color}}}|'''[[User:{{{name}}}|<font color={{{textcolor}}} face="{{{fonttype}}}">{{#if:{{{nick|}}}|{{{nick}}}|{{{name}}}}}]]{{#if:{{{sig|}}}|&nbsp;- {{{sig}}}|}}<noinclude> - {{{sig}}}</noinclude>:</font>'''<br>[[User talk:{{{name}}}|<font color={{{textcolor}}} size=1 face="{{{fonttype}}}">TALK</font>]] <font color={{{textcolor}}} size=1 face="{{{fonttype}}}">- {{{time}}}</font>
|BGCOLOR={{{color}}} COLSPAN=4 width=4|
|rowspan=12 width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|-
|-
|COLSPAN=4 width=4 height=1|
|colspan=5 height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} colspan=10|
|bgcolor={{{color}}} colspan=4|
|bgcolor={{{color}}}|{{{top-section|<b>[[User:{{{name}}}{{!}}<font color={{{namecolor|{{{textcolor}}}}}} {{{namefonttype|{{{fonttype}}}}}}>{{{nick|{{{name}}}}}}</font>]]<font color="{{{textcolor}}}" face="{{{fonttype}}}">{{#if:{{{sig|}}}|&nbsp;- {{{sig}}}|}}<noinclude> - {{{sig}}}</noinclude>:</font></b><br>[[User talk:{{{name}}}{{!}}<font color={{{textcolor}}} size=1 face="{{{fonttype}}}">TALK</font>]] <font color={{{textcolor}}} size=1 face="{{{fonttype}}}">- {{{time}}}</font>}}}
|bgcolor={{{color}}} colspan=4|
|rowspan=11 bgcolor={{{border|gray}}}|
|-
|-
|COLSPAN=3 width=3 height=1|
|colspan={{#if:{{{image|}}}|4|5}} height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} COLSPAN=11|
|bgcolor={{{color}}} colspan=10|
|-
|-
|COLSPAN=2 width=2 height=1|
|colspan={{#if:{{{image|}}}|3|5}} height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} COLSPAN=12|
|bgcolor={{{color}}} colspan=11|
|-
|-
|width=1 height=1|
|colspan={{#if:{{{image|}}}|2|5}} height=1|
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color}}} COLSPAN=13|
|bgcolor={{{color}}} colspan=12|
|-
|-
|width=1 BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}} height=1|
|colspan={{#if:{{{image|}}}|1|5}} height=1|
|BGCOLOR={{{color2}}} COLSPAN=9 width=9|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} BGCOLOR={{{line}}}|
|bgcolor={{{color}}} colspan=13|
|BGCOLOR={{{color2}}} COLSPAN=4 width=4|
|-
|-
|height=1|
{{#if:{{{image|}}}||{{!}}colspan=5{{!}}}}
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}} height=1|
|BGCOLOR={{{color2}}} COLSPAN=13|
|bgcolor={{{color2}}} colspan=9|
|bgcolor={{{line|{{{color2}}}}}}|
|bgcolor={{{color2}}} colspan=4|
|-
|-
|COLSPAN=2 height=1|
|colspan={{#if:{{{image|}}}|1|5}} height=1|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=12|
|bgcolor={{{color2}}} colspan=13|
|-
|-
|COLSPAN=3 height=1|
|colspan={{#if:{{{image|}}}|2|5}} height=1|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=11|
|bgcolor={{{color2}}} colspan=12|
|-
|-
|COLSPAN=4 height=1|
|colspan={{#if:{{{image|}}}|3|5}} height=1|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=10|
|bgcolor={{{color2}}} colspan=11|
|-
|-
|COLSPAN=4 height=1|
|colspan={{#if:{{{image|}}}|4|5}} height=2|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=10|
|bgcolor={{{color2}}} colspan=10|
|-
|-
|COLSPAN=5 height=1|
|colspan=5 height=1|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=4|
|bgcolor={{{color2}}} colspan=4|
|BGCOLOR={{{color2}}}|<font color={{{textcolor2}}} face="{{{fonttype}}}"> {{{text}}}</font>
|bgcolor={{{color2}}}|<font color={{{textcolor2}}} face="{{{fonttype}}}"> {{{text}}}</font>
|BGCOLOR={{{color2}}} COLSPAN=4|
|bgcolor={{{color2}}} colspan=4|
|-
|-
|COLSPAN=6 height=2|
|colspan=6 height=2|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=7|
|bgcolor={{{color3|{{{color2}}}}}} colspan=7|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|
|
|-
|-
|COLSPAN=7 height=1|
|colspan=7 height=1|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}} COLSPAN=5|
|bgcolor={{{color3|{{{color2}}}}}} colspan=5|
|BGCOLOR={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{border|gray}}}|
|COLSPAN=2|
|colspan=2|
|-
|-
|COLSPAN=8 height=1|
|colspan=8 height=1|
|colspan=2 bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}}|
|colspan=2 bgcolor={{{border|gray}}}|
|BGCOLOR={{{color2}}}|
|bgcolor={{{color3|{{{color2}}}}}}|
|colspan=2 bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}}|
|colspan=2 bgcolor={{{border|gray}}}|
|COLSPAN=3|
|colspan=3|
|-
|-
|COLSPAN=10 height=1|
|colspan=10 height=1|
|BGCOLOR={{{color2}}} bgcolor={{#if:{{{border|}}}|{{{border}}}|gray}}|
|bgcolor={{{color3|{{{color2}}}}}} bgcolor={{{border|gray}}}|
|COLSPAN=5|
|colspan=5|
</table>
</table>
|}<noinclude>
|}<noinclude>
Line 106: Line 116:
<pre>
<pre>
{{TalkTextTest2
{{TalkTextTest2
|image=
|image= (This line is optional)
|color=
|color=
|color2=
|color2=
|color3= (This line is optional. If not included, the color2 field will be used)
|top-section=(This line is optional*)
|namecolor= (This line is optional. If not included, the textcolor field will be used)
|namefonttype= (This line is optional. If not included, the fonttype field will be used)
|textcolor=
|textcolor=
|textcolor2=
|textcolor2=
|line=
|line= (This line is optional. If not included, there will be no line)
|border= (This line is optional. If not included, the border will be gray.)
|border= (This line is optional. If not included, the border will be gray)
|fonttype=
|fonttype=
|name=
|name=
Line 121: Line 135:
}}
}}
</pre>
</pre>
And include it in pages with the command
:<nowiki>*</nowiki><small>This fields allows for more customization. It allows the user to control everything in the top part of the template. If this field is used, the name, nick, namecolor, namefonttype, textcolor, sig and time fields do not have to be used. However, in this field the user must include "{{{time}}}".</small>
And include it in pages with the command:
<pre>
<pre>
{{<nowiki><name of template></nowiki>
{{<nowiki><name of template></nowiki>
|time=
|time=<nowiki>~~~~~</nowiki>
|text=
|text=
}}
}}
Anonymous user