Template:Pagenotice: Difference between revisions
Jump to navigation
Jump to search
(Minimize trailing text (should probably be disabled for DiSC cases).) |
(STUB: Also list pages in Category:Article stubs.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 28: | Line 28: | ||
-- 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) | ||
-->{{#switch:ISSUE|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | -->{{#switch:ISSUE|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/ISSUE|ISSUE]]</b>: {{#if:{{{text|}}}|{{{text}}}{{#set:Pagenotice_remark={{{text|}}}}}|{{error|Missing Issue text}}}}. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/ISSUE]]}} | ||
}}{{#switch:OTHER|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>(other)</b>: Lorem ipsum dolor sit amet, consectetur adipiscing elit. | }}{{#switch:OTHER|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>(other)</b>: Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/OTHER]]}} | ||
}}{{#switch:FOOD|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:FOOD|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/FOOD|FOOD]]</b>: (''this "FOOD" tag needs its Text adjusted'') | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/FOOD]]}} | ||
}}{{#switch:SAT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:SAT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/SAT|SAT]]</b>: World-11 Satiation data may not be accurate yet on this page. (''or might be missing'') | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/SAT]]}} | ||
}}{{#switch:OUT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#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 | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/OUT]]}} | ||
}}{{#switch:DISC|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:DISC|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/DISC|DISC]]</b>: <b>This page reflects a discontinued Haven & Hearth mechanic that has been removed/disabled.</b><i>{{#if:{{{disctext|}}}|<br>{{{disctext}}}}}</i> | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/DISC]]}} | ||
}}{{#switch:STUB|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:STUB|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/STUB|STUB]]</b>: Stub article(s) in need of expansion. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/STUB]][[Category:Article stubs]]}} | ||
}}{{#switch:ESLOT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:ESLOT|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/ESLOT|ESLOT]]</b>: Page-Infobox in need of Equipment-Slot verification. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/ESLOT]]}} | ||
}}{{#switch:STUB.LEG|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice | }}{{#switch:STUB.LEG|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}=*<b>[[:Category:Pagenotice/STUB.LEG|STUB.LEG]]</b>: Legacy Stub article(s) in need of expansion. | ||
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--nop-->|[[Category:Pagenotice/STUB.LEG]]}} | ||
}} | }} | ||
Line 82: | Line 82: | ||
- minor issue: single blank ano-parameter also fires Pagenotice box (but a empty one). | - minor issue: single blank ano-parameter also fires Pagenotice box (but a empty one). | ||
-- can't just check if first ano-parm is blank, other might not be. | -- can't just check if first ano-parm is blank, other might not be. | ||
- minor: debug/preview TAG cases also included in Pagenotice | - minor: debug/preview TAG cases also included in Pagenotice/TAG categories. (leaving it as such for the moment) | ||
- odd issue: first tag-case in code, if its the only used tag, triggers an additional blank line before the "disable" text part. (?:later) | - odd issue: first tag-case in code, if its the only used tag, triggers an additional blank line before the "disable" text part. (?:later) | ||
Latest revision as of 08:22, 6 June 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.
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.
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}}
"
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.
Remove the related TAG from the 'Pagenotice' call, or remove the whole 'Pagenotice' call.
(Misfit is a test case TAG)