Difference between revisions of "Template:Staff member"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Each person gets their own bio page. If no biography exists, no page linked. Easy solution to people not having biographies.)
Line 2: Line 2:
 
<li class="gallerybox" style="font-size:13px; line-height:14px; margin:10px; margin-bottom:20px;">
 
<li class="gallerybox" style="font-size:13px; line-height:14px; margin:10px; margin-bottom:20px;">
 
<div style="align:left; text-align:left;">
 
<div style="align:left; text-align:left;">
{{Image|file={{portrait|{{{name|Example name}}}}}|align=none|link=Biographies#{{{name|Example name}}}|padding=no|width={{#ifeq:{{{small|}}}|yes|200px|300px}}}}
+
{{Image|file={{portrait|{{{name|Example name}}}}}|align=none|link={{#ifexist:{{{name}}}|{{{name}}}| }}|padding=no|width={{#ifeq:{{{small|}}}|yes|200px|300px}}}}
<div style="width:{{#ifeq:{{{small|}}}|yes|200px|300px}}; font-weight:bold; font-size:110%;">[[Biographies#{{{name|Example name}}}|{{{name|Example name}}}]]</div>
+
<div style="width:{{#ifeq:{{{small|}}}|yes|200px|300px}}; font-weight:bold; font-size:110%;">{{#ifexist:{{{name}}}|[[{{{name}}}]]|{{{name}}}}}</div>
 
{{#if:{{{position|}}}|<div style="width:{{#ifeq:{{{small|}}}|yes|200px|300px}}; padding-top:6px; color:#666; font-size:100%; font-variant:small-caps;">{{{position}}}</div>}}
 
{{#if:{{{position|}}}|<div style="width:{{#ifeq:{{{small|}}}|yes|200px|300px}}; padding-top:6px; color:#666; font-size:100%; font-variant:small-caps;">{{{position}}}</div>}}
 
</div></li><noinclude></ul>
 
</div></li><noinclude></ul>

Revision as of 07:50, 11 March 2015

  • {{{name}}}