Designed to quickly and consistently cite paragraphs from the Catechism of the Catholic Church, using subset of "cite:web" format. Must be enclosed between reference tags or in a reference template.

<ref>{{CCC|paragraph_number|date_accessed}}</ref>[1]

{{refn|{{CCC|paragraph_number|date_accessed|long=on}}|}}[2]

  1. lookup%5d%5d.htm "CCC, paragraph_number". Vatican.va. Nakuha noong 19 Abril 2024. {{cite web}}: Check |url= value (tulong)
  2. lookup%5d%5d.htm "Paragraph paragraph_number". Catechism of the Catholic Church, Second Edition. Libreria Editrice Vaticana. 2012. Nakuha noong 19 Abril 2024. {{cite web}}: Check |url= value (tulong)

Uses a table to automatically link to the specified paragraph. Can be used to set a simple range of paragraphs. When an invalid paragraph number is selected, the template returns the table of contents for the catechism.

This template defaultly provides an abbreviated citation (CCC) when used, however the long form (Catechism of the Catholic Church) may optionally be set. Manually inputted dates defaultly rendered in "dmy" format.

Note: While generally reliable, there is some variation at the beginning/end of chapters or sections based on which online version of the catechism is used where cited paragraphs may appear on different webpages. This may be worked around by using the {{{set_page}}} or {{{base_page}}} parameters manually. If necessary, the entire url can be set using {{{set_url}}}.
Optionally, {{subst:CCC2}} may be used to generate a complete citation. CCC2, however, is only compatible with the "basic parameters" listed below.
Basic parameters
  • {{{pp}}} - input paragraph number, or first paragraph in a range. Can also use first unnamed parameter {{{1}}} as paragraph number.
  • {{{end}}} - optional end of a range of paragraphs. Does not influence output page selection.
  • {{{accessdate}}} - specify the date the catechism website was accessed. Can also be set using the second unnamed parameter {{{2}}} (only if first unnamed {{{1}}} is used to set paragraph number). Manually input dates will be rendered in "dmy" unless the {{{format}}} parameter is used. -- Note: {{{Date}}} has been deprecated for compatibility with other citation templates
  • {{{quote}}} - optional note/quote added to end. Could be used quote portions of text.
Intermediate parameters
  • {{{long}}} - use "long=on" to display a complete citation, rather than an abbreviated footnote. For use in articles where only a few citations from the CCC are used. Displays the full paragraph number/range, catechism title (Catechism of the Catholic Church, Second Edition), the publisher (Libreria Editrice Vaticana), and publication date (2012).
  • {{{pp_range}}} - use to cite a custom range. For instance, "CCC, 99-100,103" (bolded portion pp_range text.). Could also be used to give a chapter or section tile in lieu of bare paragraph number. A "pp" parameter or first parameter, must be specified to generate link to the catechism text.
  • {{{display}}} or {{{title}}} - fully customize what text is displayed for the reference link. Use when leading "CCC" or "Paragraph(s)" is to be omitted or further customized. A "pp" parameter or first parameter, must be specified to generate link to the catechism text.
  • {{{format}}} - manually set the access date format; options include "dmy (default)", "mdy", etc. (See template:date for details)
Advanced parameters
  • {{{publisher}}} - specify an alternative publisher source (default for short form is:"Vatican.va", long form is:"Libreria Editrice Vaticana")
  • {{{work}}} - in the long form, specify an alternative work title (default is "Catechism of the Catholic Church, Second Edition")
  • {{{date}}} - in the long formspecify the publication date if an alternative publisher is used. (Default is 2012 based on Second Edition)
  • {{{base_url}}} - online catechism source url, less a filename. Set this to link to a different online catechism text. (Default is http://www.vatican.va/archive/CCC_css/archive/catechism/). Possibly useful for linking to foreign language editions. You must include the "http://", "https://", or other protocol indicator in the url.
  • {{{base_page}}} - output from the logical selection (part section chapter code). Can also manually set to specify a base page name (no prefix or suffix). Could be used to manually select the part, section and chapter, but must be manually formatted.
  • {{{prefix}}} - added to beginning of base_page (logical selection) (such as a systematic file naming schema, default is none)
  • {{{suffix}}} - added to end of base_page (logical selection) (default is ".htm")
  • {{{set_page}}} - manually set entire filename (no prefix/suffix added). Default is the output from TOC lookup selection
  • {{{set_url}}} or {{{url}}} - manually specify the entire reference url (base and file). You must include the "http://", "https://", or other protocol indicator in the url.
Table of contents look up able
  • Template:CCC/TOC lookup - contains the table of contents and a "#switch" parser function to link paragraph number to catechism webpage, based on the part section chapter that the paragraph falls in. This subpage may be updated independent of the code here, or an alternative maybe chosen by passing a template to "base_page".
When an invalid paragraph number is selected, the template returns the table of contents for the catechism.

Usage baguhin

Examples
Basic
<ref>{{CCC|99}}</ref>[basic 1]
<ref>{{CCC|pp=87}}</ref>[basic 2]
  1. lookup%5d%5d.htm "CCC, 99". Vatican.va. {{cite web}}: Check |url= value (tulong)
  2. lookup%5d%5d.htm "CCC, 87". Vatican.va. {{cite web}}: Check |url= value (tulong)


Range:
<ref>{{CCC|pp=251|end=263}}</ref>[range 1]
  1. lookup%5d%5d.htm "CCC, 251–263". Vatican.va. {{cite web}}: Check |url= value (tulong)


Date accessed/retrieved
<ref>{{CCC|pp=56|date=14 Jun 2014}}</ref>[date 1]
<ref>{{CCC|782|14 Jun 2014}}</ref>[date 2]
<ref>{{CCC|1628|{{subst:date}}}}</ref>[date 3]
  1. lookup%5d%5d.htm "CCC, 56". Vatican.va. 14 Jun 2014. {{cite web}}: Check |url= value (tulong)
  2. lookup%5d%5d.htm "CCC, 782". Vatican.va. Nakuha noong 14 Hunyo 2014. {{cite web}}: Check |url= value (tulong)
  3. lookup%5d%5d.htm "CCC, 1628". Vatican.va. Nakuha noong 15 Hulyo 2014. {{cite web}}: Check |url= value (tulong) (example generated on 15 July 2014)


Optional quote at end
<ref>{{CCC|pp=42|note=There is a quote added!}}</ref>[optionalquote 1]
  1. lookup%5d%5d.htm "CCC, 42". Vatican.va. There is a quote added! {{cite web}}: Check |url= value (tulong)


Long format
<ref>{{CCC|pp=64|long=yes}}</ref>[long 1]
<ref>{{CCC|pp=65|end=66|long=yes}}</ref>[long 2]
<ref>{{CCC|811|9 November 2014|title=The Profession of Faith|long=on}}</ref>[long 3]
  1. lookup%5d%5d.htm "Paragraph 64". Catechism of the Catholic Church, Second Edition. Libreria Editrice Vaticana. 2012. {{cite web}}: Check |url= value (tulong)
  2. lookup%5d%5d.htm "Paragraphs 65–66". Catechism of the Catholic Church, Second Edition. Libreria Editrice Vaticana. 2012. {{cite web}}: Check |url= value (tulong)
  3. lookup%5d%5d.htm "The Profession of Faith". Catechism of the Catholic Church, Second Edition. Libreria Editrice Vaticana. 2012. Nakuha noong 9 Nobyembre 2014. {{cite web}}: Check |url= value (tulong)


Specify group*
<ref group=specificgroup>{{CCC|2532|}}</ref>[specificgroup 1]
  1. lookup%5d%5d.htm "CCC, 2532". Vatican.va. {{cite web}}: Check |url= value (tulong)
*Group used but hidden in all examples here to better illustrate the specific example parameter.


Alternative publisher
<ref>{{CCC|57|15 July 2014|publisher=scborromeo.org|base_url=http://www.scborromeo.org/CCC/}}</ref>[alt_pub 1]
  1. lookup%5d%5d.htm "CCC, 57". scborromeo.org. Nakuha noong 15 Hulyo 2014. {{cite web}}: Check |url= value (tulong)

Under the hood baguhin

This template uses an imbedded template called Template:CCC/TOC lookup, which stores the look up table containing the key linking the CCC paragraph number to its page on the Vatican or Saint Charles Borromeo website.

TemplateData baguhin

Ito ang TemplateData ng padron na ito na ginagamit ng TemplateWizard, VisualEditor at ng iba pang mga kagamitan. Pindutin ito para makita ang buwanang ulat sa paggamit sa parameter ng padron na ito base sa TemplateData na ito.

TemplateData ng CCC

Create citation for Catechism of the Catholic Church

Mga parametro ng padron

This template prefers inline formatting of parameters.

PangalanPaglalarawanTypeKatayuan
pppp 1

Input paragraph number, or first paragraph in a range

Numberrequired
endend

Optional end of a range of paragraphs. Does not influence output page selection

Unknownoptional
accessdateaccessdate 2

Date source was accessed

Dateoptional
quotequote

Quote short passage from source

Unknownoptional
longlong

Use "long=on" to display a complete citation, rather than an abbreviated footnote.

Unknownoptional
pp_rangepp_range

Use to cite a custom range. For instance, "CCC, 99-100,103"

Unknownoptional
displaydisplay title

Fully customize what text is displayed for the reference link.

Unknownoptional
formatformat

Specify date output format

Unknownoptional