Template:QotW entry: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
No edit summary
m (added category)
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
  -->}} | <!--
  -->}} | <!--
  -->{{#ifeq: {{{wpname|}}} | {{{wpname|-}}} |<!--
  -->{{#ifeq: {{{wpname|}}} | {{{wpname|-}}} |<!--
     Wiki link was specified but may be empty
     Wiki name param was given but may be empty
     -->{{#if: {{{wpname|}}} |<!--
     -->{{#if: {{{wpname}}} |<!--
        Wiki name was specified
         -->{{w|{{{wpname}}}|{{{name}}}}} |<!--
         -->{{w|{{{wpname}}}|{{{name}}}}} |<!--
         else, Wiki link using name param
         else, Wiki link using name param
         -->|{{w|{{{name}}}}}<!--
         -->{{w|{{{name}}}}}<!--
     -->}}
     -->}} |<!--
     else, just the full name
     else, just the full name
     -->{{{name}}}<!--
     -->{{{name}}}<!--
Line 34: Line 35:
This is a simplified way to add and format entries to the [[Skeptical Quote Collection]] table.
This is a simplified way to add and format entries to the [[Skeptical Quote Collection]] table.


=== Parameters ===
=== Usage ===
*'''Required'''
Required variables:
**''quote'': The full text of the quote.
* <code>quote</code> &ndash; The full text of the quote.
**''name'': The name to be displayed in the table.
* <code>name</code> &ndash; The name to be displayed in the table. This field can include links, e.g. to link to a page other than a Wikipedia entry.
**''link1'': The full link to the episode page, including anchor.
* <code>link1</code> &ndash; The full link to the episode page, including anchor, using Wiki mark-up (not the raw URL).
*'''Optional'''
 
**''wpname'': The canonical name of the Wikipedia article for the author. This is the name that appears in the heading atop the Wikipedia article and can contain spaces, parentheses, special characters, etc. It is not necessary to encode these characters for this field.
Optional variables:
**''sortname'': The text to use when sorting by name; usually ''lastname, firstname''.
* <code>wpname</code> &ndash; The canonical name of the Wikipedia article for the author. If blank, defaults to the string given in "name". This is the name that appears in the heading atop the Wikipedia article and can contain spaces, parentheses, special characters, etc. It is not necessary to encode these characters for this field.
**''sortnum'': The episode number to use when sorting by number, which should be the first number if there are more than one.
* <code>sortname</code> &ndash; The text to use when sorting by name; usually ''lastname, firstname''. Do not use titles (Sir, Dr., Professor) in the sort key.
**''link2'': The full link to the second episode page, including anchor (if more than one occurrence).
* <code>sortnum</code> &ndash; The episode number to use when sorting by number, which should be the first number if there are more than one.
**''link3'': The full link to the third episode page, including anchor (if more than one occurrence).
* <code>link2</code> &ndash; The full link to the second episode page, including anchor (if more than one occurrence).
* <code>link3</code> &ndash; The full link to the third episode page, including anchor (if more than one occurrence).
 
Example:
<pre>{{QotW entry
|quote = De omnibus dubitandum.<br />All is to be doubted.
|name = Ren&eacute; Descartes
|link1 = [[SGU_Episode_90#Skeptical_Quote|90]]
|wpname = René Descartes
|sortname = Descartes, Rene
|sortnum = 90
|link2 = [[SGU_Episode_142#Skeptical_Quote|142]]
}}
</pre>


=== Usage ===
=== Copy ===
<nowiki>{{QotW entry
<pre>{{QotW entry
|quote = Somewhere, something incredible is waiting to be known.
|quote     =  
|name = Carl Sagan
|name     =  
|link1 = [[SGU_Episode_64#Skeptical_Quote|64]]
|link1     =  
|wpname = Carl Sagan
|wpname   =  
|sortname = Sagan, Carl
|sortname =  
|sortnum =  
|sortnum   =  
|link2 =  
|link2     =  
|link3 =  
|link3     =  
}}</nowiki>
}}</pre>


[[Category: Table entry templates]]
[[Category: Table entry templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 13:07, 13 September 2016

Description[edit]

This is a simplified way to add and format entries to the Skeptical Quote Collection table.

Usage[edit]

Required variables:

  • quote – The full text of the quote.
  • name – The name to be displayed in the table. This field can include links, e.g. to link to a page other than a Wikipedia entry.
  • link1 – The full link to the episode page, including anchor, using Wiki mark-up (not the raw URL).

Optional variables:

  • wpname – The canonical name of the Wikipedia article for the author. If blank, defaults to the string given in "name". This is the name that appears in the heading atop the Wikipedia article and can contain spaces, parentheses, special characters, etc. It is not necessary to encode these characters for this field.
  • sortname – The text to use when sorting by name; usually lastname, firstname. Do not use titles (Sir, Dr., Professor) in the sort key.
  • sortnum – The episode number to use when sorting by number, which should be the first number if there are more than one.
  • link2 – The full link to the second episode page, including anchor (if more than one occurrence).
  • link3 – The full link to the third episode page, including anchor (if more than one occurrence).

Example:

{{QotW entry
|quote = De omnibus dubitandum.<br />All is to be doubted.
|name = René Descartes
|link1 = [[SGU_Episode_90#Skeptical_Quote|90]]
|wpname = René Descartes
|sortname = Descartes, Rene
|sortnum = 90
|link2 = [[SGU_Episode_142#Skeptical_Quote|142]]
}}

Copy[edit]

{{QotW entry
|quote     = 
|name      = 
|link1     = 
|wpname    = 
|sortname  = 
|sortnum   = 
|link2     = 
|link3     = 
}}