Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Jump to content

Template:User x: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Hyacinth (talk | contribs)
{{documentation subpage}}
Fix categorization
 
(45 intermediate revisions by 21 users not shown)
Line 1: Line 1:
{{Documentation subpage|multiple templates located in [[:Category:Language user templates]]|override=user x}}<includeonly>
{{documentation subpage}}
{{Transclusionless|reason=it is part of a complete set of templates, some of which may not be in use}}
<!-- Categories go in the documentation of this page and interwikis go in Wikidata. -->
</includeonly>

== Usage ==
== Usage ==
*'''DO NOT''' copy the source of this userbox. Otherwise you risk putting your userpage in a miscategorization, and/or generating duplicate templates/userboxes.
* {{Strong|Do not}} copy the source of this userbox. Otherwise, you risk putting your userpage in a miscategorization, or generating duplicate userboxes.
*Put this userbox on your userpage like this:{{[[Template:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]}}
* Put this userbox on your userpage like this: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
*Put this userbox in Babel like this <nowiki>{{Babel|</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>
* Put this userbox in [[WP:Babel|Babel]] like this: <code><nowiki>{{Babel|</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code><!--
-->{{#ifexist: Template:{{BASEPAGENAME}}-f
*This template will automatically add your page to the following categories:
| <nowiki/>
**{{#ifexist:Category:{{BASEPAGENAME}}-{{#ifexist:{{{1|}}}|{{{1|}}}|N}}|[[:Category:{{BASEPAGENAME}}]]}}
* For the female version, see: {{tl|{{BASEPAGENAME}}-f}}.
}}<!--
-->{{#ifeq: {{#invoke:ustring|sub|\{{BASEPAGENAME}}|-2|-1}} | -0
|| <nowiki />
* This template will automatically add your page to the following categories:
** {{#ifexist: Category:{{BASEPAGENAME}}-N
| [[:Category:{{BASEPAGENAME}}-N]]
| {{#ifexist: Category:{{BASEPAGENAME}}
| [[:Category:{{BASEPAGENAME}}]]
| {{#ifexist: Category:{{#invoke:String|sub|{{BASEPAGENAME}}|1|-3}}
| [[:Category:{{#invoke:String|sub|{{BASEPAGENAME}}|1|-3}}]]
| [[:Category:Wikipedians by language]]
}}
}}
}}
}}


==See also==
== See also ==
*[[:Category:Language user templates]]
* [[:Category:Language user templates]]
*[[:Category:Wikipedians by language]]
* [[:Category:Wikipedians by language]]
*{{tl|Languages}}
* {{Tl|Languages}}


{{Languages
{{languages
|1 = {{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}
|1=
| {{ISO 639 name|{{#invoke:String|match|s={{BASEPAGENAME}}|pattern=[a-z][a-z][a-z]?|start=5|plain=false|nomatch=mis}}}}<!--Extract 639 code from BASEPAGENAME; User st-0 is malformed IETF tag.-->
{{#ifexist:Template:ISO 639 name {{Str right|{{BASEPAGENAME}}|5}}
|{{ISO 639 name| {{Str right|{{BASEPAGENAME}}|5}} }}
| {{ISO 639 name|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}<noinclude>en</noinclude>}}
|{{ISO 639 name| {{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}} }}
}}
|2={{#ifexist:Template:ISO 639 name {{Str right|{{BASEPAGENAME}}|5}}
|{{Str right|{{BASEPAGENAME}}|5}}
|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}}}
|level={{#ifexist:{{{1|}}}|{{{1|}}}|N}}
|sections={{#ifexist:Template:ISO 639 name {{Str right|{{BASEPAGENAME}}|5}}
|{{Str right|{{BASEPAGENAME}}|5}}
|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}}}
}}
<includeonly>
{{#ifexist:Category:User templates {{Str right|{{BASEPAGENAME}}|5}}-{{#ifexist:{{{1|}}}|{{{1|}}}|N}}
|[[Category:User templates {{Str right|{{BASEPAGENAME}}|5}}-{{#ifexist:{{{1|}}}|{{{1|}}}|N}}]]
|{{#ifexist:Category:User templates {{Str right|{{BASEPAGENAME}}|5}}
|[[Category:User templates {{Str right|{{BASEPAGENAME}}|5}}]]
|{{#ifexist:Category:User templates {{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}
|[[Category:User templates {{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}]]
|[[Category:Language user templates]]
}}
}}
|2 = {{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}
}}
| {{#invoke:String|match|s={{BASEPAGENAME}}|pattern=[a-z][a-z][a-z]?|start=5|plain=false|nomatch=mis}}<!--Extract 639 code from BASEPAGENAME; prevents malformed wikilinks.-->
}}</includeonly><noinclude>
| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}<noinclude>en</noinclude>
<!--!!!DOCUMENTATION FOR THIS TEMPLATE BEGINS HERE!!!-->
}}
__NOTOC__
|level = 6
----
|sections = {{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}

| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}
==Usage==
| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}<noinclude>en</noinclude>
''This template is intended to provide one easy and consistent documentation for all
}}

}}<!--
{{ordinal|{{#ifexist:{{{1|}}}|{{{1|}}}|N}}}} level ({{#ifexist:{{{1|}}}|{{{1|}}}|N}}) "User x" templates (such as [[:Template:User tr{{#if:{{{1|}}}|-{{{1}}}|}}]]).'' It is intended '''only''' for templates with [[ISO 639]] language codes.
--><includeonly>{{Sandbox other||<!--

-->{{Category handler|template=1|1={{#ifexist: Category:{{BASEPAGENAME}}-N
To use this on most templates use: <code><nowiki>{{documentation|Template:User x</nowiki>{{#if:{{{1|}}}|-{{{1}}}|}}<nowiki>/doc}}</nowiki></code>
| [[Category:{{BASEPAGENAME}}-N| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}-N]]

| {{#ifexist: Category:{{BASEPAGENAME}}
It currently appears that some templates use {{tl|Userbox}} and some use {{tl|Userbox-level}}.
| [[Category:{{BASEPAGENAME}}| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}]]

| {{#ifexist: Category:{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|1|-3}}
==See also==
| [[Category:{{#invoke:Ustring|sub|{{BASEPAGENAME}}|1|-3}}| {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}]]
*[[meta:List of Wikipedias|meta:Complete list of language wikis available]]
| [[Category:Malformed language user templates|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}]]

}}
<!-- Categories go here and interwikis go in Wikidata. -->
}}
</noinclude>
}}<!--
-->{{#ifexist: Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}-N
| [[Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}-N|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}-N]]
| {{#ifexist: Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}
| [[Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}]]
| {{#ifexist: Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}
| [[Category:User templates {{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}]]
| [[Category:Language user templates|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}]]
}}
}}
}}|nocat={{{nocat|}}}
}}}}</includeonly><noinclude>{{Documentation}}<!--Add categories to the /doc subpage, not here.--></noinclude>

Latest revision as of 01:57, 20 January 2024

Usage

  • Do not copy the source of this userbox. Otherwise, you risk putting your userpage in a miscategorization, or generating duplicate userboxes.
  • Put this userbox on your userpage like this: {{User x}}
  • Put this userbox in Babel like this: {{Babel|User x}}
  • This template will automatically add your page to the following categories:

See also