Difference between revisions of "Template:Part config"
From Kerbal Space Program Wiki
MasterShadow (talk | contribs) |
MasterShadow (talk | contribs) |
||
Line 3: | Line 3: | ||
<!--<pre style="white-space:pre-wrap;">{{{2}}}</pre>}} --><!-- The original template --> | <!--<pre style="white-space:pre-wrap;">{{{2}}}</pre>}} --><!-- The original template --> | ||
<pre<includeonly></includeonly> style="white-space:pre-wrap;"><!-- | <pre<includeonly></includeonly> style="white-space:pre-wrap;"><!-- | ||
− | --><noinclude>{{#if:{{{2|}}}|<noinclude>{{{2}}}<noinclude>|Sample text | + | --><noinclude>{{#if:{{{2|}}}|</noinclude>{{{2}}}<noinclude>|Sample text |
on several lines</noinclude>}}<!-- | on several lines</noinclude>}}<!-- | ||
--></pre> | --></pre> | ||
<includeonly>[[Category:Part configuration files|{{#titleparts:{{PAGENAME}}|1|{{#if: {{#titleparts:{{PAGENAME}}|1|4}}|3|2}}}}]]</includeonly><noinclude>{{Documentation}}</noinclude> | <includeonly>[[Category:Part configuration files|{{#titleparts:{{PAGENAME}}|1|{{#if: {{#titleparts:{{PAGENAME}}|1|4}}|3|2}}}}]]</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 00:13, 31 October 2021
{{#if: {{{2}}}|Sample text on several lines
Usage
{{Part config|Part name|2=Config file}}
# | Optional | Description | Default |
---|---|---|---|
1 | Yes | The part's name. Creates a link to it when set. | Not set/a part |
2 | Yes | The part's config without <pre> tags. When multiple curly brackets (}) are in the configuration directly together use the HTML entity }. Most likely this has to be given explicitly (2=...). | Not set/Hidden |
This template automatically adds the page to Category:Part configuration files.
The above documentation is transcluded from Template:Part config/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |