Template:Category info: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (added explanation)
m (small tweaks)
 
(6 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]]}}
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>}}
<noinclude>
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 ===
=== 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.


=== Usage ===
=== Usage ===
The variable <code>icon</code> is optional, and refers to the file name for the image. For example:
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>
<pre>
{{Category info
{{Category info
|icon = CatIcon history.png
|icon = CatIcon history.png
|text = Things that happened a long, long time ago
}}
</pre>
=== Copy===
<pre>
{{Category info
|icon =
|text =
}}
}}
</pre>
</pre>
[[Category:Templates]]
</noinclude>
</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 = 
}}