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?
No edit summary
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>(<span style="color:green;">''{{{1|{{{label|}}}}}}''</span>)</includeonly><!--
This template uses intricate parser functions.
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Context labels|{{PAGENAME}}]]}}<noinclude>
 
{{documentation}}
== How to Use ==
<!-- Categories, interwikis and TemplateData goes to the /doc subpage -->
Examples:
</noinclude>
# <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|}}}}}{{#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}}]]}}

Latest revision as of 20:07, 5 August 2017

Template documentation[view] [edit] [history] [purge]

This template is used to create context labels, such as {{countable}}.

Usage

{{context
| 1 = Context label
}}

There are also a couple of templates that uses this one and adds a separate category for those. This template by itself will not add any categories to entry pages.

TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Context

Template for adding context labels to entry pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Label1 label

The context label to use.

Stringoptional