Template:Protection templates: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
m 1 revision imported |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
| state = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}} | | state = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}} | ||
| title = {{c|Protection templates}} | | title = {{c|Protection templates}} | ||
| image<!--left--> = <!--[[File:Padlock.svg|40px|link=|alt=]]--> | | image<!--left--> = <!--[[File:Padlock.svg|40px|link=|alt=]]--> | ||
| tracking = no <!-- keep all the documented templates out of the hlist tracking category --> | | tracking = no <!-- keep all the documented templates out of the hlist tracking category --> | ||
| inner-style = table-format:fixed; | |||
| list1 = {{Aligned table | | list1 = <div style="overflow:auto">{{Aligned table | ||
|cols=5 |style=border:1px solid #aaa | |cols=5 |style=table-format:fixed;border:1px solid #aaa;margin:0 auto<!-- 0.2em-->; | ||
|colstyle=vertical-align:middle;padding-left:1.0em;<!--font-family:monospace;-->padding-right:1.0em; | |colstyle=vertical-align:middle;padding-left:1.0em;<!--font-family:monospace;-->padding-right:1.0em; | ||
|col1style=background:#ddf; | |||
<!--row#--> | <!--row#--> | ||
|row1header=on |row1style=background:none;padding-bottom:0.25em;border-bottom:1px solid #bbf; | |row1header=on |row1style=background:none;padding-bottom:0.25em;border-bottom:1px solid #bbf; | ||
|style1.1=background:none;border-bottom:1px solid #bbf; | |style1.1=background:none;border-bottom:1px solid #bbf; | ||
<!-- 1 --> | | <!-- 1 --> | | Edit | Move | [[Wikipedia:Pending changes|Pending changes]] | Upload | ||
<!-- 2 --> | Generic | <!-- 2 --> | Generic | {{tl|pp}} | {{tl|pp-move}} | {{tl|pp-pc}} | {{tl|pp-upload}} | ||
|row2style=background:whitesmoke; | |row2style=background:whitesmoke; | ||
<!-- 3 --> | [[Wikipedia:Biographies of living persons|BLP]] | {{tl|pp-blp}} | – | – | – | <!-- 3 --> | [[Wikipedia:Biographies of living persons|BLP]] | {{tl|pp-blp}} | – | – | – | ||
<!-- 4 --> | Dispute | <!-- 4 --> | Blocked user's talk page | {{tl|pp-usertalk}} | – | – | – | ||
|row10style=background:whitesmoke; | |||
<!-- 5 --> | Dispute | {{tl|pp-dispute}} | {{tl|pp-move-dispute}} | – | – | |||
<!-- 6 --> | [[Wikipedia:Protection_policy#Extended_confirmed_protection|Extended confirmed protection]] | {{tl|pp-extended}} | – | – | – | |||
|row4style=background:whitesmoke; | |row4style=background:whitesmoke; | ||
<!-- 7 --> | Indefinite | {{tl|pp-semi-indef}} | {{tl|pp-move-indef}} | – | – | |||
<!-- | <!-- 8 --> | [[Main Page]] image | {{tl|pp-main-page}} | – | – | – | ||
|row6style=background:whitesmoke; | |row6style=background:whitesmoke; | ||
<!-- | <!-- 9 --> | [[Wikipedia:Office actions|Office]] | {{tl|pp-office}} | – | – | – | ||
<!-- | <!-- 10--> | [[Wikipedia:Sockpuppetry|Sockpuppetry]] | {{tl|pp-sock}} | – | – | – | ||
|row8style=background:whitesmoke; | |row8style=background:whitesmoke; | ||
<!-- | <!-- 11 --> | Templates and images | {{tl|pp-template}} | – | – | {{tl|pp-upload}} | ||
<!-- | <!-- 12 --> | Vandalism | {{tl|pp-vandalism}} | {{tl|pp-move-vandalism}} | – | – | ||
|row12style=background:whitesmoke; | |row12style=background:whitesmoke; | ||
<!-- 13 --> | | <!-- 13 --> | Talk page | {{tl|Permanently protected}} {{tl|Temporarily protected}} | – | – | – | ||
}} | }}</div> | ||
| below = [[Module:Protection banner]] | | below = [[Module:Protection banner]] | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation | {{Documentation|content= | ||
{{Collapsible option |statename=optional |default=collapsed}} | {{Collapsible option |statename=optional |default=collapsed}} | ||
{{Sandbox other|| | |||
[[Category:Documentation see also templates]] | |||
[[Category:Wikipedia administration templates]] | [[Category:Wikipedia administration templates]] | ||
}}}}<!--(end Documentation)--> | |||
}}<!--(end Documentation)--> | |||
</noinclude> | </noinclude> |
Latest revision as of 20:35, 14 July 2024
Template documentation
Initial visibility
To set the template's initial visibility, the |state=
parameter may be used:
|state=collapsed
: {{Protection templates|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar|state=expanded
: {{Protection templates|state=expanded}} to show the template expanded, i.e., fully visible|state=autocollapse
: {{Protection templates|state=autocollapse}}- shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
- shows the template in its expanded state if there are no other collapsible items on the page
If the |state=
parameter is not set, the template's initial visibility is taken from the |default=
parameter in the template. For this template, that currently evaluates to collapsed
.