Template:Autocat: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(For use on auto categories)
 
No edit summary
 
(55 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<noinclude>{{translate|Need translations for most popular languages. Should look similar to how {{tl|Stub}} does it.}}{{Documentation}}</noinclude>
{{ulf|en=1|eo=1|ru=1|vi=1|zh=1}}
<includeonly><onlyinclude>{{#if:{{{nocat|}}}||[[Category:Stubs]]}}
 
<div style="background: #262626; border-radius:.5em; display:flow-root; margin:.4em 0" align="left"> <div style="display:flex; border:1px solid #FF262A; border-radius: .5em; overflow:hidden;">
{{Doc}}
<p style="background:rgb(255, 38, 42, .3); flex-basis:3em; align-items:center; display:inline-flex; margin:0; padding:.3em; justify-content:center; font-weight:bold;">Automatic Category</p>
 
<p style="background:rgb(255, 38, 42, .1); flex:1; align-items:center; margin:0; padding:.3em;">'''Please do NOT manually add pages to this category.'''<br>{{#if: {{{1|}}}|This template is automatically added by the {{tl|{{{1|}}}}} template.|This page is automatically added by a template used on these pages.}} </p>
<includeonly>
</div></div></onlyinclude></includeonly>
 
<onlyinclude>{{footer
| bgcolor = rgb(60, 60, 60)
| borderrgb = 82, 82, 82
| borderalpha = 1
| titlergb = 10, 10, 10
| textbgrgb = 20, 20, 20
| title = {{Autocat/strings|title}}
 
| 1 = '''{{Autocat/strings|top}}'''<br>{{Autocat/strings|bottom1}} {{#if: {{{1|}}}
| {{Autocat/strings|bottom2}} {{#if: {{{2|}}}
| {{Autocat/strings|bottom3}} {{T|{{{1}}}}} {{T|{{{2|}}}}} {{#if:{{{3|}}}
| {{T|{{{3|}}}}}
|
}} {{#if:{{{4|}}} | {{T|{{{4|}}}}} }} {{#if:{{{5|}}} | {{T|{{{5|}}}}} }}
| {{T|{{{1|}}}}} {{Autocat/strings|bottom4}}
}}
    | {{Autocat/strings|bottom5}}
}}<br>{{Autocat/strings|bottom6}}
}}{{yesno | {{{nocat|}}}
| no = {{#switch: {{{type|}}}
| #default = {{ACategory|Automatic category}}
| user = [[Category:Automatic user category]]__EXPECTUNUSEDCATEGORY__
}}
| yes =
}}</onlyinclude>
 
</includeonly>
 
[[Category:Asbox templates]]

Latest revision as of 03:39, 23 May 2025

English (en)Esperanto (eo)Русский (ru)Tiếng Việt (vi)中文 (zh)
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:8
Approximate status of translation:English (en) 100% Esperanto (eo) 87.5% Hrvatski (hr) 100% Русский (ru) 100% Tiếng Việt (vi) 100% 中文 (zh) 100% 

Usage

This template is used on hidden categories used in templates, such as the hidden categories used for the platforms in the {{Software page}} template.

Parameters

Parameter Description Example Result
No Parameters When multiple templates add this category, or you cannot discern what template adds this category.
{{Autocat}}

Automatic Category

Please do not manually add pages to this category
This category is automatically added by a template used on these pages.
If the page has been added to this category by a template, but does not show up, you can "Purge cache" this page.

{{{1-5}}} For listing a template that adds this category.
{{Autocat|Software page}}

Automatic Category

Please do not manually add pages to this category
This category is automatically added by the {{Software page}} template.
If the page has been added to this category by a template, but does not show up, you can "Purge cache" this page.

{{{nocat}}} Prevent any category from being added by this template.
{{Autocat|nocat=1}}
N/A

Category

Category:Automatic category