Template:Category info: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
(added 'text' parameter to keep icon at top of page)
m (small tweaks)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{icon|}}} | [[File:{{{icon}}}|right|Image info page|200px]]}}
<includeonly>{{#if: {{{icon|}}} | [[File:{{{icon}}}|right|Image info page|200px]]}}
{{#if: {{{text|}}} | {{{text}}}<br><br>}}
{{#if: {{{text|}}} | {{{text}}}<br><br>}}
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.
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.
<noinclude>
</includeonly><noinclude>
=== Description ===
=== 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.
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.
Line 20: Line 20:
}}
}}
</pre>
</pre>
=== Copy===
<pre>
{{Category info
|icon =
|text =
}}
</pre>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 11: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 = 
}}