Template:MessageBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 43: | Line 43: | ||
</div> | </div> | ||
<div style="width: 100%;">{{ | <div style="width: 100%;">{{ | ||
#if: {{{title|}}} | |||
| <div style="font-weight: bold; display: inline">{{{title}}}</div> {{ | |||
#if: {{{discuss|}}}{{{discussPage|}}}{{{discussAnchor|}}} | |||
| <sup>[<nowiki/>{{DirectLink|{{ | |||
#if: {{{discussPage|}}} | |||
| {{{discussPage}}} | |||
| {{TALKPAGENAME}} | |||
}}{{ | |||
#if: {{{discussAnchor|}}} | |||
| #{{{discussAnchor}}} | |||
}}|discuss}}</sup> | |||
}} | |||
}}{{ | |||
#if: {{{linkshere|}}} | |||
| <sup>{{#if:{{{discuss|}}}|, <nowiki/>|[<nowiki/>}}[[Special:WhatLinksHere/{{FULLPAGENAME}}|links]]{{#ifeq:{{NAMESPACENUMBER}}|6|, [[Special:GlobalUsage/{{PAGENAME}}|global usage]]}}<nowiki/>]</sup> | |||
| {{ | |||
#if:{{{discuss|}}} | |||
|<sup>]</sup> | |||
}} | |||
}} | |||
{{ | {{ | ||
#if: {{{text|}}} | #if: {{{text|}}} | ||
| Line 54: | Line 71: | ||
=== Documentation === | === Documentation === | ||
Examples | ==== Parameters ==== | ||
* '''discuss''' - Adds a [discuss] button that links to the talk page | |||
* '''discussPage''' - Custom talk page link for the discuss button | |||
* '''discussAnchor''' - Specific section anchor for the discuss link | |||
* '''linkshere''' - Adds a [links] button to Special:WhatLinksHere | |||
==== Examples ==== | |||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
{{MessageBox | {{MessageBox | ||
| type = minor | | type = minor | ||
| title = Minor | | title = Minor edit notice | ||
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | | text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | ||
}} | }} | ||
| Line 64: | Line 87: | ||
{{MessageBox | {{MessageBox | ||
| type = minor | | type = minor | ||
| title = Minor | | title = Minor edit notice | ||
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | | text = This page contains minor formatting improvements and spelling corrections. No major content changes were made. | ||
}} | }} | ||
| Line 101: | Line 124: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
{{MessageBox | {{MessageBox | ||
| type = major | |||
| subtle = 1 | |||
|| title = Major | | discuss = 1 | ||
| title = Major content issue | |||
| text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions. | |||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{MessageBox | {{MessageBox | ||
| type = major | |||
| subtle = 1 | |||
|| title = Major | | discuss = 1 | ||
| title = Major content issue | |||
| text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions. | |||
}} | }} | ||
| Line 124: | Line 150: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
{{MessageBox | {{MessageBox | ||
| type = notice | || type = notice | ||
| mini = 1 | || mini = 1 | ||
| icon = 8 | || icon = 8 | ||
| bgcol = rgba(255, 235, 59, 0.1) | || discuss = 1 | ||
| linecol = rgba(255, 235, 59, 0.3) | || bgcol = rgba(255, 235, 59, 0.1) | ||
| css = border-radius: 8px; font-style: italic; | || linecol = rgba(255, 235, 59, 0.3) | ||
| text = Notice: The wiki will be temporarily unavailable during the server migration next weekend. | || css = border-radius: 8px; font-style: italic; | ||
|| text = Notice: The wiki will be temporarily unavailable during the server migration next weekend. | |||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 137: | Line 164: | ||
| mini = 1 | | mini = 1 | ||
| icon = 8 | | icon = 8 | ||
| discuss = 1 | |||
| bgcol = rgba(255, 235, 59, 0.1) | | bgcol = rgba(255, 235, 59, 0.1) | ||
| linecol = rgba(255, 235, 59, 0.3) | | linecol = rgba(255, 235, 59, 0.3) | ||
| Line 162: | Line 190: | ||
| css = box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2); | | css = box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2); | ||
| text = Content issue detected: This article may contain outdated information. Please verify with latest game version. | | text = Content issue detected: This article may contain outdated information. Please verify with latest game version. | ||
}} | |||
--- | |||
<syntaxhighlight lang="wikitext"> | |||
{{MessageBox | |||
| type = notice | |||
| title = Template Usage | |||
| linkshere = 1 | |||
| text = This template is used in several places across the wiki. | |||
}} | |||
</syntaxhighlight> | |||
{{MessageBox | |||
| type = notice | |||
| title = Template Usage | |||
| linkshere = 1 | |||
| text = This template is used in several places across the wiki. | |||
}} | }} | ||
Revision as of 16:04, 15 January 2026
Documentation
Parameters
- discuss - Adds a [discuss] button that links to the talk page
- discussPage - Custom talk page link for the discuss button
- discussAnchor - Specific section anchor for the discuss link
- linkshere - Adds a [links] button to Special:WhatLinksHere
Examples
{{MessageBox
| type = minor
| title = Minor edit notice
| text = This page contains minor formatting improvements and spelling corrections. No major content changes were made.
}}
Minor edit notice
This page contains minor formatting improvements and spelling corrections. No major content changes were made.
---
{{MessageBox
| type = delete
| mini = 1
| icon = 8
| text = This page has been nominated for deletion due to lack of content. Please review and vote.
}}
This page has been nominated for deletion due to lack of content. Please review and vote.
---
{{MessageBox
| type = info
| small = 1
| icon = 8
| text = Important information: Server maintenance scheduled for tonight from 2 AM to 4 AM UTC.
}}
Important information: Server maintenance scheduled for tonight from 2 AM to 4 AM UTC.
---
{{MessageBox
| type = major
| subtle = 1
| discuss = 1
| title = Major content issue
| text = This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions.
}}
Major content issue
[discuss]
This article contains significant problems including outdated information, broken links, and inaccurate gameplay mechanics descriptions.
---
{{MessageBox
|| type = notice
|| mini = 1
|| icon = 8
|| discuss = 1
|| bgcol = rgba(255, 235, 59, 0.1)
|| linecol = rgba(255, 235, 59, 0.3)
|| css = border-radius: 8px; font-style: italic;
|| text = Notice: The wiki will be temporarily unavailable during the server migration next weekend.
}}
]
Notice: The wiki will be temporarily unavailable during the server migration next weekend.
---
{{MessageBox
| type = issue
| small = 1
| icon = 8
| bgcol = rgba(255, 87, 34, 0.1)
| linecol = rgba(255, 87, 34, 0.3)
| css = box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
| text = Content issue detected: This article may contain outdated information. Please verify with latest game version.
}}
Content issue detected: This article may contain outdated information. Please verify with latest game version.
---
{{MessageBox
| type = notice
| title = Template Usage
| linkshere = 1
| text = This template is used in several places across the wiki.
}}