Template:Featured Article/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
imported>Daniel Mietchen
Line 6: Line 6:


=== 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=100507169&oldid=100488668 more fancy].
*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].
#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.  
*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.  
#Carefully check for typos, spaces, curly brackets etc. — '''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.'''
*Carefully check for typos, spaces, curly brackets etc. — '''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 ===
=== Pitfalls ===

Revision as of 00:30, 7 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

  • Make sure that the formatting issues listed under "Pitfalls" below have been met (this is the case if {{Candidate}} worked properly}. Sample edits: simple, intermediate, more fancy.
  • Go to the "Winner" section of CZ:New Draft of the Week or CZ:Article of the Week and replace the article name in the call of the {{Winner}} template.
  • Carefully check for typos, spaces, curly brackets etc. — after saving, the content of the Winner article 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 ...

See also

{{Candidate}}

Example

{{Winner|Halobacterium NRC-1}}

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