Please forgive the slight inconvenience in creating a new account. Due to juvenile delinquents spamming garbage to the site, we had to install a "Captcha", which can differentiate a spam bot from a human. Once you open your account, confirm it by returning the email, and identifying yourself, we will give you edit privileges. Just request them by leaving a message at click here.

Template:Cite-require-all

From English WikiChiro
Jump to: navigation, search

This inner-template checks for proper use of template parameters that are required, displays errors, and optionally categorizes the article for repair.

If the user of the calling template omits values for any of the parmn parameters, the text You must specify namen when using template. is displayed on the page. If errcat=yes is specified (or defaulted to) and the page is a main-space article, the page is also added to the error category Category:Articles with broken citations.

Ironically, this template requires three parameters of its own (count, name2, and template), but does not check for them and categorize their mis-use, although it does at least display "PARAMETERNAME UNSPECIFIED" in their place if needed.

Full syntax

{{Cite-require-all
  |count=
  |name1=
  |parm1=
  |name2=
  |parm2=
  |name3=
  |parm3=
  |name4=
  |parm4=
  |name5=
  |parm5=
  |name6=
  |parm6=
  |name7=
  |parm7=
  |name8=
  |parm8=
  |name9=
  |parm9=
  |template=
  |errcat=yes or no
}}

Minimum syntax

{{Cite-require-all
  |count=
  |name1=
  |parm1=
  |template=
}}

Example

{{
  cite-require-all
  |count=2
  |name1=url |parm1={{{url|}}}
  |name2=title |parm2={{{title|}}}
  |template=Citation
}}

Parameters

  • errcat — Should the page be added to the error category Category:Articles with broken citations? Defaults to errcat=yes. Only main-space pages (i.e., articles) will be categorized – errcat=yes is ignored for all other spaces (e.g., "WP:" pages, talk pages, user pages, etc.).
  • name1 through name9 — The name of the parameter to check, as users of the calling template specify it. For example, "url" for {{cite web}}.
  • parm1 through parm9 — The value of the parameter to check.
  • template — The name of the calling template as users specify it.