Template:NatsNavboxLines: Difference between revisions

From Vintage Story Wiki
m (test number 2.)
m (Minor fix.)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{replace|{{{0}}}|
{{#invoke:String|replace|source={{#invoke:String|replace|source={{{1}}}|,
| • }}<noinclude>
| • }}| •
This *should* replace all new lines within a string into ' • ', allowing for easier navbox creation. It should also allow two new lines to turn into a single new line.</noinclude>
|<br/>
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 19:25, 24 March 2024

{{{1}}}

[view | edit | history | purge this page]Documentation

This automatically replaces a single new line with ' • ' and two new lines with a single new line.

Template parameters

ParameterDescriptionTypeStatus
StringString

List of links, seperated by new lines.

Stringrequired

Usage

{{NatsNavboxLines
|{{ll|:Category:Guides|Guides}}
{{ll|Frequently_Asked_Questions_(FAQ)|Frequently Asked Questions}}
{{ll|Vintage Story Original Soundtrack|Soundtrack}}
{{ll|Version history|Versions}}
{{ll|Controls|Controls}}
}}
[view | edit | history | purge this page]The above documentation is transcluded from Template:NatsNavboxLines/doc.