Template:Page warning: Difference between revisions
B4ttl3m4st3r (talk | contribs) (Created page with "<noinclude> This is the "Page warning" template. It should be transcluded in the following format: <pre> {{Page warning |Message= }} </pre> </noinclude> <div style="border: solid #550 2px;background-color:#FF5;padding:8px;border-radius:4px;"> https://cdn.fhxrestoration.com/common/interface/icons/quest_done.gif '''Warning:''' There is a problem with this page. {{{Message| }}} </div>") |
No edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Page warning/styles.css" /> | |||
<div class="template_pageWarning"> | |||
<div class="icon">[[File:Quest done icon.gif|link=]]</div> | |||
<div class="content"> | |||
<div class="header">Warning:</div> | |||
<div class="message">{{#if:{{{message|}}}|{{#switch:{{lc:{{{message}}}}} | |||
|draft=This page is in draft.[[Category:Pages with a page warning]] | |||
|delete=This page can be deleted.[[Category:Pages marked for deletion]] | |||
|#default={{{message}}}[[Category:Pages with a page warning]] | |||
}}|This page is in draft.[[Category:Pages with a page warning]]}}</div></div></div></includeonly> | |||
<noinclude> | <noinclude> | ||
This is the " | This is the "{{PAGENAME}}" template. It should be transcluded in the following format: | ||
It should be transcluded in the following format: | |||
<pre> | <pre> | ||
{{Page warning | {{Page warning | ||
| | |message= | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | |||
;message : Optional. Provide message to display in warning box. Preset messages include: | |||
:: draft | |||
:: delete | |||
:: Otherwise, displays chosen message if provided. Defaults to "draft" if left blank. | |||
== Example == | |||
<pre> | |||
{{Page warning|message={{Lorem}}}} | |||
</pre> | |||
{{Page warning|message={{Lorem}}}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20:50, 11 October 2024
This is the "Page warning" template. It should be transcluded in the following format:
{{Page warning |message= }}
Parameters
- message
- Optional. Provide message to display in warning box. Preset messages include:
- draft
- delete
- Otherwise, displays chosen message if provided. Defaults to "draft" if left blank.
Example
{{Page warning|message={{Lorem}}}}
Warning: