Difference between revisions of "Template:CIC1983/lookup table/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
m (Restored edit expressly authorized at WP:NOTBROKEN.)
imported>PPEMES
Line 13: Line 13:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Catholic templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 20:52, 29 August 2017

This template is a subroutine of Template:Temp that chooses the appropriate book.part.section.title.chapter.article.canon in the 1983 Code of Canon Law (CIC), based on the canon number passed to it. It accepts only the first unnamed parameter as the canon number and returns the file and the named anchor of that canon. If an invalid canon is input, it return the table of contents (_INDEX.HTM).

It may be used as a stand-alone should the book.part.section.title.chapter.article information be needed in another context.

It was generated in a spreadsheet from the table of contents found at Template:URL on 5 December 2015. The tab-separated table may be updated independently of the rest of the code.

Usage

{{CIC1984/TOC logical selection|canon}}file.htm#book.part.section.title.chapter.article.canon