Difference between revisions of "Template:NewClassNavigator"

From USNA Virtual Memorial Hall
Line 2: Line 2:
 
== Usage ==
 
== Usage ==
 
Template is auto-generated by a script drawing from an offline listing of Memorial Hall honorees. Please don't make any changes to this template or the information feeding it without letting Pat McConnell know; otherwise it will be unknowingly overwritten by any mass update.
 
Template is auto-generated by a script drawing from an offline listing of Memorial Hall honorees. Please don't make any changes to this template or the information feeding it without letting Pat McConnell know; otherwise it will be unknowingly overwritten by any mass update.
 +
<div class='clearfix'></div>
 +
<div class="col-lg-6 col-lg-offset-3">
 +
<div class="panel panel-info">
 +
<div class="panel-heading">
 +
<h3 class="panel-title">Class of {{{ClassYear}}}</h3>
 +
</div>
 +
<div class="panel-body"><p>{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.</p>
 +
<ul class="pager">
 +
{{#if: {{{PreviousPersonLink|}}} |<li class="previous">[[{{{PreviousPersonLink}}}|&larr; {{{PreviousPersonName}}}]]</li>| }}
 +
{{#if: {{{NextPersonLink|}}} |<li class="next">[[{{{NextPersonLink}}}|{{{NextPersonName}}} &rarr;]] </li> | }}
 +
</ul>
 +
</div>
 +
</div>
 +
</div>
 +
<div class='clearfix'></div>
 
</noinclude>
 
</noinclude>
 
<div class='clearfix'></div>
 
<div class='clearfix'></div>
Line 9: Line 24:
 
<h3 class="panel-title">Class of {{{ClassYear}}}</h3>
 
<h3 class="panel-title">Class of {{{ClassYear}}}</h3>
 
</div>
 
</div>
<div class="panel-body"><p>{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.</p>
+
{{#ifeq: {{{HonoreesInClass}}} | 1 | <div class="panel-body"><p>{{{Name}}} is the only member of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.</p> | <div class="panel-body"><p>{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.</p> }}
 
<ul class="pager">
 
<ul class="pager">
 
{{#if: {{{PreviousPersonLink|}}} |<li class="previous">[[{{{PreviousPersonLink}}}|&larr; {{{PreviousPersonName}}}]]</li>| }}
 
{{#if: {{{PreviousPersonLink|}}} |<li class="previous">[[{{{PreviousPersonLink}}}|&larr; {{{PreviousPersonName}}}]]</li>| }}

Revision as of 19:40, 21 June 2018

Usage

Template is auto-generated by a script drawing from an offline listing of Memorial Hall honorees. Please don't make any changes to this template or the information feeding it without letting Pat McConnell know; otherwise it will be unknowingly overwritten by any mass update.

Class of {{{ClassYear}}}

{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.

Class of {{{ClassYear}}}

{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.