Template:AM/Editor View history

m (corrected comment to support up to five badges)
(Add support for two new parameters |gho=display name|pic=AVATAR LINK to display avatar and GHO display name below username if supplied)
Line 12: Line 12:
-->}}}}<!-- close iferror and if
-->}}}}<!-- close iferror and if
-->&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 -->
|<div style="width: 2em; height: 2em; border-radius: 20px; <!--
-->background: {{#switch:{{padleft:|1|{{{gho}}}}}
|a|i|q|y|6 = #f16364
|b|j|r|z|7 = #f58559
|c|k|s|0|8 = #f9a43e
|d|l|t|1|9 = #e4c62e
|e|m|u|2|0 = #67bf74
|f|n|v|#default|3 = #59a2be
|g|o|w|4 = #2093cd
|h|p|x|5 = #ad62a7}};<!-- choose color based on first character --> background-color: blue; color: white; zoom: 1"><!--
--><div style="padding: 0.3em 0.7em; ">{{padleft:|1|{{{gho}}}}}</div></div>}}<!-- If no pic, generate color tile with initial --> &nbsp;{{color|{{{gho}}}|DimGray}} }}<!-- 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 19:54, 17 September 2015

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