Template:AM/Editor View history

m (attempt bug fix causing line break after color tile)
(fix color selection to also work with capital letters, and default color. fix alignment of gho name)
Line 13: Line 13:
-->&nbsp;{{small|[{{PM|{{{1|UserName}}}|PM}}]}}<!-- build PM link with default
-->&nbsp;{{small|[{{PM|{{{1|UserName}}}|PM}}]}}<!-- build PM link with default
-->{{#if:{{{gho|}}}|<!-- If GHO name is given add a new line for avatar and name --><br>{{#if:{{{pic|}}}|[[{{{pic}}}|30px]]<!-- If a pic link is provided use that at 30px -->
-->{{#if:{{{gho|}}}|<!-- If GHO name is given add a new line for avatar and name --><br>{{#if:{{{pic|}}}|[[{{{pic}}}|30px]]<!-- If a pic link is provided use that at 30px -->
|<div style="width: 2em; height: 2em; border-radius: 20px; <!--
|<div style="float:left; width: 2em; height: 2em; border-radius: 20px; <!--
-->background: {{#switch:{{padleft:|1|{{{gho}}}}}
-->background: {{#switch:{{padleft:|1|{{{gho|John D}}}}}
|a|i|q|y|6 = #f16364
|a|A|i|I|q|Q|y|Y|6 = #f16364
|b|j|r|z|7 = #f58559
|b|B|j|J|r|R|z|Z|7 = #f58559
|c|k|s|0|8 = #f9a43e
|c|C|k|K|s|S|0|8 = #f9a43e
|d|l|t|1|9 = #e4c62e
|d|D|l|L|t|T|1|9 = #e4c62e
|e|m|u|2|0 = #67bf74
|e|E|m|M|u|U|2|0 = #67bf74
|f|n|v|#default|3 = #59a2be
|f|F|n|N|v|V|3 = #59a2be
|g|o|w|4 = #2093cd
|g|G|o|O|w|W|4 = #2093cd
|h|p|x|5 = #ad62a7}};<!-- choose color based on first character --> background-color: blue; color: white; zoom: 1"><!--
|h|H|p|P|x|X|5 = #ad62a7
--><div style="padding: 0.3em 0.7em; ">{{padleft:|1|{{{gho}}}}}}}<!-- If no pic, generate color tile with initial --> &nbsp;{{color|{{{gho}}}|DimGray}}</div></div>}}<!-- add GHO avatar and name if supplied
|#59a2be}};<!-- choose color based on first character --> color: white; zoom: 1"><!--
--><div style="padding: 0.3em 0.7em; ">{{padleft:|1|{{{gho|John D}}}}}<!-- end if pic -->}}<!-- If no pic, generate color tile with initial --></div></div><div style="padding: 0.3em; color: DimGray;">&nbsp;&nbsp;{{{gho|John D}}}</div><!-- end if gho -->}}<!-- add GHO avatar and name if supplied
-->|| {{{3|}}} <!-- Area covered
-->|| {{{3|}}} <!-- Area covered
-->|| {{AM/Badge|{{{badge1|}}}}}{{AM/Badge|{{{badge2}}}}}{{AM/Badge|{{{badge3}}}}}{{AM/Badge|{{{badge4}}}}}{{AM/Badge|{{{badge5}}}}}<!-- display up to five badges
-->|| {{AM/Badge|{{{badge1|}}}}}{{AM/Badge|{{{badge2}}}}}{{AM/Badge|{{{badge3}}}}}{{AM/Badge|{{{badge4}}}}}{{AM/Badge|{{{badge5}}}}}<!-- display up to five badges

Revision as of 06:00, 18 September 2015

Documentation icon Template documentation[create]
Please add categories to the /doc subpage.
Subpages of this template.