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

From blackwiki
Jump to navigation Jump to search
imported>PPEMES
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
Line 11: Line 11:
 
:<code><nowiki>{{CIC1984/TOC logical selection|canon}}</nowiki></code> → {{samp|file.htm#book.part.section.title.chapter.article.canon}}
 
:<code><nowiki>{{CIC1984/TOC logical selection|canon}}</nowiki></code> → {{samp|file.htm#book.part.section.title.chapter.article.canon}}
  
<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]]
 
[[Category:Catholic templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:54, 24 April 2020

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