Difference between revisions of "Template:Editnotices/Namespace/Category"

From blackwiki
Jump to navigation Jump to search
imported>Cenarium
(show only when it exists, non-existent case handled by MediaWiki:Newarticletext)
imported>Davidgothberg
(Using <tt> tags instead of {{nicecode}}, that template is deprecated since we have fixed the <tt> rendering using the same CSS code.)
Line 1: Line 1:
{{#ifexist:{{FULLPAGENAME}}|{{fmbox
+
{{#ifexist:{{FULLPAGENAME}}
| type  = editnotice
+
| {{fmbox
| id    = category-namespace-editnotice
+
  | type  = editnotice
| class = category-namespace-editnotice
+
  | id    = category-namespace-editnotice
| image = [[File:Ambox important.svg|40px]]
+
  | class = category-namespace-editnotice
| text =  
+
  | image = [[File:Ambox important.svg|40px]]
<div style="float:right; text-align:right; vertical-align:bottom;font-size:xx-small;"> [[Template:Editnotices/Namespace/Category|Hide&nbsp;this&nbsp;message]]</div>  
+
  | text =  
'''To list a page in this category, do not edit this category page.''' Instead, edit the page you want to list, adding {{nowrap|{{nicecode|<nowiki>[[Category:</nowiki>{{PAGENAME}}<nowiki>]]</nowiki>}}}} at the bottom. See [[Wikipedia:FAQ/Categorization|FAQ/Categorization]] for details.
+
<div style="float:right; text-align:right; vertical-align:bottom;font-size:xx-small;"> [[Template:Editnotices/Namespace/Category|Hide&nbsp;this&nbsp;message]] </div>  
}}}}<noinclude>
+
'''To list a page in this category, do not edit this category page.''' Instead, edit the page you want to list, adding {{nowrap|<tt><nowiki>[[Category:</nowiki>{{PAGENAME}}<nowiki>]]</nowiki></tt>}} at the bottom. See [[Wikipedia:FAQ/Categorization|FAQ/Categorization]] for details.
 +
  }}
 +
}}<noinclude>
 +
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 15:36, 8 January 2010

50px Template documentation[view] [edit] [history] [purge]

Usage

Hiding the message

This template is marked with the CSS id and CSS class name "category-namespace-editnotice", so that editors can apply their own CSS customisation if they wish, in particular to hide it (see WP:CSSHIDE for details). To hide the message, add:

#category-namespace-editnotice {
    display: none !important;
}

into your skin.css, which will apply the effect to your current skin. To apply it to all skins, add the code to your common.css instead. See Wikipedia:Skin for details.

See also