Difference between revisions of "Template:NewClassNavigator"

From USNA Virtual Memorial Hall
Line 8: Line 8:
 
</noinclude>
 
</noinclude>
 
<div class='clearfix'></div>
 
<div class='clearfix'></div>
<div class="panel panel-info">
+
<div class="col-sm-6 col-sm-offset-3">
  <div class="panel-heading">
+
<div class="panel panel-info">
    <h3 class="panel-title">Class of {{{ClassYear}}}</h3>
+
<div class="panel-heading">
  </div>
+
<h3 class="panel-title">Class of {{{ClassYear}}}</h3>
  <div class="panel-body">{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.
+
</div>
<ul class="pager">
+
<div class="panel-body">{{{Name}}} is one of {{{HonoreesInClass}}} members of the [[:Category:{{{ClassYear}}}|Class of {{{ClassYear}}}]] in Memorial Hall.
{{#if: {{{PreviousPersonName|}}} | <li class="previous">[[{{{PreviousPersonLink}}}|&larr; {{{PreviousPersonName}}}]]</li> | {{#if: {{{PreviousPersonLink|}}} | <li class="previous"> {{{PreviousPersonLink}}}</li> |  }} }}
+
<ul class="pager">
{{#if: {{{NextPersonName|}}} | <li class="next">[[{{{NextPersonLink}}}|{{{NextPersonName}}} &rarr;]] </li> |{{#if: {{{NextPersonLink|}}} | <li class="next">{{{NextPersonLink}}} </li> |  }} }}
+
{{#if: {{{PreviousPersonName|}}} | <li class="previous">[[{{{PreviousPersonLink}}}|&larr; {{{PreviousPersonName}}}]]</li> | {{#if: {{{PreviousPersonLink|}}} | <li class="previous"> {{{PreviousPersonLink}}}</li> |  }} }}
</ul>
+
{{#if: {{{NextPersonName|}}} | <li class="next">[[{{{NextPersonLink}}}|{{{NextPersonName}}} &rarr;]] </li> |{{#if: {{{NextPersonLink|}}} | <li class="next">{{{NextPersonLink}}} </li> |  }} }}
  </div>
+
</ul>
 +
</div>
 +
</div>
 
</div>
 
</div>

Revision as of 20:50, 26 November 2017

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.

The template can be fed by either the "new" or "old" setup. Old: NextPersonLink=[[NAME TO LINK|Name Link 'xx]]. New: NextPersonLink=NAME TO LINK|NextPersonName=Name Link 'xx. New method allows arrow to appear in button/link.

Both will handle first/last of class fine.

Class of {{{ClassYear}}}

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