×
Create a new article
Write your page title here:
We currently have 245 articles on The Vault @ The EERIE Files. Type your article name above or click on one of the titles below and start writing!



The Vault @ The EERIE Files

Template:InfoboxCategory: Difference between revisions

No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="vault-infobox">
<includeonly><div class="vault-infobox vault-infobox-category"><div class="vault-infobox-header">{{PAGENAME}}</div>{{#if:{{{parent_categories|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PARENT CATEGORY</span><span class="vault-infobox-v">{{{parent_categories}}}</span></div>}}{{#if:{{{related_categories|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">RELATED CATEGORIES</span><span class="vault-infobox-v">{{{related_categories}}}</span></div>}}</div></includeonly><noinclude>
<div class="vault-infobox-header">{{{name}}}</div>
== Template:InfoboxCategory ==
<div class="vault-infobox-row"><span class="vault-infobox-k">TYPE</span><span class="vault-infobox-v">Category</span></div>
Renders the infobox card at the top of a Vault '''category''' page — as distinct from the content infoboxes ({{tl|InfoboxMovie}}, {{tl|InfoboxShow}}, etc.), which describe an article's subject rather than a category's place in the tree.
{{#if:{{{scope|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">SCOPE</span><span class="vault-infobox-v">{{{scope}}}</span></div>}}
 
{{#if:{{{parent|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PARENT</span><span class="vault-infobox-v">[[:Category:{{{parent}}}|{{{parent}}}]]</span></div>}}
Displays the page's own name automatically via <code>{{PAGENAME}}</code> — there is no <code>name</code> parameter, since a category page's title is fixed and shouldn't need repeating.
<div class="vault-infobox-row"><span class="vault-infobox-k">PAGES FILED</span><span class="vault-infobox-v vault-infobox-status">{{PAGESINCATEGORY:{{{name}}}}}</span></div>
 
</div></includeonly><noinclude>
'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals, same as the other infoboxes.
== Template:CategoryInfobox ==
 
Renders the right-hand infobox card on a '''category page''' — same visual style as {{tl|CaseInfobox}}, used for individual case files, but with fields suited to a category (scope and parent rather than region and first report).
'''Formatting note:''' the entire template body is written as one unbroken line, with no line breaks between rows — same rule as every other infobox/brief template on the wiki. Splitting rows across multiple lines causes MediaWiki to wrap them in stray <code>&lt;p&gt;</code> tags; leaving blank lines between otherwise-correct rows causes visible gaps.
'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals, same as CaseInfobox.
 
'''Important:''' this template must never be placed on a page that also contains a call to itself, and must never itself call <code>{{InfoboxCategory}}</code> — doing either produces a "Template loop detected" error.
 
'''Usage:'''
'''Usage:'''
<pre>
<pre>
{{CategoryInfobox
{{InfoboxCategory
|name=UFOs and Sightings
|parent_categories=[[:Category:The Vault|The Vault]]
|scope=Aerial phenomena and sighting reports
|related_categories=[[:Category:Locations by Type|Locations by Type]], [[:Category:Locations by Geography|Locations by Geography]]
|parent=All Files
}}
}}
</pre>
</pre>
Place this at the very top of a category page, before the descriptive text — it floats right and the text will wrap around it automatically.
Place at the top of a category page, before its descriptive text.


=== Parameters ===
=== Parameters ===
* '''name''' — required. The category's display name (also used to auto-count pages via <code>{{PAGESINCATEGORY:}}</code>)
* '''parent_categories''' — the category's parent(s) in the tree, as display text/links (this is separate from the actual <nowiki>[[Category:Parent]]</nowiki> tag at the bottom of the page, which is what does the real categorization — this parameter is just the human-readable label)
* '''scope''' — recommended. A one-line description of what the category covers
* '''related_categories''' — optional. Sibling or cross-referenced categories worth surfacing to a reader browsing this category
* '''parent''' — optional. The category this one sits under, if any (rendered as a link)


'''Pages filed''' is generated automatically — no need to update it by hand.
[[Category:Infoboxes]]
[[Category:Vault Templates]]
</noinclude>
</noinclude>

Latest revision as of 20:37, 3 August 2026

Template:InfoboxCategory

Renders the infobox card at the top of a Vault category page — as distinct from the content infoboxes ({{InfoboxMovie}}, {{InfoboxShow}}, etc.), which describe an article's subject rather than a category's place in the tree.

Displays the page's own name automatically via InfoboxCategory — there is no name parameter, since a category page's title is fixed and shouldn't need repeating.

Note: requires the ParserFunctions extension for the conditionals, same as the other infoboxes.

Formatting note: the entire template body is written as one unbroken line, with no line breaks between rows — same rule as every other infobox/brief template on the wiki. Splitting rows across multiple lines causes MediaWiki to wrap them in stray <p> tags; leaving blank lines between otherwise-correct rows causes visible gaps.

Important: this template must never be placed on a page that also contains a call to itself, and must never itself call

InfoboxCategory

— doing either produces a "Template loop detected" error.

Usage:

{{InfoboxCategory
|parent_categories=[[:Category:The Vault|The Vault]]
|related_categories=[[:Category:Locations by Type|Locations by Type]], [[:Category:Locations by Geography|Locations by Geography]]
}}

Place at the top of a category page, before its descriptive text.

Parameters

  • parent_categories — the category's parent(s) in the tree, as display text/links (this is separate from the actual [[Category:Parent]] tag at the bottom of the page, which is what does the real categorization — this parameter is just the human-readable label)
  • related_categories — optional. Sibling or cross-referenced categories worth surfacing to a reader browsing this category