Difference between revisions of "Template:Fa"

From Conservapedia
Jump to navigation Jump to search
(Modify example)
(Add "hide" field, reword documentation, fix examples)
Line 1: Line 1:
−
{| {{#if:{{{dates|}}}|class="collapsible collapsed" width="75%"}}
+
{| {{#if:{{{dates|}}}|class="collapsible collapsed" width="75%"}}{{#if:{{{past|}}}|class="collapsible collapsed" width="75%"}}
 
! style="text-align:left"|
 
! style="text-align:left"|
 
*[[{{{1}}}]] {{#if:{{{dates|}}}|<span style="font-weight:normal">({{{dates}}})</span>}}
 
*[[{{{1}}}]] {{#if:{{{dates|}}}|<span style="font-weight:normal">({{{dates}}})</span>}}
Line 9: Line 9:
 
{{parms|
 
{{parms|
 
  {{parm|1|Article name|yes|Do not link: is linked automatically}}
 
  {{parm|1|Article name|yes|Do not link: is linked automatically}}
−
  {{parm|dates|Dates of featuring|no|See note A}}
+
{{parm|hide|Hide the comments|no|See note A}}
 +
  {{parm|dates|Show dates of featuring|no|Also hides the comments.  See note A}}
 
  {{parm|2|Comments|no}}
 
  {{parm|2|Comments|no}}
 
}}
 
}}
 
This template is intended for use only on the [[Conservapedia:Featured articles|Featured articles]] page.  Each suggested article should be entered using this template.  Comments for or against featuring the article should be added within this template, each on a separate line and each preceded by a colon and asterisk.
 
This template is intended for use only on the [[Conservapedia:Featured articles|Featured articles]] page.  Each suggested article should be entered using this template.  Comments for or against featuring the article should be added within this template, each on a separate line and each preceded by a colon and asterisk.
  
−
Once the article has been (or is currently being) featured, the ''dates'' field should be added.  This will also cause the template to hide the comments.
+
The template has an option to hide the comments.  When hidden, however, they can be display by the user clicking on the "show" button (and re-hidden by clicking the "hide" button).  This option is enabled by setting either the ''dates'' or ''hide'' fields.
  
−
'''Note A''':  When the ''dates'' field is supplied, the comments are hidden, but may be displayed by clicking the "show" button.
+
Once dates for featuring the article have been assigned, the ''dates'' field should be added.
 +
Alternatively, if the article is rejected for Featured status, the ''hide'' field should be added.
 +
 
 +
'''Note A''':  When the ''dates'' field or the ''hide'' field is set to a non-blank value, the comments are hidden, but may be displayed by clicking the "show" button.  The ''dates'' field should be set to the dates that the article will be, is, or was featured.
  
 
Example:
 
Example:
−
  <nowiki>{{fa|Main page|
+
  <nowiki>{{fa|Santa Claus|
−
:* Agree ~~~~</nowiki>
+
:* Agree ~~~~</nowiki>
 
  }}
 
  }}
  
 
Example after featuring:
 
Example after featuring:
−
  <nowiki>{{fa|Main page|dates=1st to 24th December 2008|
+
  <nowiki>{{fa|Santa Claus|dates=1st to 24th December 2008|
−
:* Agree. ~~~~</nowiki>
+
:* Agree. ~~~~</nowiki>
−
  :* Disagree: Santa didn't write a good enough article about himself. [[User:Philip J. Rayment|Philip J. Rayment]] 10:38, 21 August 2008 (EDT)
+
  :* Disagree: Santa didn't write a good enough article about himself. <nowiki>~~~~</nowiki>
 
  }}
 
  }}
 
This example produces the following:
 
This example produces the following:

Revision as of 00:57, September 13, 2008

  • [[{{{1}}}]]

Template: Fa
Use on Featured articles page
Use for List entry
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
1 Article name yes Do not link: is linked automatically
hide Hide the comments no See note A
dates Show dates of featuring no Also hides the comments. See note A
2 Comments no

This template is intended for use only on the Featured articles page. Each suggested article should be entered using this template. Comments for or against featuring the article should be added within this template, each on a separate line and each preceded by a colon and asterisk.

The template has an option to hide the comments. When hidden, however, they can be display by the user clicking on the "show" button (and re-hidden by clicking the "hide" button). This option is enabled by setting either the dates or hide fields.

Once dates for featuring the article have been assigned, the dates field should be added. Alternatively, if the article is rejected for Featured status, the hide field should be added.

Note A: When the dates field or the hide field is set to a non-blank value, the comments are hidden, but may be displayed by clicking the "show" button. The dates field should be set to the dates that the article will be, is, or was featured.

Example:

{{fa|Santa Claus|
:* Agree ~~~~
}}

Example after featuring:

{{fa|Santa Claus|dates=1st to 24th December 2008|
:* Agree. ~~~~
:* Disagree: Santa didn't write a good enough article about himself. ~~~~
}}

This example produces the following:

NB: Don't overlook the pipe character (|) after the dates field.