Template:Featured Article Candidate/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
imported>Caesar Schinas
Line 35: Line 35:


=== Example ===
=== Example ===
When used within the [[CZ:Article of the Week|Article of the Week]] table, the following code:
<pre>
<pre>
{{Candidate|Scuticaria}}
{{Candidate
| article    = Scuticaria
| supporters  =
| specialists = [[User:Daniel Mietchen|Daniel Mietchen]] 17:24, 4 June 2009 (UTC)
| score      = 3
}}
</pre>
</pre>
gives the result displayed below the line:<br>
gives the following result:
_________________________________<br>
{| class="wikitable" style="margin: 1em auto 1em auto;"
{{Candidate|Scuticaria}}
! style="width:50%" | Nominated article
! style="width:22%" | Supporters
! style="width:22%" | Specialist supporters
! Score
{{Candidate
| article    = Scuticaria
| supporters  =
| specialists = [[User:Daniel Mietchen|Daniel Mietchen]] 17:24, 4 June 2009 (UTC)
| score      = 3
}}
|}

Revision as of 04:23, 7 June 2009

This template helps to display candidate articles at Article of the Week or a New Draft of the Week.

Rationale

  • Proper formatting of the candidate articles is crucial for the {{Winner}} template to work effectively for transcluding content into the Welcome page
  • Using the same kind of formatting already at the candidate stage acts as a buffer, such that formatting problems can be worked out before the article is even near to be included into the Welcome page. This is also the main reason why the two templates are kept separate - technically, it would have been easy to combine them in one.

Usage

{{Candidate|Article name}}

in the "article" line of the table.

Pitfalls

  • {{Candidate}} 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

{{Winner}}

Example

When used within the Article of the Week table, the following code:

{{Candidate
| article     = Scuticaria
| supporters  = 
| specialists = [[User:Daniel Mietchen|Daniel Mietchen]] 17:24, 4 June 2009 (UTC)
| score       = 3
}}

gives the following result:

Nominated article Supporters Specialist supporters Score

Template:Candidate