Template:QotW entry: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Too many cells)
m (added category)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
|-
<includeonly>|-
|{{{quote}}}
|{{{quote}}}
|{{#if: {{{sortname|}}} | data-sort-value="{{{sortname}}}" }} | {{#if: {{{wpname|}}} | {{w|{{{wpname}}}|{{{name}}}}} | {{{name}}} }}
|{{#if: {{{sortname|}}} | <!--
|{{#if: {{{sortnum|}}} | data-sort-value="{{{sortnum}}}" }} | {{{link1}}}{{#if: {{{link2|}}} | <br /> {{{link2}}} }}{{#if: {{{link3|}}} | <br /> {{{link3}}} }}<noinclude>
    Sorting name, if it exists
-->data-sort-value="{{{sortname}}}"<!--
    else, nothing
-->}} | <!--
-->{{#ifeq: {{{wpname|}}} | {{{wpname|-}}} |<!--
    Wiki name param was given but may be empty
    -->{{#if: {{{wpname}}} |<!--
        Wiki name was specified
        -->{{w|{{{wpname}}}|{{{name}}}}} |<!--
        else, Wiki link using name param
        -->{{w|{{{name}}}}}<!--
    -->}} |<!--
    else, just the full name
    -->{{{name}}}<!--
-->}}
|{{#if: {{{sortnum|}}} | <!--
    Sorting number, if it exists
-->data-sort-value="{{{sortnum}}}"<!--
    else, nothing
-->}} | <!--
First link
-->{{{link1}}}<!--
    Second link, if it exists
-->{{#if: {{{link2|}}} | <br /> {{{link2}}}<!--
    else, nothing
-->}}<!--
    Third link, if it exists
-->{{#if: {{{link3|}}} | <br /> {{{link3}}}<!--
    else, nothing
-->}}</includeonly><noinclude>
=== Description ===
=== Description ===
This is a simplified way to add and format entries to the [[Skeptical Quote Collection]].
This is a simplified way to add and format entries to the [[Skeptical Quote Collection]] table.


=== Usage ===
=== Usage ===
<nowiki>{{QotW row
Required variables:
|quote = Somewhere, something incredible is waiting to be known.
* <code>quote</code> &ndash; The full text of the quote.
|name = Carl Sagan
* <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 = [[SGU_Episode_64#Skeptical_Quote|64]]
* <code>link1</code> &ndash; The full link to the episode page, including anchor, using Wiki mark-up (not the raw URL).
|wpname =  
 
|sortname = Sagan, Carl
Optional variables:
  |sortnum =  
* <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.
|link2 =  
* <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.
|link3 =  
* <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.
}}</nowiki>
* <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>
 
=== Copy ===
<pre>{{QotW entry
|quote    =
|name      =
|link1    =
|wpname    =
|sortname =
|sortnum   =  
|link2     =  
|link3     =  
}}</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     = 
}}