Template:Featured Article/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
imported>Caesar Schinas
No edit summary
Line 1: Line 1:
This template helps to transclude articles chosen to be displayed as [[CZ:Article of the Week|Article of the Week]] or a [[CZ:New Draft of the Week|New Draft of the Week]] on the [[Main page|Welcome page]].
This template is for displaying the [[CZ:Article of the Week|Article of the Week]] and [[CZ:New Draft of the Week|New Draft of the Week]] on the [[Welcome to Citizendium|home page]].<br />
 
Prior to an article being featured, it will be shown in the list of candidates using {{tl|candidate}}.
=== Rationale ===
*Updating the Welcome page with Articles and New Drafts of the Week has been tedious and error-prone so far. This template should help in keeping things simple.
*During the time an article (or its intro) is displayed on the Welcome page, the relevant text portions existed there and in the article itself, so any updates had to be synchronized. This template keeps the text in one place, that of the article, and transcludes the relevant text portions from there.


=== Usage ===
=== Usage ===
*Make sure that the formatting issues listed under "Pitfalls" below have been met (this is the case if {{tl|Candidate}} worked properly}. Sample edits: [http://en.citizendium.org/wiki?title=Ancient_Celtic_music%2FDraft&diff=100507158&oldid=100488668 simple], [http://en.citizendium.org/wiki?title=Milpa_agriculture&diff=100507098&oldid=100506598 intermediate], [http://en.citizendium.org/wiki?title=Ancient_Celtic_music%2FDraft&diff=100507175&oldid=100488668 more fancy].
Certain changes ''must'' be made to candidate articles before they can be featured.<br />
*Go to the "Winner" section of [[CZ:New Draft of the Week|CZ:New Draft of the Week]] or [[CZ:Article of the Week|CZ:Article of the Week]] and replace the article name in the call of the {{tl|Winner}} template.
These changes should be made well before an article is featured, and are listed on the {{tl|candidate}} page.
*Carefully check for typos, spaces, curly brackets etc. &mdash; '''after saving, the content of the Winner article will be directly visible at the [[Main page|Welcome page]]. Please confirm that the formatting is OK there too.'''
 
=== Pitfalls ===
*{{tl|Winner}} only works as intended if the relevant portions of the article are enclosed in <code><nowiki>onlyinclude</nowiki></code> tags:
<code><nowiki></nowiki><<nowiki></nowiki>onlyinclude<nowiki></nowiki>>
relevant article text here
<<nowiki></nowiki>/onlyinclude<nowiki></nowiki>><nowiki></nowiki></code>
 
*This may cause problems with larger structures (e.g. infoboxes), and so it is advisable not to include them into the <code><nowiki>onlyinclude</nowiki></code> tags, or to enclose them with <code><nowiki>noinclude</nowiki></code> tags:
<pre>
<noinclude>
your image, video or table here
</noinclude>
</pre>
 
*In order to have the first mention of the title in the text clickable, it should be defined as a wikilink (even though this has not been common practice so far):
<pre>
The '''[[precise article title|title or a variant thereof]]''' is ...
</pre>


=== See also ===
Once a candidate article becomes a wining featured article, the code below should be placed in the '''Current Winner''' section of the [[CZ:Article of the Week|Article of the Week]] or [[CZ:New Draft of the Week|New Draft of the Week]] page:<br />
{{tl|Candidate}}
<code><only<nowiki>include>{{Winner|Article Name}}</only</nowiki>include></code>


=== Example ===
=== Example ===
<pre>
The following code gives the result displayed below the line:<br />
{{Winner|Halobacterium NRC-1}}
<code><nowiki>{{Winner|Halobacterium NRC-1}}</nowiki></code>
</pre>
----
gives the result displayed below the line:<br>
_________________________________<br>
{{Winner|Halobacterium NRC-1}}
{{Winner|Halobacterium NRC-1}}

Revision as of 04:17, 7 June 2009

This template is for displaying the Article of the Week and New Draft of the Week on the home page.
Prior to an article being featured, it will be shown in the list of candidates using {{candidate}}.

Usage

Certain changes must be made to candidate articles before they can be featured.
These changes should be made well before an article is featured, and are listed on the {{candidate}} page.

Once a candidate article becomes a wining featured article, the code below should be placed in the Current Winner section of the Article of the Week or New Draft of the Week page:
<onlyinclude>{{Winner|Article Name}}</onlyinclude>

Example

The following code gives the result displayed below the line:
{{Winner|Halobacterium NRC-1}}


Template:Winner