Jump to content

Template:User x and Template:User x/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Fix categorization
 
test
 
Line 29: Line 29:
* [[:Category:Wikipedians by language]]
* [[:Category:Wikipedians by language]]
* {{Tl|Languages}}
* {{Tl|Languages}}
----

{{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}
| iso_639_code_exists==true — {{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.-->
| iso_639_code_exists==false — {{ISO 639 name|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6|-3}}<noinclude>en</noinclude>}}
}}
----
{{Languages
{{Languages
|1 = {{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}
|1 = {{#if: {{#invoke:ISO 639 name|iso_639_code_exists|{{#invoke:Ustring|sub|\{{BASEPAGENAME}}|6}}}}