Toggle menu
24.1K
669
183
158.4K
HausaDictionary.com | Hausa English Translations
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:context: Difference between revisions

Template page
*>Wenli
fix so that not every article will appear in Category:Context labels
*>Wenli
update
Line 1: Line 1:
<noinclude>This template is used to create context labels, such as [[Template:countable]].
<noinclude>
</noinclude><includeonly><span style="color:green;">''{{{1|}}}''</span></includeonly><!--
This template uses intricate parser functions.
 
== How to Use ==
Examples:
# <code><nowiki>{{context|countable}} or {{countable}}</nowiki></code> results in {{countable}}
# <code><nowiki>{{context|countable|zoology}}</nowiki></code> results in {{context|countable|zoology}}
This template can handle '''up to 9''' context labels.
</noinclude><includeonly>{{#if:{{{label|}}}|<!-- Label
-->{{#if:{{{call|}}}||(}}<span style="color:green;">''{{{label|}}}''</span>{{#if:{{{set|}}}|, }}{{#if:{{{call|}}}||)}}<!--
-->|<!-- End label, context
-->{{{{{1|}}}|call=call|set={{{2|}}}}}{{{{{2|}}}|call=call|set={{{3|}}}}}{{{{{3|}}}|call=call|set={{{4|}}}}}<!--
-->{{{{{4|}}}|call=call|set={{{5|}}}}}{{{{{5|}}}|call=call|set={{{6|}}}}}{{{{{6|}}}|call=call|set={{{7|}}}}}<!--
-->{{{{{7|}}}|call=call|set={{{8|}}}}}{{{{{8|}}}|call=call|set={{{9|}}}}}{{{{{9|}}}|call=call}}<!--
-->}}</includeonly><!-- End context
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Context labels|{{PAGENAME}}]]}}
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Context labels|{{PAGENAME}}]]}}

Revision as of 19:20, 12 November 2007

This template uses intricate parser functions.

How to Use

Examples:

  1. {{context|countable}} or {{countable}} results in (countable)
  2. {{context|countable|zoology}} results in Template loop detected: Template:contextTemplate:zoology{{|call=call|set=}}{{|call=call|set=}}{{|call=call|set=}}{{|call=call|set=}}{{|call=call|set=}}{{|call=call|set=}}{{|call=call}}

This template can handle up to 9 context labels.