Template:QotW entry: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(Fixes to documentation)
(Try spacing out the variables with comments, for clarity)
Line 1: Line 1:
<includeonly>|-
<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}}} }}</includeonly><noinclude>
    Sorting name, if it exists
-->data-sort-value="{{{sortname}}}"<!--
    else, nothing
-->}} | <!--
-->{{#if: {{{wpname|}}} | <!--
    Wiki link
    -->{{w|{{{wpname}}}|{{{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]] table.
This is a simplified way to add and format entries to the [[Skeptical Quote Collection]] table.

Revision as of 11:15, 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. 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 = Carl Sagan
|sortname = Sagan, Carl
|sortnum = 
|link2 = 
|link3 = 
}}