Template:QotW entry: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
mNo edit summary
(Update documentation)
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
Line 40: Line 41:
**''link1'': The full link to the episode page, including anchor.
**''link1'': The full link to the episode page, including anchor.
*'''Optional'''
*'''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.
**''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''.
**''sortname'': The text to use when sorting by name; usually ''lastname, firstname''.
**''sortnum'': The episode number to use when sorting by number, which should be the first number if there are more than one.
**''sortnum'': The episode number to use when sorting by number, which should be the first number if there are more than one.
Line 51: Line 52:
|name = Carl Sagan
|name = Carl Sagan
|link1 = [[SGU_Episode_64#Skeptical_Quote|64]]
|link1 = [[SGU_Episode_64#Skeptical_Quote|64]]
|wpname = Carl Sagan
|wpname =  
|sortname = Sagan, Carl
|sortname = Sagan, Carl
|sortnum =  
|sortnum =  

Revision as of 14:00, 3 May 2013

Description

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

Parameters

  • Required
    • quote: The full text of the quote.
    • name: The name to be displayed in the table.
    • link1: The full link to the episode page, including anchor.
  • Optional
    • 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.
    • 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).

Usage

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