Modèle:Globalize/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|This is a documentation subpage for Modèle:Globalize. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Modèle |Utilisateur |modèle template page |{{#if:Modèle |modèle page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Modèle:Globalize | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
This {{#switch:Modèle|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace=10&name=%7B%7B%0A%23switch%3A+doc%0A%7C+doc+%7C+sandbox+%3D+Globalize%0A%7C+%23default++++++%3D+Globalize%2Fdoc%0A%7D%7D {{#iferror:{{#expr:0+{{#ifeq:|yes|4399| 4399 }}*1}}|many|approximately {{#ifeq:{{#ifeq:|yes|4399| 4399 }}|0
|0 |{{significant figures/{{#if:2 |rnd |sum }} |1={{#ifeq:|yes|4399| 4399 }} |2=2 |3={{safesubst:#ifexpr:{{#ifeq:|yes|4399| 4399 }}=0 |{{safesubst:#ifexpr:abs{{#ifeq:|yes|4399| 4399 }}1=1 |0 |{{safesubst:#expr:floor((ln(abs{{#ifeq:|yes|4399| 4399 }}1)/ln10)+1)}} }} |{{#expr:floor((ln(abs({{#ifeq:|yes|4399| 4399 }}) )/ln 10)+1E((abs{{#ifeq:|yes|4399| 4399 }}>1E100 or abs{{#ifeq:|yes|4399| 4399 }}<1E-100)-14))}} }} }} }}}} pages], so changes to it will be widely noticed. Please test any changes in the {{#switch:Modèle|Module=module's|#default=template's}} [[{{#switch: doc | doc | sandbox = Modèle:Globalize | #default = Modèle:Globalize/doc }}/sandbox|/sandbox]] or [[{{#switch: doc | doc | sandbox = Modèle:Globalize | #default = Modèle:Globalize/doc }}/testcases|/testcases]] subpages{{#switch:Modèle|Module=.|#default=, or in your own user subpage.}} Please consider discussing changes {{#if:|at [[{{{2}}}]]|on the [[{{#switch: doc | doc | sandbox = Discussion modèle:Globalize | #default = Discussion modèle:Globalize/doc}}|talk page]]}} before implementing them. |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! {{#if:| {{{1}}}}} |
- This template is a self-reference
Template usage notes
{{#if:This tag should only be applied to articles where global perspectives are reasonably believed to exist (e.g., that people in China have a different view about an idea or situation than people in Germany or South Africa). |*This tag should only be applied to articles where global perspectives are reasonably believed to exist (e.g., that people in China have a different view about an idea or situation than people in Germany or South Africa). }}{{#if:If additional reliable sources for a worldwide view cannot be found after a reasonable search, this tag may be removed. |*If additional reliable sources for a worldwide view cannot be found after a reasonable search, this tag may be removed. }}{{#if:This tag should not be used as a badge of shame or to complain about how to spell words, which measurement units to use, and similar questions of article presentation. |*This tag should not be used as a badge of shame or to complain about how to spell words, which measurement units to use, and similar questions of article presentation. }}{{#if:Please explain your concerns on the article's talk page and link to the section title of the discussion you initiate. Otherwise, other editors may remove this tag without further notice. |*Please explain your concerns on the article's talk page and link to the section title of the discussion you initiate. Otherwise, other editors may remove this tag without further notice. }} |
Sommaire
Usage
Paste this at the top of the affected article or section:
{{{{#if: |subst:}}Globalize{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
This code provides the correct date, assumes that your concerns affect the entire article, and assumes that you will promptly explain your concerns on that article's talk page in a new section titled "Globalize."
For instructions on modifying this simplest version of the template code, see the following:
- Article or section?
- The default word article is replaceable so you can specify whether the whole article or just a section doesn't represent a worldwide view. One or the other must be given if you also wish to specify any countries to which the article currently leans without using a named parameter (which are: 2name=, 3name=, 4name=) to specify the country. Specifying the whole article or just one section is accomplished simply by adding those words as parameters:
{{{{#if: |subst:}}Globalize{{#if:article ||article}}{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
or{{{{#if: |subst:}}Globalize{{#if:section ||section}}{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
.
- Please set the date
- The maintenance date tagging parameter 'date=' should be given with a properly formatted ISO date as is common to most maintenance tags. This parameter is used in time-keyed autocategories, and if you do not supply the current date, then a bot has to add it later, which results in extra server load.
- Link to the correct section of the talk page
- As a means of maximizing the likelihood that your concerns will be addressed, you should consider to initiate a talk section detailing your concerns when hanging any maintenance tag. Without such explanations, it may be difficult for editors to understand what concerned you and to figure out whether subsequent changes have addressed your concerns.
- Specify the full link prefix through section title. (Capture this off the url after saving your newly inaugurated complaint section works best—you literally can't go wrong and introduce a typo since it's cut and paste.)
- This is achieved by adding
|discuss=Talk:Article_Name#This_is_section_title
.
- If you do not explain your concerns on the article's talk page, you may expect this tag to be promptly and justifiably removed as "unexplained" by the first editor who happens to not understand why you added this tag.
- Which countries are over-represented?
- Country names given as a positional parameter are assumed to be links as can be seen in the code snippet:
{{{2name|[[{{{2}}}]]}}}
The 2name, 3name parameters also affect categorizations, so can be used to display one name and link those to a variant.
- Up to three geographical areas covered can also be selected,
{{Globalize|article or section|area 1|area 2|area 3}}
. For each region, the template will automatically add the page to an appropriate cleanup category, named category:{{{country}}}-specific. If the name of the country differs from the category (for instance, the United Kingdom, but UK-specific) then you can use the 2name, 3name and 4name attributes to modify the displayed name.
- Categorization
- This template will also categorize tagged articles into Category:Articles with limited geographic scope. To disable all auto-categorisation (such as when used multiple times on the same page tagging various sections), define either inhibit= or nocat= to any value (e.g.,
|nocat=my cat
or|inhibit=1
.
- Technical note
- The first, second, third... positional parameters are equivalent in wikimarkup language as the (special, a special case by definition and design) named parameters 1=, 2=, 3=, ... so far as article links are concerned. However, the two parameters differ in their effects in selecting named autocategories as is covered below. (The best trick ... try either, or both, for many country related names have slight name differences from their category names and therefore you must test (check) for both redlinked article and category names)
- simple form
{{Globalize |{{subst:DATE}} |discuss=Talk:Article_Name#"This_is_section_title" | 1= article or section <!-- (defaults to article) --> | 2= <!-- 1st country or region or --> | 2name= }}
- full commented form
{{Globalize |date= |discuss=|discussion=|talk= <!-- (just one of) Defines link paths to article's talk page SECTION link by title. -- Define as "Talk:Article_Name#This_is_section_title" ) --> | 1= article or section <!-- (defaults to article) --> <!-- (just one of each pair in: <code><nowiki>{{{2}}}, {{{3}}}, {{{4}}} or 2name, 3name, 4name</code>) These are the countries or regions on which the article is currently overly focused, in other words, 'those places the article is biased toward in the complaint --> | <!-- (<code>{{{2}}}</code>) --> 2= <!-- 1st country or region --> or | 2name= | <!-- (<code>{{{3}}}</code>) --> 3= <!-- 2nd country or region --> or | 3name | <!-- (<code>{{{4}}}</code>) --> 4= <!-- 3rd country or region --> or | 4name <!-- (optional category control parameters) --> | nocat= true or inhibit=true <!-- define either or both to inhibit auto-categorization into cleanup categories. --> }} </nowiki>
Location
As with all maintenance templates, this template should be placed below any disambiguation links and above infoboxes, images, and the text of the lead to increase accessibility for users of screen readers.
List of sub-pages
These special-case templates of the generic {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Modèle:Globalize|Globalize]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}}}
template are preferred and should be used when they apply because each is customized by message (and sometimes cleanup task force maintenance auto-categories){{#switch:¬
|¬= |SUBST=
}}{{#if:
| |[{{#if: | }}clarification needed{{#if: | }}]
}} for regions, countries or groups of countries in which viewpoint biases frequently occur.
It's easy to remember how to use these, because you only need to add a forward slash and the country name or abbreviation after the generic {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Modèle:Globalize|Globalize]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}}}
template name.
Don't forget to use the applicable parameters—the instructions are generally the same as when using the generic {{[[:{{ safesubst:#if: | {{{sister}}}: }}{{ safesubst:#if: | {{{lang}}}: }}Modèle:Globalize|Globalize]]{{ safesubst:#if: | |{{{2}}} }}{{ safesubst:#if: | |{{{3}}} }}}}
template except for those regarding country or regional names, because the country or region is already defined in the following sub-page templates. However, you can click the following links to see the specialized template's own documentation.
Updated {{#if: | {{{alt}}} | {{#if:|{{#ifeq: yes | yes | s | S }}ince | {{#ifeq: yes | yes | a | A }}s of}} {{#if:|}} {{#if: | {{#ifeq:|us|{{#if:8|{{#switch:{{#if:8
|{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:}},|{{#expr:}} {{#if:8|{{#switch:{{#if:8
|{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2007 | {{#if: 8 | {{#if:8|{{#switch:{{#if:8
|{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2007 }}}}{{#if:|{{{post}}}}}[{{#if:|{{{url}}} [ref]|https://wiki.esisariens.org/index.php?title=Globalize/doc&action=edit [update]}}]{{#ifeq:{{ safesubst:#if:
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Modèle:Globalize/doc}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Globalize/doc}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if:{{#if: {{#ifexpr: 2007 = 1 }} | {{#ifexpr: {{#time:Y|2007}} > 2004 | 2007 | {{#ifexpr: {{#time:Y|2007}} > 1989 | {{#time:Y|2007}} | before 1990 }}}} | {{#ifexpr: 2007 > 2004 | {{#if:8 | {{#if:8|{{#switch:{{#if:8 |{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2007 | {{#ifexpr:2007 > 1989 | 2007 | before 1990 }}}}}}
|[[Category:Articles containing potentially dated statements from {{#if: {{#ifexpr: 2007 = 1 }} | {{#ifexpr: {{#time:Y|2007}} > 2004 | 2007 | {{#ifexpr: {{#time:Y|2007}} > 1989 | {{#time:Y|2007}} | before 1990 }}}} | {{#ifexpr: 2007 > 2004 | {{#if:8 | {{#if:8|{{#switch:{{#if:8 |{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2007 | {{#ifexpr:2007 > 1989 | 2007 | before 1990 }}}}}}]]{{#ifexist:Category:Articles containing potentially dated statements from {{#if: {{#ifexpr: 2007 = 1 }} | {{#ifexpr: {{#time:Y|2007}} > 2004 | 2007 | {{#ifexpr: {{#time:Y|2007}} > 1989 | {{#time:Y|2007}} | before 1990 }}}} | {{#ifexpr: 2007 > 2004 | {{#if:8 | {{#if:8|{{#switch:{{#if:8
|{{#switch:8 |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:8<0 |{{#ifexpr:((8)round 0)!=(8) |{{#expr:12-(((0.5-(8))round 0)mod 12)}} |{{#expr:12-(((11.5-(8))round 0)mod 12)}} }} |{{#expr:(((10.5+8)round 0)mod 12)+1}} }} }} |Missing required parameter 1=month!
}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2007 | {{#ifexpr:2007 > 1989 | 2007 | before 1990 }}}}}}
||}} |[[Category:{{#if: ||Articles containing potentially dated statements}}]]}}{{#if:All articles containing potentially dated statements |}}}}}}:
- {{Globalize/Australia}} or {{Globalize/AU}}
- {{Globalize/Canada}} or {{Globalize/CA}}
- {{Globalize/China}} or {{Globalize/CN}}
- {{Globalize/Common law}}
- {{Globalize/Commonwealth realms}}
- {{Globalize/Eng}}
- {{Globalize/Europe}}
- {{Globalize/France}} or {{Globalize/FR}}
- {{Globalize/Germany}} or {{Globalize/DE}}
- {{Globalize/Japan}} or {{Globalize/JP}}
- {{Globalize/Middle East}}
- {{Globalize/New Zealand}} or {{Globalize/NZ}}
- {{Globalize/North America}}
- {{Globalize/Northern}}
- {{Globalize/South Africa}} or {{Globalize/ZA}}
- {{Globalize/Southern}}
- {{Globalise/UK}}, {{Globalize/UK}} or {{Globalize/United Kingdom}}
- {{Globalize/UK and Canada}}
- {{Globalize/US}} or {{Globalize/United States}}
- {{Globalize/West}}
See also
- {{Geographical imbalance}} for coverage within a specific region
- {{Over coverage}}
- {{Where}} for unclear geographical scope
- {{Historical information needed}} for lack of historical coverage
- Wikipedia:Template messages/Cleanup