Difference between revisions of "Template:CIC1983/doc"

From blackwiki
Jump to navigation Jump to search
imported>BoBoMisiu
m (Fixing style/layout errors)
imported>BoBoMisiu
(Added description based on revision 666251198 of Template:Sfn/doc and revision 692909527 of Template:Harvard citation documentation)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
__NOTOC__
 +
== Purpose ==
 +
The '''Catholic Canon Law 1983 template''' {{tl|CIC1983}} creates a short [[WP:Harvard reference|title-year citation]] in a footnote. For use with {{sfnote}}.
 +
 +
This template allows you to link an [[Wikipedia:Inline citations|inline citation]], using a [[WP:CITESHORT|short citation]], to the corresponding full bibliographic citation of ''Code of Canon Law'' (1983): {{tl|CIC1983bib}}. This template also creates an external link to the [[1983 Code of Canon Law|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 ==
 
== Usage ==
 
{{TemplateData header}}
 
{{TemplateData header}}
 
<templatedata>{
 
<templatedata>{
   "description": "The template creates a 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": {
     "1": {
+
     "canon": {
       "label": "Canon",
+
       "label": "canon",
       "description": "the number of the canon",
+
       "description": "Canon number in source.",
 
       "type": "string",
 
       "type": "string",
       "default": "default value",
+
       "required": true,
      "required": true
+
      "aliases": ["1",],
 +
      "example": "17", 
 
     }
 
     }
 
   }
 
   }
Line 20: Line 28:
 
== Example ==
 
== Example ==
 
{{markup
 
{{markup
|<nowiki>{{CIC1984|17}}</nowiki>
+
|<nowiki>Article text.{{CIC1983|17}}</nowiki>
|{{User:BoBoMisiu/template:CIC1984|17}}
+
|Article text.{{User:BoBoMisiu/template:CIC1984|17}}{{Reflist}}
 +
|<nowiki>Article text.{{CIC1983|canon=17}}</nowiki>
 +
|Article text.{{User:BoBoMisiu/template:CIC1984|canon=17}}{{Reflist|close=1}}
 
}}
 
}}
  
 
== Related templates ==
 
== Related templates ==
 +
*{{tl|CIC1983/lookup table}} – the lookup table which maps from canon number to the file and named anchor of that canon.
 +
*{{tl|CIC1983bib}} – the corresponding full bibliographic citation of ''Code of Canon Law'' (1983) on the ''vatican.va'' website.
 +
  
 +
{{code}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 00:02, 10 December 2015

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

Syntax error in JSON.

Example

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

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}}}