Template:Shownotes: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (ok how about a switch here to check for a 2nd reference)
m (🤦‍♂️ wrong template Undo revision 19164 by Xanderox (talk))
Tag: Undo
Line 1: Line 1:
<includeonly><blockquote>
<includeonly>* [{{#if:{{{weblink|}}}|{{{weblink}}}|url_from_show_notes}} {{#if:{{{article_title|}}}|{{{article_title}}}|_article_title_}}]{{#if:{{{refname|}}}|{{refn|name={{{refname}}}}}&nbsp;|{{#tag:ref|[{{#if:{{{weblink|}}}|{{{weblink}}}|url_from_show_notes}} {{#if:{{{publication|}}}|{{#switch: {{{publication}}}
{| class="wikitable" border="1"
|{{#if: {{{theme|}}}  
| '''[[:Category: SoF with a Theme|Theme:]] {{ucfirst:{{{theme}}}}}'''<br>
|}}{{#if: {{{hiddentheme|}}}  
| '''[[:Category: SoF with a Theme|''Hidden'' Theme:]] {{ucfirst:{{{hiddentheme}}}}}'''<br>
|}}
'''Item #1:''' {{{item1}}}{{#if:{{{note1|}}}|&#42;&nbsp;}}{{#if:{{{link1|}}}
|{{{link1}}}|{{#if:{{{link1web|}}}
|{{#tag:ref|[{{{link1web}}} {{#switch: {{{link1pub}}}
  | nn = Neurologica:
  | nn = Neurologica:
  | nnn = Neuroscience News:
  | nnn = Neuroscience News:
Line 15: Line 6:
  | scd = ScienceDaily:
  | scd = ScienceDaily:
  | sca = ScienceAlert:
  | sca = ScienceAlert:
| sci = Science:
  | ls = Live Science:
  | ls = Live Science:
  | space = Space.com:
  | space = Space.com:
Line 28: Line 20:
  | natgeo = National Geographic:
  | natgeo = National Geographic:
  | NatGeo = National Geographic:
  | NatGeo = National Geographic:
  |#default = {{{link1pub}}}:
  | r = Reuters:
}}&nbsp;{{{link1title}}}]}}|{{#tag:ref|No reference given}}}}{{#if:{{{link1web2|}}}|{{#switch:{{{link1web2}}}
  | ap = Associated Press:
|n={{#tag:ref|No reference given}}
  | pnas= Proceedings of the National Academy of Sciences:
|#default ={{#tag:ref|[{{{link1web2}}} {{#switch: {{{link1pub2}}}
  | PNAS= Proceedings of the National Academy of Sciences:
| nn = Neurologica:
  |#default = {{{publication}}}:
  | nnn = Neuroscience News:
}}|_publication_:}} {{#if:{{{article_title|}}}|{{{article_title}}}|_article_title_}}]}}}}{{#if:{{{note|}}}|<br>{{#switch:{{{note}}}
  | sbm = Science-Based Medicine:
| ars = Ars Technica:
| scd = ScienceDaily:
| sca = ScienceAlert:
| ls = Live Science:
| space = Space.com:
| sa = Scientific American:
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
  | natgeo = National Geographic:
| NatGeo = National Geographic:
  |#default = {{{link1pub2}}}:
}}&nbsp;{{{link1title2}}}]}}}}}}}}
 
 
{{#if:{{{note|}}}|<br>{{#switch:{{{note}}}
|not =&nbsp;<small>''(Note: this article is not from the SGU show notes page)''</small>
|not =&nbsp;<small>''(Note: this article is not from the SGU show notes page)''</small>
|no =&nbsp;<small>''(Note: no article was given from the SGU show notes page)''</small>
|no =&nbsp;<small>''(Note: no article was given from the SGU show notes page)''</small>
|#default =&nbsp;<small>''(Note: {{{note}}})''</small>}}}}
|#default =&nbsp;<small>''(Note: {{{note}}})''</small>}}}}{{#if:{{{redirect_title|}}}|<br>[[{{{redirect_title}}}|{{tooltip|(click to create redirect page)|then hide this parameter (move title inside the markup text)}}]]|}}</includeonly>
<noinclude>== Description ==
This template creates bulleted links and reference entries for any articles from episode show note pages or any that the transcriber might find appropriate, such as for Quickie segments, which typically don't have any web references given in the shownotes. To add a small note for a link and reference not given in an episode's shownotes, just enter one with the <code>note=</code> parameter.


<br>'''Item #2:''' {{{item2}}}{{#if:{{{note2|}}}|<sup>&dagger;</sup>&nbsp;}}{{#if:{{{link2|}}}
== Copy==
|{{{link2}}}|{{#if:{{{link2web|}}}
Copy this to use in your page.
|{{#tag:ref|[{{{link2web}}} {{#switch: {{{link2pub}}}
<pre>{{shownotes
| nn = Neurologica:
|weblink = <!-- must begin with http:// -->
| nnn = Neuroscience News:
|article_title = <!-- please replace ALL CAPS with Title Case or Sentence case -->
| sbm = Science-Based Medicine:
|publication = <!-- see Shownotes template quick text shortcuts for commonly cited publications -->
| ars = Ars Technica:
|redirect_title = <!-- optional...use _Redirect_title_(NNN) to prompt a redirect page to be created; delete this parameter when redirect is created -->
| scd = ScienceDaily:
|note = <!-- optional; enter "not" for "(Note: this article is not from the SGU show notes page)" -->
| sca = ScienceAlert:
}}</pre>
| ls = Live Science:
 
| space = Space.com:
=== Quick text shortcuts for commonly cited publications ===
| sa = Scientific American:
<pre>
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
| natgeo = National Geographic:
| NatGeo = National Geographic:
|#default = {{{link2pub}}}:
}}&nbsp;{{{link2title}}}]}}|{{#tag:ref|No reference given}}}}{{#if:{{{link2web2|}}}
|{{#tag:ref|[{{{link2web2}}} {{#switch: {{{link2pub2}}}
| nn = Neurologica:
| nnn = Neuroscience News:
| sbm = Science-Based Medicine:
| ars = Ars Technica:
| scd = ScienceDaily:
| sca = ScienceAlert:
| ls = Live Science:
| space = Space.com:
| sa = Scientific American:
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
| natgeo = National Geographic:
| NatGeo = National Geographic:
|#default = {{{link2pub2}}}:
}}&nbsp;{{{link2title2}}}]}}}}}}<br>'''Item #3:''' {{{item3}}}{{#if:{{{note3|}}}|&#42;&#42;&nbsp;}}{{#if:{{{link3|}}}
|{{{link3}}}|{{#if:{{{link3web|}}}
|{{#tag:ref|[{{{link3web}}} {{#switch: {{{link3pub}}}
  | nn = Neurologica:
  | nn = Neurologica:
  | nnn = Neuroscience News:
  | nnn = Neuroscience News:
Line 114: Line 50:
  | scd = ScienceDaily:
  | scd = ScienceDaily:
  | sca = ScienceAlert:
  | sca = ScienceAlert:
| sci = Science:
  | ls = Live Science:
  | ls = Live Science:
  | space = Space.com:
  | space = Space.com:
Line 126: Line 63:
  | ng = National Geographic:
  | ng = National Geographic:
  | natgeo = National Geographic:
  | natgeo = National Geographic:
  | NatGeo = National Geographic:
  | r = Reuters:
|#default = {{{link3pub}}}:
  | ap = Associated Press:
}}&nbsp;{{{link3title}}}]}}|{{#tag:ref|No reference given}}}}{{#if:{{{link3web2|}}}
  | pnas = Proceedings of the National Academy of Sciences:
|{{#tag:ref|[{{{link3web2}}} {{#switch: {{{link3pub2}}}
  | nn = Neurologica:
  | nnn = Neuroscience News:
| sbm = Science-Based Medicine:
| ars = Ars Technica:
| scd = ScienceDaily:
| sca = ScienceAlert:
| ls = Live Science:
| space = Space.com:
| sa = Scientific American:
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
| natgeo = National Geographic:
| NatGeo = National Geographic:
|#default = {{{link3pub2}}}:
}}&nbsp;{{{link3title2}}}]}}}}}}{{#if: {{{item4|}}}|<br>'''Item #4:''' {{{item4}}}{{#if:{{{note4|}}}|<sup>&dagger;&dagger;</sup>&nbsp;}}{{#if:{{{link4|}}}
|{{{link4}}}|{{#if:{{{link4web|}}}
|{{#tag:ref|[{{{link4web}}} {{#switch: {{{link4pub}}}
| nn = Neurologica:
| nnn = Neuroscience News:
| sbm = Science-Based Medicine:
| ars = Ars Technica:
| scd = ScienceDaily:
| sca = ScienceAlert:
| ls = Live Science:
| space = Space.com:
| sa = Scientific American:
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
| natgeo = National Geographic:
| NatGeo = National Geographic:
|#default = {{{link4pub}}}:
}}&nbsp;{{{link4title}}}]}}|{{#tag:ref|No reference given}}}}}}{{#if:{{{link4web2|}}}
|{{#tag:ref|[{{{link4web2}}} {{#switch: {{{link4pub2}}}
| nn = Neurologica:
| nnn = Neuroscience News:
| sbm = Science-Based Medicine:
| ars = Ars Technica:
| scd = ScienceDaily:
| sca = ScienceAlert:
| ls = Live Science:
| space = Space.com:
| sa = Scientific American:
| nyt = New York Times:
| ut = Universe Today:
| bbc = BBC:
| nasa = NASA:
| convo = The Conversation:
| n = Nature:
| nc = Nature Communications:
| ng = National Geographic:
| natgeo = National Geographic:
| NatGeo = National Geographic:
|#default = {{{link4pub2}}}:
}}&nbsp;{{{link4title2}}}]}}}}}}{{#if:{{{note1|}}}
|<p style="line-height:80%"><small>&#42;&nbsp;''{{{note1}}}''</small></p>|}}{{#if:{{{note2|}}}
|<p style="line-height:80%"><small>&dagger;&nbsp;''{{{note2}}}''</small></p>|}}{{#if:{{{note3|}}}
|<p style="line-height:80%"><small>&#42;&#42;&nbsp;''{{{note3}}}''</small></p>|}}{{#if:{{{note4|}}}
|<p style="line-height:80%"><small>&dagger;&dagger;&nbsp;''{{{note4}}}''</small></p>|}}{{#if:{{{note|}}}
|<p style="line-height:80%"><small>&#42;&nbsp;''{{{note}}}''</small></p>|}}
|}
</blockquote></includeonly>
<noinclude>
=== Description ===
This template is used in the [[Episode skeleton#theme|Episode skeleton]] to more easily facilitate entering the text and weblinks for Science or Fiction items and articles given in the relevant Episode's shownotes.
 
=== Examples ===
With three items and a theme topic (currently Episode 883 is the only one with a "hidden theme"), the text and linked references will render thus:
{{SOFinfo
|hiddentheme = [[SGU_Episode_883#theme|Counterintuitive Results (883)]]
 
|item1 = First item's text will be here.
|link1web = https://theness.com/neurologicablog
|link1pub = Publication
|link1title = Article for Item 1
 
|item2 = Second item's text will be here.
|link2web = https://theness.com/neurologicablog
|link2pub = Publication
|link2title = Article for Item 2
 
|item3 = Third item's text will be here.
|link3web = https://theness.com/neurologicablog
|link3pub = Publication
|link3title = Article for Item 3
|}}
 
With no theme and with all items '''having no web reference in the show notes''' (common with "Myths about __" or "Facts about __" that often come with Live Shows), the text will render thus, with "No reference given" seen in the [[#References|References]] section:
{{SOFinfo
 
|item1 = First item's text will be here.
 
|item2 = Second item's text will be here.
 
|item3 = Third item's text will be here.
 
|item4 = Fourth item's text will be here.
|}}
 
=== Usage ===
You can copy/paste the following code into your page.
 
<pre>
{{SOFinfo
|theme = <!-- delete or leave blank if no theme -->
|hiddentheme = <!-- delete or leave blank if no "hidden theme", e.g. Ep. 883 -->
 
|item1 = _item_text_from_show_notes_
|link1web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link1pub = _publication_ <!-- delete or leave blank if none -->
|link1title = _article_title_ <!-- delete or leave blank if none -->
 
|item2 = _item_text_from_show_notes_
|link2web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link2pub = _publication_ <!-- delete or leave blank if none -->
|link2title = _article_title_ <!-- delete or leave blank if none -->
 
|item3 = _item_text_from_show_notes_
|link3web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link3pub = _publication_ <!-- delete or leave blank if none -->
|link3title = _article_title_ <!-- delete or leave blank if none -->
 
|item4 = _item_text_from_show_notes_ <!-- delete or leave blank if no 4th item -->
|link4web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link4pub = _publication_ <!-- delete or leave blank if none -->
|link4title = _article_title_ <!-- delete or leave blank if none -->
|}}
</pre>
</pre>
 
[[Category:Templates]]
==== Item notes ====
[[Category:Quick text templates]]
Additionally, if necessary, you can add <code>note1=</code>, <code>note2=</code>, <code>note3=</code>, and/or <code>note4=</code> into the table parameters to append any information to any of the items, such as to clarify an error in the item text or to provide additional links. See [[SGU Episode 934#sof|Episode 934]], [[SGU Episode 926#sof|Episode 926]], and [[SGU Episode 665#sof|Episode 665]] for examples.
 
{{SOFinfo
|theme = <!-- delete or leave blank if no theme -->
|hiddentheme = <!-- delete or leave blank if no "hidden theme", e.g. Ep. 883 -->
 
|item1 = _item_text_from_show_notes_
|link1web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link1pub = _publication_ <!-- delete or leave blank if none -->
|link1title = _article_title_ <!-- delete or leave blank if none -->
 
|item2 = _item_text_from_show_notes_
|link2web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link2pub = _publication_ <!-- delete or leave blank if none -->
|link2title = _article_title_ <!-- delete or leave blank if none -->
 
|item3 = _item_text_from_show_notes_
|link3web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link3pub = _publication_ <!-- delete or leave blank if none -->
|link3title = _article_title_ <!-- delete or leave blank if none -->
 
|item4 = _item_text_from_show_notes_ <!-- delete or leave blank if no 4th item -->
|link4web = url_from_SoF_show_notes <!-- delete or leave blank if none -->
|link4pub = _publication_ <!-- delete or leave blank if none -->
|link4title = _article_title_ <!-- delete or leave blank if none -->
 
|note1 = here's what the footnote looks like for item 1
|note2 = and for item 2
|note3 = and for item 3
|note4 = and for item 4
|note = and for a generic note|}}
Alternatively, you could add a comment {{tnote|like this}}, such as in the [[SGU_Episode_856#theme|SOF Info table for episode 856]], using the <code><nowiki>{{tnote|}}</nowiki></code> template.
 
== References ==
<references/>
[[Category: Templates]]
</noinclude>
</noinclude>

Revision as of 07:36, 2 February 2024

Description

This template creates bulleted links and reference entries for any articles from episode show note pages or any that the transcriber might find appropriate, such as for Quickie segments, which typically don't have any web references given in the shownotes. To add a small note for a link and reference not given in an episode's shownotes, just enter one with the note= parameter.

Copy

Copy this to use in your page.

{{shownotes
|weblink			= 	<!-- must begin with http:// -->
|article_title			= 	<!-- please replace ALL CAPS with Title Case or Sentence case -->
|publication			= 	<!-- see Shownotes template quick text shortcuts for commonly cited publications -->
|redirect_title			=	<!-- optional...use _Redirect_title_(NNN) to prompt a redirect page to be created; delete this parameter when redirect is created -->
|note				=	<!-- optional; enter "not" for "(Note: this article is not from the SGU show notes page)" -->
}}

Quick text shortcuts for commonly cited publications

 | nn = Neurologica:
 | nnn = Neuroscience News:
 | sbm = Science-Based Medicine:
 | ars = Ars Technica:
 | scd = ScienceDaily:
 | sca = ScienceAlert:
 | sci = Science:
 | ls = Live Science:
 | space = Space.com:
 | sa = Scientific American:
 | nyt = New York Times:
 | ut = Universe Today:
 | bbc = BBC:
 | nasa = NASA:
 | convo = The Conversation:
 | n = Nature:
 | nc = Nature Communications:
 | ng = National Geographic:
 | natgeo = National Geographic:
 | r = Reuters:
 | ap = Associated Press:
 | pnas = Proceedings of the National Academy of Sciences: