Content deleted Content added
update |
+doc |
||
Line 2:
{{high use|20000+}}
Module is
Automatically generates "variant" from title template that invokes it (e.g invoking from "Template:American English" gives "American English" as variant)
== Usage ==
* '''small''','''form''', and '''including''' – unnecessary to use in templates as grabbed when passed in from talk pages
* '''id''' – the HTML id used in editnotices; "editnotice" is automatically appended
* '''image''' – name of file to be used as an icon, without the File: prefix.
* '''variant''' – defaults to the template name; the variant of English, which should be a Wikipedia article.
* '''spelling examples''' –gives spelling examples in parentheses
* '''compare''' –comparison variants of english
* '''text''' ''(optional)'' – custom text, if required to be different from the default.
* '''doc''' if set to no, will not load the automatic documentation at [[Template:English variant notice/documentation]]
* '''editnotice_cat''' if set to yes, categorizes in edit notice category
=== Example ===
As of March 2018, [[Template:Hiberno-English]] uses the following parameters:
<pre>{{#invoke:English variant notice|main
| id = hie
| image = Four Provinces Flag.svg{{!}}border
| spelling_examples = ''colour'', ''realise'', ''travelled''
| compare = [[British English|English]], [[Scottish English|Scottish]], and
}}
</pre>
which produces:
{{#invoke:English variant notice|main
| id = hie
| image = Four Provinces Flag.svg{{!}}border
| spelling_examples = ''colour'', ''realise'', ''travelled''
| compare = [[British English|English]], [[Scottish English|Scottish]], and
}}
== See also ==
* The <nowiki>{{</nowiki>[[Template:Use X English|Use {{var|X}} English]]<nowiki>}}</nowiki> templates
|