Template:Category info: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(updated to include 5X5)
m (small tweaks)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{icon|}}} | [[File:{{{icon}}}|link=|right|200px]]}}
<includeonly>{{#if: {{{icon|}}} | [[File:{{{icon}}}|right|Image info page|200px]]}}
Titles shown in ''italics'' link straight to podcast segments or SGU 5X5 episodes. The episode number is given in brackets, '5X5' indicates SGU 5X5 episodes, and 'SoF' indicates that the topic is covered in a 'Science or Fiction' segment.
{{#if: {{{text|}}} | {{{text}}}<br><br>}}
Titles shown in ''italics'' link straight to podcast segments or SGU 5X5 episodes. The episode number is given in parentheses, '5X5' indicates SGU 5X5 episodes, and 'SoF' and 'WTW' indicated that the topic is covered in a "Science or Fiction" or "What's the Word?" segment.
</includeonly><noinclude>
=== Description ===
This template adds a uniform blurb to category pages to explain the listing of categorized links, and includes a 200px width category icon to the right of the page.
 
=== Usage ===
The variables <code>icon</code> and <code>text</code> are optional:
 
*<code>icon</code> refers to the file name for the image
 
*<code>text</code> adds page-specific text
 
For example:
<pre>
{{Category info
|icon = CatIcon history.png
|text = Things that happened a long, long time ago
}}
</pre>
 
=== Copy===
<pre>
{{Category info
|icon =
|text =
}}
</pre>
[[Category:Templates]]
</noinclude>

Latest revision as of 12:40, 3 July 2023

Description[edit]

This template adds a uniform blurb to category pages to explain the listing of categorized links, and includes a 200px width category icon to the right of the page.

Usage[edit]

The variables icon and text are optional:

  • icon refers to the file name for the image
  • text adds page-specific text

For example:

{{Category info
|icon = CatIcon history.png
|text = Things that happened a long, long time ago
}}

Copy[edit]

{{Category info
|icon = 
|text = 
}}