Template:QotW entry: Difference between revisions
Jump to navigation
Jump to search
(Try something else with default params) |
m (added category) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
-->}} | <!-- | -->}} | <!-- | ||
-->{{#ifeq: {{{wpname|}}} | {{{wpname|-}}} |<!-- | -->{{#ifeq: {{{wpname|}}} | {{{wpname|-}}} |<!-- | ||
Wiki | Wiki name param was given but may be empty | ||
-->{{w|{{{wpname|{{{name}}}}} | -->{{#if: {{{wpname}}} |<!-- | ||
Wiki name was specified | |||
-->{{w|{{{wpname}}}|{{{name}}}}} |<!-- | |||
else, Wiki link using name param | |||
-->{{w|{{{name}}}}}<!-- | |||
-->}} |<!-- | |||
else, just the full name | else, just the full name | ||
-->{{{name}}}<!-- | -->{{{name}}}<!-- | ||
Line 30: | 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. | ||
=== | === Usage === | ||
Required variables: | |||
* | * <code>quote</code> – The full text of the quote. | ||
* | * <code>name</code> – 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. | ||
* | * <code>link1</code> – The full link to the episode page, including anchor, using Wiki mark-up (not the raw URL). | ||
* | Optional variables: | ||
* | * <code>wpname</code> – 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. | ||
* | * <code>sortname</code> – The text to use when sorting by name; usually ''lastname, firstname''. Do not use titles (Sir, Dr., Professor) in the sort key. | ||
* | * <code>sortnum</code> – The episode number to use when sorting by number, which should be the first number if there are more than one. | ||
* | * <code>link2</code> – The full link to the second episode page, including anchor (if more than one occurrence). | ||
* <code>link3</code> – 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é 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 = | |quote = | ||
|name = | |name = | ||
|link1 = | |link1 = | ||
|wpname = | |wpname = | ||
|sortname = | |sortname = | ||
|sortnum = | |sortnum = | ||
|link2 = | |link2 = | ||
|link3 = | |link3 = | ||
}}</ | }}</pre> | ||
[[Category: Table entry templates]] | [[Category: Table entry templates]] | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 14: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 = }}