Difference between revisions of "Template:CrewNav/Alphabetical"

From Star Trek Timelines Wiki
Jump to navigation Jump to search
m
(Converted CrewNav to use a loop)
 
Line 1: Line 1:
{{#vardefine:LETTER|A}}<!--
+
{{#vardefine:LETTERS|ABCDEFGHIJKLMNOPQRSTUVWXYZ}}<!--
 
 
-->{{#vardefine:CSS_COL_1|style="padding:3px 10px 3px 10px;"}}<!--
 
-->{{#vardefine:CSS_COL_2|style="padding:3px 10px 3px 10px; text-align:left;"}}<!--
 
  
 
-->{| class="navbox mw-collapsible mw-collapsed"
 
-->{| class="navbox mw-collapsible mw-collapsed"
 
! colspan=2 | Character Pages (Alphabetical)
 
! colspan=2 | Character Pages (Alphabetical)
 
|-  
 
|-  
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|A}}
+
{{#loop: INCREMENT_NUM|0|26|<nowiki />{{#vardefine:CURRENT_LETTER|{{#sub:{{#var:LETTERS}}|{{#var:INCREMENT_NUM}}|1}}}}
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
+
! scope="row" style="padding:3px 10px 3px 10px;" {{!}} {{#var:CURRENT_LETTER}}
|-
+
{{!}} style="padding:3px 10px 3px 10px; text-align:left;" {{!}} {{Template:CrewNav/Alphabetical/Letter|{{#var:CURRENT_LETTER}}}}
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|B}}
+
{{!}}-  
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
+
}}
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|C}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|D}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|E}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|F}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|G}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|H}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|I}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|J}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-  
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|K}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|L}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|M}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|N}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|O}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|P}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|Q}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|R}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|S}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|T}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|U}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|V}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|W}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|X}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|Y}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-  
 
! scope="row" {{#var:CSS_COL_1}} | {{#vardefineecho:LETTER|Z}}
 
| {{#var:CSS_COL_2}} | {{Template:CrewNav/Alphabetical/Letter|{{#var:LETTER}}}}
 
|-
 
 
|}
 
|}

Latest revision as of 01:50, 25 October 2020