User:Locke/Sandbox: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="display: none;"><css> | <div style="display: none;"><css> | ||
. | .ambox { | ||
margin: auto; | margin: auto; | ||
border: 1px solid #5a7db5; | border: 1px solid #5a7db5; | ||
Line 12: | Line 8: | ||
background-color: #f6f6f6; | background-color: #f6f6f6; | ||
} | } | ||
. | .ambox-image { width: 50px; } | ||
.ambox-small { width: 50%; } | |||
} | .ambox-small .ambox-image { display: none; } | ||
. | .ambox-content { border-left: 10px solid orange; } | ||
.ambox-style { border-left: 10px solid yellow; } | |||
} | .ambox-delete { border-left: 10px solid red; } | ||
.ambox-move { border-left: 10px solid green; } | |||
.ambox-protection { border-left: 10px solid gray; } | |||
</css></div> | </css></div> | ||
Line 24: | Line 22: | ||
{{#vardefine: contentImage | Map-SS-Icon.png }} | {{#vardefine: contentImage | Map-SS-Icon.png }} | ||
{{#vardefine: styleImage | Map-SS-Icon.png }} | {{#vardefine: styleImage | Map-SS-Icon.png }} | ||
{{#vardefine: deleteImage | | {{#vardefine: deleteImage | SSBomb.png }} | ||
{{#vardefine: moveImage | Map-SS-Icon.png }} | {{#vardefine: moveImage | Map-SS-Icon.png }} | ||
{{#vardefine: protectionImage | Map-SS-Icon.png }} | {{#vardefine: protectionImage | Map-SS-Icon.png }} | ||
{| class=" | <onlyinclude>{| class="ambox {{#ifeq: {{{1|}}}|small|ambox-small}} ambox-{{#switch: {{{type|}}} | ||
| class=" | | content = content | style = style | ||
| delete = delete | move = move | |||
| protection = protection | notice | #default = notice | |||
}}" | |||
| class="ambox-image" | {{#if:{{{image|}}} | |||
| {{{image}}} | | {{{image}}} | ||
| [[File:{{#switch: {{{type|}}} | | [[File:{{#switch: {{{type|}}} | ||
Line 37: | Line 39: | ||
| move = {{#var: moveImage}} | | move = {{#var: moveImage}} | ||
| protection = {{#var: protectionImage}} | | protection = {{#var: protectionImage}} | ||
| notice|#default = {{#var: noticeImage}} | | notice | #default = {{#var: noticeImage}} | ||
}}|40x40px|link=|alt=]] | }}|40x40px|link=|alt=]] | ||
}} | }} | ||
| {{{issue}}} {{{fix}}} | | {{{issue|{{{note|}}}}}} {{{fix|{{{desc|}}}}}} | ||
|} | |}<!-- TODO category --></onlyinclude> | ||
==Purpose== | |||
{{TODO|copy/revise ambox description}} | |||
==Usage== | |||
{{Usage/Block|type|image|issue|fix|note|desc}} | |||
{{Usage/Param|type|Which category the ambox falls under. The available types are listed below.}} | |||
{{Usage/Param|image|An image to override the default image for that type.|optional|depends on type}} | |||
{{Usage/Param|issue|For maintenance types, use "issue" to briefly describe the problem.}} | |||
{{Usage/Param|fix|For maintenance types, use "fix" to explain how to fix the problem.}} | |||
{{Usage/Param|note|For information types, use "note" to display information about the article or section.}} | |||
{{Usage/Param|desc|For information types, use "desc" to describe that note.}} | |||
For use in a section rather than at the top of an article, pass "small" as an anonymous parameter. | |||
{{Clear}} | |||
===Ambox Types=== | |||
{{User:Locke/Sandbox|type=delete|issue=type=<u>delete</u>,|fix=used for articles being considered for deletion.}} | |||
{{User:Locke/Sandbox|type=content|issue=type=<u>content</u>,|fix=used for articles or sections with content problems.}} | |||
{{User:Locke/Sandbox|type=style|issue=type=<u>style</u>,|fix=used for articles or sections with style problems.}} | |||
{{User:Locke/Sandbox|type=move|issue=type=<u>move</u>,|fix=used for articles being considered for moves, merges, etc.}} | |||
{{User:Locke/Sandbox|type=notice|note=type=<u>notice</u>,|desc=used to display information about the article or section.}} | |||
{{User:Locke/Sandbox|type=protection|note=type=<u>protection</u>,|desc=used to display protection information.}} | |||
Current uses: | Current uses: | ||
*Maintenance Types (temporary) | *Maintenance Types (temporary) | ||
**content | **content | ||
***Stub - header only | |||
***Focus - header or section | ***Focus - header or section | ||
**style | **style |
Revision as of 13:18, October 30, 2012
Purpose
TODO: copy/revise ambox description
Care to do so?
Usage
{{Locke/Sandbox | type = | image = | issue = | fix = | note = | desc = }}
- type — Which category the ambox falls under. The available types are listed below.
- image — An image to override the default image for that type. (Optional. Default: depends on type)
- issue — For maintenance types, use "issue" to briefly describe the problem.
- fix — For maintenance types, use "fix" to explain how to fix the problem.
- note — For information types, use "note" to display information about the article or section.
- desc — For information types, use "desc" to describe that note.
For use in a section rather than at the top of an article, pass "small" as an anonymous parameter.
Ambox Types
type=delete, used for articles being considered for deletion. |
type=content, used for articles or sections with content problems. |
type=style, used for articles or sections with style problems. |
type=move, used for articles being considered for moves, merges, etc. |
type=notice, used to display information about the article or section. |
type=protection, used to display protection information. |
Current uses:
- Maintenance Types (temporary)
- content
- Stub - header only
- Focus - header or section
- style
- Perspective - header or section
- delete - header only
- move - header or section
- content
- Information Types (permanent)
- notice
- Spoiler - header or section
- Theory - header (not likely) or section
- Non-Canon - header or section
- Unreleased - header or section
- Beta - header or section
- protection - header only
- notice