Template:WksLangTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(test with hiddencat)
(removed {{CatAZ}} - very few languages require it)
Line 1: Line 1:
=== Works in {{flag|{{{1}}}|show}} ===
=== Works in {{flag|{{{1}}}|show}} ===
Works in this subcategory of {{CiteCat|Works by language}} have been categorized as having original text or text underlay in [[Wikipedia:{{{1}}} language|{{{1}}}]]{{{2|}}}.  For pages which contain actual texts in {{{1}}}, see {{CiteCat|{{{1}}} texts}}.
Works in this subcategory of {{CiteCat|Works by language}} have been categorized as having original text or text underlay in [[Wikipedia:{{{1}}} language|{{{1}}}]]{{{2|}}}.  For pages which contain actual texts in {{{1}}}, see {{CiteCat|{{{1}}} texts}}.
{{CatAZ}}<includeonly>[[Category:Works by language| {{{9|{{{1}}}}}}]] __HIDDENCAT__ </includeonly><noinclude>
<includeonly>[[Category:Works by language| {{{9|{{{1}}}}}}]] __HIDDENCAT__ </includeonly><noinclude>
[[Category:Templates|{{PAGENAME}}]]<br>
[[Category:Templates|{{PAGENAME}}]]<br>
{{prot-temp}}<br>
{{prot-temp}}<br>
Line 7: Line 7:
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


This template supplies the descriptive text that appears on a "Category:Works in <nowiki><language></nowiki>" page and categorizes the page as a subcategory of [[:Category:Works by language]] with appropriate sort key (which may be adjusted with an optional second parameter).
This template supplies the descriptive text that appears on a "Category:Works in &lt;language>" page and categorizes the page as a subcategory of [[:Category:Works by language]] with appropriate sort key (which may be adjusted with an optional second parameter).


'''Syntax, with one (required) paramter:'''
'''Syntax, with one (required) paramter:'''
Line 15: Line 15:
into a file, displayed as:
into a file, displayed as:


:Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in <nowiki><language></nowiki>.  For pages which contain actual texts in <nowiki><language></nowiki>, see <font color=blue><nowiki><language></nowiki> texts</font>.
:Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in &lt;language>.  For pages which contain actual texts in &lt;language>, see <font color=blue>&lt;language> texts</font>.


'''Syntax, with both parameters:'''
'''Syntax, with both parameters:'''
Line 22: Line 22:
: <tt><nowiki>Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in <language>.  For pages which contain actual texts in <language>, see {{CiteCat|<language> texts}}.[[Category:Works by language| <language sort key>]]</nowiki></tt>
: <tt><nowiki>Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in <language>.  For pages which contain actual texts in <language>, see {{CiteCat|<language> texts}}.[[Category:Works by language| <language sort key>]]</nowiki></tt>


The displayed text is the same as that with only the first parameter, the only difference being that the Category:Works in <nowiki><language></nowiki> receives the sort key "<tt> <nowiki><language sort key></nowiki></tt>".  Thus, both
The displayed text is the same as that with only the first parameter, the only difference being that the Category:Works in &lt;language> receives the sort key "<tt>&lt;language sort key></tt>".  Thus, both
: <tt><nowiki>{{WksLangTxt|Old English}}</nowiki></tt>
: <tt><nowiki>{{WksLangTxt|Old English}}</nowiki></tt>
and
and

Revision as of 02:11, 2 August 2009

Works in {{{1}}}

Works in this subcategory of Works by language have been categorized as having original text or text underlay in [[Wikipedia:{{{1}}} language|{{{1}}}]]. For pages which contain actual texts in {{{1}}}, see [[:Category:{{{1}}} texts|{{{1}}} texts]].


Documentation

This template supplies the descriptive text that appears on a "Category:Works in <language>" page and categorizes the page as a subcategory of Category:Works by language with appropriate sort key (which may be adjusted with an optional second parameter).

Syntax, with one (required) paramter:

{{WksLangTxt|<language>}}

which inserts

Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in <language>. For pages which contain actual texts in <language>, see {{CiteCat|<language> texts}}.[[Category:Works by language| <language>]]

into a file, displayed as:

Works in this subcategory of Works by language here have been categorized as having original text or text underlay in <language>. For pages which contain actual texts in <language>, see <language> texts.

Syntax, with both parameters:

{{WksLangTxt|<language>|<language sort key>}}

which inserts

Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having original text or text underlay in <language>. For pages which contain actual texts in <language>, see {{CiteCat|<language> texts}}.[[Category:Works by language| <language sort key>]]

The displayed text is the same as that with only the first parameter, the only difference being that the Category:Works in <language> receives the sort key "<language sort key>". Thus, both

{{WksLangTxt|Old English}}

and

{{WksLangTxt|Old English|English}}

would display the same text:

Works in this subcategory of Works by language here have been categorized as having original text or text underlay in Old English. For pages which contain actual texts in Old English, see Old English texts.

But the first form would sort the Category:Works in Old English as a subcategory of Works by language somewhere between Works in Lowland Scots and Works in Nahuatl, while the second form will sort this category right after Works in English.