Difference between revisions of "Template:CIC1983/doc"

From blackwiki
Jump to navigation Jump to search
imported>BoBoMisiu
m (BoBoMisiu moved page User:BoBoMisiu/template:CIC1983/doc to Template:CIC1983/doc: New template documentation into template space)
imported>Vanisaac
m (→‎Related templates: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
{{TemplateData header}}
 
{{TemplateData header}}
 
<templatedata>{
 
<templatedata>{
   "description": "The template creates a short footnote citation with an external link to the 1983 Code of Canon Law on the vatican.va website for the specified canon.
+
   "description": "The template creates a short footnote citation with an external link to the 1983 Code of Canon Law on the vatican.va website for the specified canon.",
",
 
 
   "params": {
 
   "params": {
 
     "canon": {
 
     "canon": {
Line 20: Line 19:
 
       "type": "string",
 
       "type": "string",
 
       "required": true,
 
       "required": true,
       "aliases": ["1",],
+
       "aliases": ["1"],
       "example": "17"
+
       "example": "17"
 
     }
 
     }
 
   }
 
   }
Line 41: Line 40:
 
{{code}}
 
{{code}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Catholic templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 04:54, 24 April 2020

Purpose

The Catholic Canon Law 1983 template {{CIC1983}} creates a short title-year citation in a footnote. For use with Shortened footnotes.

This template allows you to link an inline citation, using a short citation, to the corresponding full bibliographic citation of Code of Canon Law (1983): {{CIC1983bib}}. This template also creates an external link to the 1983 Code of Canon Law on the vatican.va website for the specified canon.

This template is a wrapper for several templates used to create in-text citations; they differ in the use and placement of parenthesis, in the separator before the canon number and in whether a terminal full stop (period) is present.

Usage

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CIC1983

The template creates a short footnote citation with an external link to the 1983 Code of Canon Law on the vatican.va website for the specified canon.

Template parameters

ParameterDescriptionTypeStatus
canoncanon 1

Canon number in source.

Example
17
Stringrequired

Example

Markup Renders as
Article text.{{CIC1983|17}}
Article text.[1]
Article text.{{CIC1983|canon=17}}
Article text.[1]

Related templates

  • {{CIC1983/lookup table}} – the lookup table which maps from canon number to the file and named anchor of that canon.
  • {{CIC1983bib}} – the corresponding full bibliographic citation of Code of Canon Law (1983) on the vatican.va website.


{{{1}}}