Template:Featured Article/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(started)
 
imported>Daniel Mietchen
(refined)
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 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]].


=== Usage ===
=== Rationale ===
Go to [[CZ:New Draft of the Week/current|CZ:New Draft of the Week/current]] or [[CZ:Article of the Week/current|CZ:Article of the Week/current]] and replace the article name in the call of the {{tl|Winner}} template.
*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 ===<onlyinclude>
#Go to [[CZ:New Draft of the Week/current|CZ:New Draft of the Week/current]] or [[CZ:Article of the Week/current|CZ:Article of the Week/current]] and replace the article name in the call of the {{tl|Winner}} template.  
#'''Use the preview option''' to see whether the formatting is OK.
#If you save the page, '''the content will be directly visible at the [[Main page|Welcome page]]. Please confirm that the formatting is OK there too.'''</onlyinclude>
 
=== Pitfalls ===
*{{tl|Winner}} only works as intended if the relevant portions of the article are enclosed in <code><nowiki>onlyinclude</nowiki></code> tags:
<pre>
<onlyinclude>
relevant article text here
</onlyinclude>
</pre>
 
*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>
 


=== Example ===
=== Example ===
<pre>
<pre>
{{Winner|Brain morphometry}}
{{Winner|Halobacterium NRC-1}}
</pre>
</pre>
gives the result displayed below the line:<br>
gives the result displayed below the line:<br>
_________________________________<br>
_________________________________<br>
{{Winner|Brain morphometry}}
{{Winner|Halobacterium NRC-1}}

Revision as of 20:58, 6 June 2009

This template helps to transclude articles chosen to be displayed as Article of the Week or a New Draft of the Week on the Welcome page.

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

  1. Go to CZ:New Draft of the Week/current or CZ:Article of the Week/current and replace the article name in the call of the {{Winner}} template.
  2. Use the preview option to see whether the formatting is OK.
  3. If you save the page, the content will be directly visible at the Welcome page. Please confirm that the formatting is OK there too.

Pitfalls

  • {{Winner}} only works as intended if the relevant portions of the article are enclosed in onlyinclude tags:
<onlyinclude>
relevant article text here
</onlyinclude>
  • This may cause problems with larger structures (e.g. infoboxes), and so it is advisable not to include them into the onlyinclude tags, or to enclose them with noinclude tags:
<noinclude>
your image, video or table here
</noinclude>
  • 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):
The '''[[precise article title|title or a variant thereof]]''' is


Example

{{Winner|Halobacterium NRC-1}}

gives the result displayed below the line:
_________________________________
Template:Winner