Template:SGU list entry: Difference between revisions
Jump to navigation
Jump to search
m (maybe this will work. have to rework all episode pages and update all episode templates going forward... so if there's a "standard" other segment, sort those first, then other standalone special reports/segments, then put any generic Ys above Ns) |
m (maybe the if statement is important) |
||
Line 3: | Line 3: | ||
|data-sort-value={{#switch: {{{status}}}| open = 1| machine = 2| incomplete = 3| proofread = 4| verified = 5}}|{{#switch: {{lc:{{{status}}}}}| machine = {{a}}| incomplete = {{i}}| proofread = {{mag}}| verified = {{tick}}|{{open}}}} | |data-sort-value={{#switch: {{{status}}}| open = 1| machine = 2| incomplete = 3| proofread = 4| verified = 5}}|{{#switch: {{lc:{{{status}}}}}| machine = {{a}}| incomplete = {{i}}| proofread = {{mag}}| verified = {{tick}}|{{open}}}} | ||
| data-sort-value={{#switch: {{{sort_other}}}| 1 = 1| y = 3| n = 4 |#default =2}}|{{#if: {{{other|}}}|{{#switch: {{{other}}}| n = {{blank}} | y = {{tick}}| {{{other}}} }}| {{mark}} }} | |{{#if: {{{sort_other|}}} | data-sort-value={{#switch: {{{sort_other}}}| 1 = 1| y = 3| n = 4 |#default =2}} }}|{{#if: {{{other|}}}|{{#switch: {{{other}}}| n = {{blank}} | y = {{tick}}| {{{other}}} }}| {{mark}} }} | ||
|{{#if: {{{sort_theme|}}} | data-sort-value="{{{sort_theme}}}" }} |{{#if: {{{theme|}}} |{{#switch: {{{theme}}}| n = {{blank}} | y = {{tick}}| {{{theme}}} }}| {{mark}} }} | |{{#if: {{{sort_theme|}}} | data-sort-value="{{{sort_theme}}}" }} |{{#if: {{{theme|}}} |{{#switch: {{{theme}}}| n = {{blank}} | y = {{tick}}| {{{theme}}} }}| {{mark}} }} | ||
|{{#if: {{{sort_interviewee|}}} | data-sort-value="{{{sort_interviewee}}}" }} |{{#if: {{{interviewee|}}} |{{#switch: {{{interviewee}}}| n = {{blank}} | y = {{tick}}| {{{interviewee}}} }}|{{mark}} }} | |{{#if: {{{sort_interviewee|}}} | data-sort-value="{{{sort_interviewee}}}" }} |{{#if: {{{interviewee|}}} |{{#switch: {{{interviewee}}}| n = {{blank}} | y = {{tick}}| {{{interviewee}}} }}|{{mark}} }} |
Revision as of 03:36, 10 August 2023
Description
This template can be used to add formatted entries to a sortable table, ideally for the SGU Episodes page.
Usage
Entries should be added in order, as the table does not automatically order itself on opening.
The parameter "status" can be one of the following: "incomplete" to enter the transcription in progress icon (), "proofread" to enter the magnifying class icon () when transcription is complete, and "verified" to enter the tick icon () when the transcript has been verified as being proofread. Leaving it blank will automatically enter "open" to enter the open icon (), indicating that sections are open to other transcribers.
Example:
{{SGU list entry |episode = |date = Mon(th) D(ate) <!-- three-letter month, non-zero-padded date more visually appealing --> |status = <!-- enter "incomplete", "proofread", or "verified", or leave blank to indicate "open" --> |sort_other =zzz <!-- delete if "other" has named entry --> |other = <!-- enter Y, N, or episode feature /internal link --> |sort_theme =zzz <!-- delete if "theme" has named entry --> |theme = <!-- enter Y, N, or theme name/ [[SGU_Episode_NNN#theme|_theme_title_]] --> |sort_interviewee =zzz <!-- delete if "interviewee" has named entry --> |interviewee = <!-- enter Y, N, or interviewee name, or [[SGU_Episode_NNN#interview|_interviewee_,_description_]] --> |sort_rogue =zzz <!-- delete if "rogue" has named entry --> |rogue = <!-- enter Y, N, or guest rogue's name & description --> }}