Template:Pagenotice: Difference between revisions
m (Fix ESLOT tag-text.) |
(Pagenotice: +discontinued(DISC).) |
||
Line 3: | Line 3: | ||
>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}} | >{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}} | ||
|<div style="margin: 0px 10% 0px 10%; border: 1px solid #aaa; border-left: 10px solid {{#switch:{{{type|}}} | |<div style="margin: 0px 10% 0px 10%; border: 1px solid #aaa; border-left: 10px solid {{#switch:{{{type|}}} | ||
| delete | | delete = #b22222; | ||
| content | | content = #f28500; | ||
| style | | style = #f4c430; | ||
| move | | move = #9932cc; | ||
| protected | | protected = #bba; | ||
| #default | | discontinued = #f0f; | ||
| #default = #f28500; | |||
}} padding: 4px 8px; background:#efefef; min-height: 44px;"> | }} padding: 4px 8px; background:#efefef; min-height: 44px;"> | ||
<div style="position: absolute;">[[File:{{#switch:{{{type|}}} | <div style="position: absolute;">[[File:{{#switch:{{{type|}}} | ||
| delete | | delete = wiki-deletion.png | ||
| content | | content = wiki-content.png | ||
| style | | style = wiki-edit-clear.png | ||
| move | | move = wiki-move.png | ||
| protected | | protected = wiki-protection.png | ||
| #default | | discontinued = wiki-discontinued.png | ||
| #default = wiki-content.png | |||
}}|40px]]</div> | }}|40px]]</div> | ||
<div style="border: none; padding: 2px 2px 2px 62px;"> | <div style="border: none; padding: 2px 2px 2px 62px;"> | ||
Line 23: | Line 25: | ||
Supported messages part: begin. | Supported messages part: begin. | ||
- Number of needed {{{N}}} cases depends on max used/needed input-cases at/per calling pages. | - Number of needed {{{N}}} cases depends on max used/needed input-cases at/per calling pages. | ||
-- ie: Number of available TAGS not directly limited by this. (Number of TAGS per call is) | -- ie: Number of available TAGS is not directly limited by this. (Number of TAGS per call is) | ||
-- nts: splitting this part of to an other template would be nice ... but parm passing seems a potential headache. (maybe later) | -- nts: splitting this part of to an other template would be nice ... but parm passing seems a potential headache. (maybe later) | ||
Line 40: | Line 42: | ||
}}{{#switch:OUT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice-OUT|OUT]]</b>: The data on this page is probably/considered outdated. See the page-history for more detail. | }}{{#switch:OUT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice-OUT|OUT]]</b>: The data on this page is probably/considered outdated. See the page-history for more detail. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice-OUT]]}} | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice-OUT]]}} | ||
}}{{#switch:DISC|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice-DISC|DISC]]</b>: This page reflects a discontinued Haven & Hearth mechanic that has been removed/disabled. | |||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice-DISC]]}} | |||
}}{{#switch:STUB|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice-STUB|STUB]]</b>: Stub article(s) in need of expansion. | }}{{#switch:STUB|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice-STUB|STUB]]</b>: Stub article(s) in need of expansion. | ||
Line 59: | Line 64: | ||
Detect and report usage with faulty [[Template:Ambox#Article message box types|"type"]] parameter: | Detect and report usage with faulty [[Template:Ambox#Article message box types|"type"]] parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| | | = <!--No type fed, is also valid input --> | ||
| delete | | delete = | ||
| content | | content = | ||
| style | | style = | ||
| move | | move = | ||
| protected | | protected = | ||
| notice | | discontinued = | ||
| #default | | notice = | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wrong syntax]] | |||
}} | }} | ||
}}</includeonly | }}</includeonly | ||
Line 101: | Line 107: | ||
Available cases:2) "<code><nowiki>{{Pagenotice|STUB|STUB.LEG|ISSUE|text=Issue description}}</nowiki></code>"{{ {{PAGENAME}}|STUB|STUB.LEG|ISSUE|text=Issue description}} | Available cases:2) "<code><nowiki>{{Pagenotice|STUB|DISC|STUB.LEG|ISSUE|text=Issue description}}</nowiki></code>"{{ {{PAGENAME}}|STUB|DISC|STUB.LEG|ISSUE|text=Issue description}} | ||
Empty case "<code><nowiki>Foo {{Pagenotice}} Bar</nowiki></code>" or "<code><nowiki>Foo {{Pagenotice|}} Bar</nowiki></code>" Foo {{ {{PAGENAME}}}} Bar | Empty case test "<code><nowiki>Foo {{Pagenotice}} Bar</nowiki></code>" or "<code><nowiki>Foo {{Pagenotice|}} Bar</nowiki></code>" Foo {{ {{PAGENAME}}}} Bar | ||
Misfit case "<code><nowiki>{{Pagenotice|misfit}}</nowiki></code>"{{ {{PAGENAME}}|misfit}}(''Misfit is a test case TAG'') | Misfit case test "<code><nowiki>{{Pagenotice|misfit}}</nowiki></code>"{{ {{PAGENAME}}|misfit}}(''Misfit is a test case TAG'') | ||
</noinclude> | </noinclude> |
Revision as of 11:07, 26 May 2023
- Pagenotice Talk
- For code related stuff, use the related template talk page.
- For Page-notice usage/TAG ideas/suggestions/etc, use the related Page-notice category talk page.
- Features
- Current maximum number of inputs on Pagenotice template call: 5
- DEBUG/PREVIEWs
Available cases:1) "{{Pagenotice|ESLOT|OUT|SAT|OTHER|ISSUE}}
"
- ISSUE: Missing Issue text.
- (other): Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- SAT: World-11 Satiation data may not be accurate yet on this page. (or might be missing)
- OUT: The data on this page is probably/considered outdated. See the page-history for more detail.
- ESLOT: Page-Infobox in need of Equipment-Slot verification.
To disable a particular Tag-message, after checking/fixing the related issue.
Remove the related TAG from the 'Pagenotice' call, or remove the whole 'Pagenotice' call.
Available cases:2) "{{Pagenotice|STUB|DISC|STUB.LEG|ISSUE|text=Issue description}}
"
- ISSUE: Issue description.
- DISC: This page reflects a discontinued Haven & Hearth mechanic that has been removed/disabled.
- STUB: Stub article(s) in need of expansion.
- STUB.LEG: Legacy Stub article(s) in need of expansion.
To disable a particular Tag-message, after checking/fixing the related issue.
Remove the related TAG from the 'Pagenotice' call, or remove the whole 'Pagenotice' call.
Empty case test "Foo {{Pagenotice}} Bar
" or "Foo {{Pagenotice|}} Bar
" Foo Bar
Misfit case test "{{Pagenotice|misfit}}
"
Page Notices:
To disable a particular Tag-message, after checking/fixing the related issue.
Remove the related TAG from the 'Pagenotice' call, or remove the whole 'Pagenotice' call.
(Misfit is a test case TAG)