Difference between revisions of "Template:Featured"

From Hackerspace ACKspace
Jump to: navigation, search
(grr)
(added categorical link (hopefully, this doesn't break stuff))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#set:Featured=true}}[[Category:featured]]</includeonly><noinclude>
{{#set:Featured=true}}
 
[[Category:featured]]
 
</includeonly>
 
<noinclude>
 
 
Use this template to mark a page featured, so it will be displayed on the front page. To make an article featured, add the following to the top of that page:
 
Use this template to mark a page featured, so it will be displayed on the front page. To make an article featured, add the following to the top of that page:
 
<pre>&lt;noinclude&gt;{{featured}}&lt;/noinclude&gt;</pre>
 
<pre>&lt;noinclude&gt;{{featured}}&lt;/noinclude&gt;</pre>
Line 9: Line 5:
  
 
After you add the tag at the top of the page, the page will be added to the front page and the following banner will appear inside the article:
 
After you add the tag at the top of the page, the page will be added to the front page and the following banner will appear inside the article:
</noinclude>
+
</noinclude>{{InfoBox
{{InfoBox
 
 
|Title=Featured article
 
|Title=Featured article
|Text={{PAGENAME}} had been flagged as a featured article and will automatically appear on the [[Main Page]].
+
|Text={{PAGENAME}} had been flagged as a [[:Category:Featured|featured article]] and will automatically appear on the [[Main Page]].
 
|Clear=both
 
|Clear=both
 
|Background=#f7fff7
 
|Background=#f7fff7
 
}}
 
}}

Latest revision as of 15:24, 18 November 2014

Use this template to mark a page featured, so it will be displayed on the front page. To make an article featured, add the following to the top of that page:

<noinclude>{{featured}}</noinclude>

including the noinclude tag, so the Main Page will not recursively include itself.

After you add the tag at the top of the page, the page will be added to the front page and the following banner will appear inside the article:

Featured article
Featured had been flagged as a featured article and will automatically appear on the Main Page.