Difference between revisions of "Template:CS1 language sources/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(remove extra }})
imported>Zyxw
(use sandbox version of /core)
Line 1: Line 1:
<includeonly>{{CS1 language sources/core
+
<includeonly>{{CS1 language sources/core/sandbox
 
|1={{Str mid|{{Last word|{{PAGENAME}}}}|2|2}}
 
|1={{Str mid|{{Last word|{{PAGENAME}}}}|2|2}}
 
|2={{Str sub new|{{PAGENAME}}|4|-23}}
 
|2={{Str sub new|{{PAGENAME}}|4|-23}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 04:39, 2 July 2017

Template documentation[view] [edit] [history] [purge]

This template generates documentation for subcategories of Category:CS1 foreign language sources. It extracts a language code and language name from the category name and passes them to Template:CS1 language sources/core which displays the documentation.

Usage

{{CS1 language sources}}

Example

When used on such as Category:CS1 Scottish Gaelic-language sources (gd), the language code is gd, the language name is Scottish Gaelic, and the documentation displayed is:

Template:Tracking category

This is a tracking category for CS1 citations that use the parameter |language=Template:Str mid to identify a source in [[Template:Str sub new language|Template:Str sub new]]. Pages in this category should only be added by CS1 templates and Module:Citation/CS1.


[[Category:CS1 foreign language sources|Template:Str mid ]]