User

String Function Split

From CNAC

< User:TomHutchison
TomHutchisonString Function Split
(Created page with "Mike Smith Mike L. Smith Mike Larry Smith Sr. {{#arraydefine:author|{{#replace:Mike L. Smith Sr.| |,}}|,|}} {{#ifeq:{{#arraysize:author}}|1|This has first name}} {{#ifeq:{{...")
 
m
 
Line 3: Line 3:
 
Mike L. Smith
 
Mike L. Smith
  
Mike Larry Smith Sr.
+
<!-- {{Author_SMW_Data/ArrayBuild|1=Mike Smith}} -->
 
 
{{#arraydefine:author|{{#replace:Mike L. Smith Sr.| |,}}|,|}}
 
{{#ifeq:{{#arraysize:author}}|1|This has first name}}
 
{{#ifeq:{{#arraysize:author}}|2|This has first and last name<br>{{Author SMW Data|1={{#arrayindex:author|0}}|3={{#arrayindex:author|1}} }} }}
 
{{#ifeq:{{#arraysize:author}}|3|This has first, middle and last name<br>{{Author SMW Data|1={{#arrayindex:author|0}}|2={{#arrayindex:author|1}}|3={{#arrayindex:author|2}} }} }}
 
{{#ifeq:{{#arraysize:author}}|4|This has first, middle, last name and a suffix<br>{{Author SMW Data|1={{#arrayindex:author|0}}|2={{#arrayindex:author|1}}|3={{#arrayindex:author|2}}|4={{#arrayindex:author|3}} }} }}
 
  
  
 
<!-- {{Author SMW Data|1={{#arrayindex:author|0}}|2={{#arrayindex:author|1}}|3={{#arrayindex:author|2}}}}
 
<!-- {{Author SMW Data|1={{#arrayindex:author|0}}|2={{#arrayindex:author|1}}|3={{#arrayindex:author|2}}}}
 
{{#arrayprint:author|<br/>|@@@@|{{Author SMW Data|@@@@|@@@@|@@@@}} }}  -->
 
{{#arrayprint:author|<br/>|@@@@|{{Author SMW Data|@@@@|@@@@|@@@@}} }}  -->

Latest revision as of 12:17, 25 April 2020

Mike Smith

Mike L. Smith