|
|
Line 1: |
Line 1: |
| <noinclude> | | <noinclude>This template is used to create context labels, such as [[Template:countable]]. |
| This template uses intricate parser functions. | | </noinclude><includeonly><span style="color:green;">''{{{1|}}}''</span></includeonly><!-- |
| | |
| == 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 | |
| --><span style="color:green;">''{{{label|}}}''</span><!--
| |
| -->|<!-- End label, context
| |
| -->({{{{{1|}}}|call=call|set={{{2|}}}}}{{#if:{{{2|}}}|{{{{{2|}}}|call=call|set={{{3|}}}}}}}<!--
| |
| -->{{#if:{{{3|}}}|{{{{{3|}}}|call=call|set={{{4|}}}}}}}{{#if:{{{4|}}}|{{{{{4|}}}|call=call|set={{{5|}}}}}}}<!--
| |
| -->{{#if:{{{5|}}}|{{{{{5|}}}|call=call|set={{{6|}}}}}}}{{#if:{{{6|}}}|{{{{{6|}}}|call=call|set={{{7|}}}}}}}<!--
| |
| -->{{#if:{{{7|}}}|{{{{{7|}}}|call=call|set={{{8|}}}}}}}{{#if:{{{8|}}}|{{{{{8|}}}|call=call|set={{{9|}}}}}}}<!--
| |
| -->{{#if:{{{9|}}}|{{{{{9|}}}|call=call}}}})<!--
| |
| -->}}</includeonly><!-- End context
| |
| -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Context labels|{{PAGENAME}}]]}} | | -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Context labels|{{PAGENAME}}]]}} |