Template:Array/doc: Difference between revisions

Kwwxis (talk | contribs)
Created page with "{{Documentation/Header}} {{High risk}} {{Lua|Array}} Divides a string into a formatted list of substrings. ==Syntax== '''Required Parameters:''' *'''1''': arrayString - the input string, each item expected to be separated by the <code>separator</code> parameter. *'''2''': separator - the character or substring to split on. ** <code>{newline}</code> is replaced with a newline. ** <code>{space}</code> is replaced with a space. '''Format Parameters:'''<br /> If format is..."
 
Raven.Familiar (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
{{High risk}}
{{High Risk}}
{{Lua|Array}}
{{Lua|Array}}
Divides a string into a formatted list of substrings.
Divides a string into a formatted list of substrings.
Line 71: Line 71:
;Template in format example 1
;Template in format example 1
<pre>{{Array|Venti;Jean;Diluc|;|{{Character|{item}|50}}}}</pre>
<pre>{{Array|Venti;Jean;Diluc|;|{{Character|{item}|50}}}}</pre>
{{Array|Venti;Jean;Diluc|;|{{Character|{item}|50}}}}
{{Array|Nanafey;Kiana;Blade|;|{{Character|{item}|50}}}}


;Template in format example 2
;Template in format example 2
<pre>{{Array|Venti;Jean;Diluc|;|²{Character¦{item}¦50}²|template=1}}</pre>
<pre>{{Array|Venti;Jean;Diluc|;|²{Character¦{item}¦50}²|template=1}}</pre>
{{Array|Venti;Jean;Diluc|;|^2{Character¦{item}¦50}^2|template=1}}
{{Array|Nanafey;Kiana;Blade|;|^2{Character¦{item}¦50}^2|template=1}}


;Multi-character separator example
;Multi-character separator example