Content deleted Content added
Merging from /doc subpage |
|||
Line 1:
{{Documentation subpage|multiple templates located in [[:Category:Language user templates]]}}
{{lua|Module:ISO 639 name}}
<!-- Categories go
== Usage ==
*'''DO NOT''' copy the source of this userbox. Otherwise you risk putting your userpage in a miscategorization, and/or generating duplicate templates/userboxes.
*Put this userbox on your userpage like this: {{[[Template:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]}}
*Put this userbox in Babel like this: <nowiki>{{Babel|</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>
*{{#ifexist:Template:
*}}This template will automatically add your page to the following categories:
|[[:Category:{{BASEPAGENAME}}-N]]
|{{#ifexist:Category:{{BASEPAGENAME}}
|[[:Category:{{BASEPAGENAME}}]]
|{{#ifexist:Category:{{Str crop|{{BASEPAGENAME}}|2}}
|[[:Category:{{Str crop|{{BASEPAGENAME}}|2}}]]
|[[:Category:Wikipedians by language]]
}}
}}
}}
==See also==
Line 15 ⟶ 26:
{{languages
|1={{#if:{{#invoke:ISO 639 name|
|{{#invoke:ISO 639 name|iso_639_name| {{#invoke:string|match|s={{BASEPAGENAME}}|pattern=%a%a%a?|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}}
|{{#invoke:ISO 639 name|iso_639_name| {{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}} <noinclude>en</noinclude> }}
▲|{{ISO 639 name| {{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}} <noinclude>en</noinclude> }}
}}
|2={{#
|{{#invoke:string|match|s={{BASEPAGENAME}}|pattern=%a%a%a?|start=5 |plain=false|nomatch=mis}} <!-- extract 639 code from BASEPAGENAME; prevents malformed wikilinks -->
▲ |{{Str right|{{BASEPAGENAME}}|5}}
|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}} <noinclude>en</noinclude> }}
|level=6
|sections={{#
|{{Str right|{{BASEPAGENAME}}|5}}
|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}} <noinclude>en</noinclude> }}
}}
<includeonly>
{{#ifexist:Category:
|[[Category:
|{{#ifexist:Category:{{BASEPAGENAME}}
|[[Category:{{BASEPAGENAME}}|{{Str right|{{BASEPAGENAME}}|5}}]]
|{{#ifexist:Category:{{Str crop|{{BASEPAGENAME}}|2}}
|[[Category:{{Str crop|{{BASEPAGENAME}}|2}}|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}]]
|[[Category:Wikipedians by language|{{Str right|{{BASEPAGENAME}}|5}}]]
}}
}}
}}
{{#ifexist:Category:User templates {{Str right|{{BASEPAGENAME}}|5}}-N
|[[Category:User templates {{Str right|{{BASEPAGENAME}}|5}}-N|{{Str right|{{BASEPAGENAME}}|5}}-N]]
|{{#ifexist:Category:User templates {{Str right|{{BASEPAGENAME}}|5}}
|[[Category:User templates {{Str right|{{BASEPAGENAME}}|5}}|{{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}}|{{Str crop|{{Str right|{{BASEPAGENAME}}|5}}|2}}]]
|[[Category:Language user templates|{{Str right|{{BASEPAGENAME}}|5}}]]
}}
}}
}}</includeonly
|