Difference between revisions of "Template:CS1 language sources/sandbox"
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
| This is the template sandbox page for Template:CS1 language sources (diff). |
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:
| Administrators: Please do not delete this category even if it is empty! This category may be empty occasionally or even most of the time. |
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 ]]
| The above documentation is transcluded from Template:CS1 language sources/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |