Template:Book list entry: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (fix typo)
m (added category)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
|data-sort-value="{{{Author}}}, {{{Title}}}"|[{{{AuthorURL}}} {{{Author}}}]
|data-sort-value="{{{Author}}}, {{{Title}}}"|{{#if: {{{AuthorURL|}}} | [{{{AuthorURL}}} {{{Author}}}] | {{{Author}}} }}
|data-sort-value={{{Title}}}|[{{{TitleURL}}} {{{Title}}}]
|data-sort-value={{{Title}}}|{{#if: {{{TitleURL|}}} | [{{{TitleURL}}} {{{Title}}}] | {{{Title}}} }}
|{{#if: {{{Reference|}}} | {{{Reference}}} }}
|{{#if: {{{Reference|}}} | {{{Reference}}} }}
|{{#if: {{{Gutenberg|}}} | [{{{Gutenberg}}}] }}
|{{#if: {{{Gutenberg|}}} | [{{{Gutenberg}}}] }}
Line 11: Line 11:
Entries should be added in order, as the table does not automatically order itself on opening.
Entries should be added in order, as the table does not automatically order itself on opening.


If including Gutenberg link, insert URL then year, separated by a space
Mandatory variables:
* <code>Author</code>
* <code>Title</code>
 
Optional variables:
* <code>AuthorURL</code>
* <code>TitleURL</code>
* <code>Reference</code> &ndash; insert internal, SGU transcripts reference to book
* <code>Gutenberg</code> &ndash; insert URL then year, separated by a space
* <code>Category</code>


The most relevant category should be entered as category1, as this will determine the sorting order for the category column.


Example:
Example:
Line 27: Line 35:
}}
}}
</pre>
</pre>
=== Copy ===
<pre>
{{Book list entry
|Author    =
|AuthorURL =
|Title    =
|TitleURL  =
|Reference =
|Gutenberg =
|Category  =
}}
</pre>
[[Category: Table entry templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 14:08, 13 September 2016

|data-sort-value="{{{Author}}}, {{{Title}}}"|{{{Author}}} |data-sort-value={{{Title}}}|{{{Title}}} | | |

Description[edit]

This template is used to add formatted entries to the sortable table on the Skeptical Reading List page.

Usage[edit]

Entries should be added in order, as the table does not automatically order itself on opening.

Mandatory variables:

  • Author
  • Title

Optional variables:

  • AuthorURL
  • TitleURL
  • Reference – insert internal, SGU transcripts reference to book
  • Gutenberg – insert URL then year, separated by a space
  • Category


Example:

{{Book list entry
|Author    = Charles Darwin
|AuthorURL = http://en.wikipedia.org/wiki/Charles_Darwin
|Title     = On The Origin of Species
|TitleURL  = http://en.wikipedia.org/wiki/On_the_origin_of_species
|Reference = [[SGU_Episode_38#Evolution.2C_the_Promotion_of_Positive_Science_News_.2830:42.29|38]]
|Gutenberg = http://www.gutenberg.org/ebooks/2009 2009
|Category  = Evolution
}}

Copy[edit]

{{Book list entry
|Author    = 
|AuthorURL = 
|Title     = 
|TitleURL  = 
|Reference = 
|Gutenberg = 
|Category  = 
}}