Template:WksLangTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(improvements, and added prot-temp template)
Line 1: Line 1:
Works in this subcategory of [[:Category:Works by language]] have been categorized as having text underlay in {{{1}}}.  For pages which contain actual texts in {{{1}}}, see [[:Category:{{{1}}} texts]].<includeonly>[[Category:Works by language| {{{2|{{{1}}}}}}]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude><noinclude><br><br><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188FF; padding: 1em 1em 1em 1em; background-color:#ddffdd">
Works in this subcategory of {{CiteCat|Works by language}} have been categorized as having text underlay in {{{1}}}.  For pages which contain actual texts in {{{1}}}, see {{CiteCat|{{{1}}} texts}}.<includeonly>[[Category:Works by language| {{{2|{{{1}}}}}}]]</includeonly><noinclude>
[[Category:Templates|{{PAGENAME}}]]<br>
{{prot-temp}}<br>
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188FF; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


Line 7: Line 10:
: <tt><nowiki>{{WksLangTxt|<language>}}</nowiki></tt>
: <tt><nowiki>{{WksLangTxt|<language>}}</nowiki></tt>
which inserts
which inserts
: <tt><nowiki>Works in this subcategory of [[:Category:Works by language]] here have been categorized as having text underlay in <language>.  For pages which contain actual texts in <language>, see [[:Category:<language> texts]].[[Category:Works by language| <language>]]</nowiki></tt>
: <tt><nowiki>Works in this subcategory of {{CiteCat|Works by language}} here have been categorized as having text underlay in <language>.  For pages which contain actual texts in <language>, see {{CiteCat|<language> texts}}.[[Category:Works by language| <language>]]</nowiki></tt>
into a file, displayed as:
into a file, displayed as:


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


'''Syntax, with both parameters:'''
'''Syntax, with both parameters:'''
: <tt><nowiki>{{WksLangTxt|<language>|<language sort key>}}</nowiki></tt>
: <tt><nowiki>{{WksLangTxt|<language>|<language sort key>}}</nowiki></tt>
which inserts
which inserts
: <tt><nowiki>Works in this subcategory of [[:Category:Works by language]] here have been categorized as having text underlay in <language>.  For pages which contain actual texts in <language>, see [[:Category:<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 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 <language> receives the sort key "<tt> <language sort key></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 <language> receives the sort key "<tt> <language sort key></tt>".  Thus, both
: <tt><nowiki>{{WksLangTxt|Old English}}</nowiki></tt>
: <tt><nowiki>{{WksLangTxt|Old English}}</nowiki></tt>
Line 22: Line 25:
would display the same text:
would display the same text:


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


But the first form would sort the [[:Category:Works in Old English]] as a subcategory of [[:Category: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".
But the first form would sort the [[:Category:Works in Old English]] as a subcategory of {{CiteCat|Works by language}} somewhere between {{CiteCat|Works in Lowland Scots}} and {{CiteCat|Works in Nahuatl}}, while the second form will sort this category right after {{CiteCat|Works in English}}.


</div>
</div>
</noinclude>
</noinclude>

Revision as of 21:16, 9 April 2008

Works in this subcategory of Works by language have been categorized as having text underlay in {{{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 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 their 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 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 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.