Difference between revisions of "NetHackWiki:Sandbox"

From NetHackWiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#switch: {{NAMESPACE}}
+
{{top icon
| {{ns:0}}
+
| imagename  = LinkFA-star.png
| {{ns:2}}
+
| wikilink    = NetHackWiki:Featured articles
| {{ns:3}}
+
| description = This is a featured article. Click here for more information.
| {{ns:10}}
+
| id         = featured-star
| #default = <div style="display:none; right:{{#expr: {{{number|{{{icon_nr|0}}}}}}*(2+{{{width|15}}})+10+{{{offset|{{{extra_offset|0}}}}}} }}px; {{{style|}}}" class="metadata topicon nopopups {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}}>[[File:{{{image|{{{imagename}}}}}}|{{{width|15}}}px|{{#if:{{{link|}}}{{{wikilink|}}}|link={{{link|{{{wikilink|}}}}}}}}|{{{text|{{{description}}}}}}]]</div>
 
 
}}
 
}}
 +
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Featured articles]]}}
 +
<noinclude>This template places a small star in the top right corner of an article to indicate that it is a [[NetHackWiki:Featured articles|featured article on NetHackWiki]]. It also adds the article to [[:Category:Featured articles]].
 +
 +
This template should be placed at the bottom of the article before defaultsort, categories and interwikis.
 +
 +
The code behind this template was taken from http://en.wikipedia.org/wiki/Template:Featured_article. It has been modified slightly to work with NetHackWiki.
 +
 +
[[NetHackWiki:Featured_articles]] explains how to feature an article.
 +
 +
[[Category:Top icon templates|{{PAGENAME}}]]
 +
[[Category:Featured article templates|{{PAGENAME}}]]</noinclude>

Revision as of 19:49, 10 May 2012


This template places a small star in the top right corner of an article to indicate that it is a featured article on NetHackWiki. It also adds the article to Category:Featured articles.

This template should be placed at the bottom of the article before defaultsort, categories and interwikis.

The code behind this template was taken from http://en.wikipedia.org/wiki/Template:Featured_article. It has been modified slightly to work with NetHackWiki.

NetHackWiki:Featured_articles explains how to feature an article.