Template:SOFinfo: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (note sure why the text render isn't showing right)
m (fixed)
Line 1: Line 1:
<blockquote>{{#if: {{{theme|}}} | '''Theme: {{{theme}}}'''<br>| }}
<includeonly><blockquote>{{#if: {{{theme|}}} | '''Theme: {{{theme}}}'''<br>| }}
{{#if: {{{item4|}}} |'''Item #1:''' {{{item1}}}<ref>[{{{url1}}} {{{pub1}}}: {{{title1}}}]</ref><br>'''Item #2:''' {{{item2}}}<ref>[{{{url2}}} {{{pub2}}}: {{{title2}}}]</ref><br>'''Item #3:''' {{{item3}}}<ref>[{{{url3}}} {{{pub3}}}: {{{title3}}}]</ref><br>'''Item #4:''' {{{item4}}}<ref>[{{{url4}}} {{{pub4}}}: {{{title4}}}]</ref>|'''Item #1:''' {{{item1}}}<ref>[{{{url1}}} {{{pub1}}}: {{{title1}}}]</ref><br>'''Item #2:''' {{{item2}}}<ref>[{{{url2}}} {{{pub2}}}: {{{title2}}}]</ref><br>'''Item #3:''' {{{item3}}}<ref>[{{{url3}}} {{{pub3}}}: {{{title3}}}]</ref>}}</blockquote>
{{#if: {{{item4|}}} |'''Item #1:''' {{{item1}}}{{{link1}}}<br>'''Item #2:''' {{{item2}}}{{{link2}}}<br>'''Item #3:''' {{{item3}}}{{{link3}}}<br>'''Item #4:''' {{{item4}}}{{{link4}}}| '''Item #1:''' {{{item1}}}{{{link1}}}<br>'''Item #2:''' {{{item2}}}{{{link2}}}<br>'''Item #3:''' {{{item3}}}{{{link3}}}}}</blockquote></includeonly>
<noinclude>
<noinclude>
=== Description ===
=== Description ===
Line 6: Line 6:


=== Usage ===
=== Usage ===
You can copy/paste the following code into your page, removing lines as appropriate.
You can copy/paste the following code into your page.


<pre>
<pre>
{{SOFinfo
{{SOFinfo
|theme = <!-- leave blank if no theme -->
|theme = <!-- leave blank if no theme -->
|item1 = <!-- item text from show notes -->
|item1 = <!-- item text from show notes -->
|url1 = <!-- url from show notes -->
|link1 = <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|pub1 = <!-- publication name -->
|item2 = <!-- item text from show notes -->
|title1 = <!-- article's title -->
|link2 = <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|item2 =
|item3 = <!-- item text from show notes -->
|url2 =
|link3 = <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|pub2 =
|item4 = <!-- leave blank if no 4th item -->
|title2 =
|link4 = <!-- leave blank if no 4th item -->
|item3 =  
|url3 =
|pub3 =
|title3 =
|item4 = <!-- leave blank if no 4th item -->
|url4 = <!-- leave blank if no 4th item -->
|pub4 = <!-- leave blank if no 4th item -->
|title4 = <!-- leave blank if no 4th item -->
|}}
|}}
</pre>
</pre>
Line 32: Line 24:
With all fields filled out, the text will render thus:
With all fields filled out, the text will render thus:
{{SOFinfo
{{SOFinfo
|theme = Templates <!-- leave blank if no theme -->
|theme = Templates
|item1 = First item's text will be here.
|item1 = First item's text will be here.
|url1 = https://theness.com/neurologicablog/
|link1 = <ref>[https://theness.com/neurologicablog Neurologica: Article for Item 1]</ref>
|pub1 = Neurologica
|title1 = Article for Item 1 <!-- article's title -->
|item2 = Second item's text will be here.
|item2 = Second item's text will be here.
|url2 = https://theness.com/neurologicablog/
|link2 = <ref>[https://theness.com/neurologicablog Neurologica: Article for Item 2]</ref>
|pub2 = Neurologica
|title2 = Article for Item 2
|item3 = Third item's text will be here.
|item3 = Third item's text will be here.
|url3 = https://theness.com/neurologicablog/
|link3 = <ref>[https://theness.com/neurologicablog Neurologica: Article for Item 3]</ref>
|pub3 = Neurologica
|title3 = Article for Item 3
|item4 = Fourth item's text will be here.
|item4 = Fourth item's text will be here.
|url4 = https://theness.com/neurologicablog/
|link4 = <ref>[https://theness.com/neurologicablog Neurologica: Article for Item 4]</ref>
|pub4 = Neurologica
|title4 = Article for Item 4
|}}
|}}


[[Category: Templates]]
[[Category: Templates]]
</noinclude>
</noinclude>

Revision as of 14:39, 4 November 2021


Description

This template is used in the Episode skeleton to more easily facilitate entering Science or Fiction items' text and article links.

Usage

You can copy/paste the following code into your page.

{{SOFinfo
|theme		= 		<!-- leave blank if no theme -->
|item1		= 		<!-- item text from show notes -->
|link1		= <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|item2		= 		<!-- item text from show notes -->
|link2		= <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|item3		= 		<!-- item text from show notes -->
|link3		= <ref>[url_from_SoF_show_notes PUBLICATION: TITLE]</ref>
|item4		= 		<!-- leave blank if no 4th item -->
|link4		= 		<!-- leave blank if no 4th item -->
|}}

With all fields filled out, the text will render thus:

Theme: Templates
Item #1: First item's text will be here.[1]
Item #2: Second item's text will be here.[2]
Item #3: Third item's text will be here.[3]
Item #4: Fourth item's text will be here.[4]