Template:Autocat: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (test)
No edit summary
 
(47 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{ModernTodo|Add multiple template functionality}}
{{ulf|en=1|eo=1|ru=1|vi=1|zh=1}}
{{Translate|Need translations for most popular languages. Should look similar to how {{tl|Stub}} does it.}}
 
{{Doc}}
{{Doc}}
<includeonly><onlyinclude>
 
<div style="background:#262626; border-radius:.5em; display:flow-root; margin:.4em 0; {{Dir|rtl=direction:rtl}}"><div style="display:flex; border:1px solid #E6361D; border-radius:.5em; overflow:hidden">
<includeonly>
<p style="background:rgba(230, 54, 29, .3); flex-basis:3em; align-items:center; display:inline-flex; margin:0; padding:.3em; justify-content:center; font-weight:bold">{{Autolang|Automatic Category|ru=Автоматичес&shy;кая&nbsp;категория}}</p>
 
<p style="background:rgba(230, 54, 29, .1); flex:1; align-items:center; margin:0; padding:.3em">'''Please <span style=color:#FFF>do not</span> manually add pages to this category.'''<br>
<onlyinclude>{{footer
This category is automatically added by {{#if:{{{1|}}}|the {{#if:{{{2|}}}|following templates: {{Code|&#123;&#123;{{{1|}}}}} {{Code|&#123;&#123;{{{2|}}}}} {{Code|&#123;&#123;{{{3|}}}}} {{Code|&#123;&#123;{{{4|}}}}} {{Code|&#123;&#123;{{{5|}}}}}|{{Code|&#123;&#123;[[{{{1|}}}]]&#125;&#125;}}template.}}|a template(s) used on the pages listed below.}}
| bgcolor = rgb(60, 60, 60)
</p>
| borderrgb = 82, 82, 82
</div></div></onlyinclude></includeonly>
| 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