Template:Parameters table: Difference between revisions

From Beyond These Stars Official Wiki
Created for consistent template parameter tables
 
Now uses the template doc template
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<tr><th>Parameter</th><th>Purpose</th></tr>
<tr><th>Parameter</th><th>Purpose</th></tr>
{{#if: {{{1|}}} |
{{#if: {{{1|}}} |
<tr><td><code>{{{1}}}</code></td><td>{{{2|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{1}}}</code></td><td>{{{2|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{3|}}} |
{{#if: {{{3|}}} |
<tr><td><code>{{{3}}}</code></td><td>{{{4|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{3}}}</code></td><td>{{{4|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{5|}}} |
{{#if: {{{5|}}} |
<tr><td><code>{{{5}}}</code></td><td>{{{6|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{5}}}</code></td><td>{{{6|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{7|}}} |
{{#if: {{{7|}}} |
<tr><td><code>{{{7}}}</code></td><td>{{{8|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{7}}}</code></td><td>{{{8|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{9|}}} |
{{#if: {{{9|}}} |
<tr><td><code>{{{9}}}</code></td><td>{{{10|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{9}}}</code></td><td>{{{10|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{11|}}} |
{{#if: {{{11|}}} |
<tr><td><code>{{{11}}}</code></td><td>{{{12|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{11}}}</code></td><td>{{{12|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{13|}}} |
{{#if: {{{13|}}} |
<tr><td><code>{{{13}}}</code></td><td>{{{14|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{13}}}</code></td><td>{{{14|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{15|}}} |
{{#if: {{{15|}}} |
<tr><td><code>{{{15}}}</code></td><td>{{{16|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{15}}}</code></td><td>{{{16|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{17|}}} |
{{#if: {{{17|}}} |
<tr><td><code>{{{17}}}</code></td><td>{{{18|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{17}}}</code></td><td>{{{18|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{19|}}} |
{{#if: {{{19|}}} |
<tr><td><code>{{{19}}}</code></td><td>{{{20|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{19}}}</code></td><td>{{{20|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{21|}}} |
{{#if: {{{21|}}} |
<tr><td><code>{{{21}}}</code></td><td>{{{22|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{21}}}</code></td><td>{{{22|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{23|}}} |
{{#if: {{{23|}}} |
<tr><td><code>{{{23}}}</code></td><td>{{{24|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{23}}}</code></td><td>{{{24|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{25|}}} |
{{#if: {{{25|}}} |
<tr><td><code>{{{25}}}</code></td><td>{{{26|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{25}}}</code></td><td>{{{26|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{27|}}} |
{{#if: {{{27|}}} |
<tr><td><code>{{{27}}}</code></td><td>{{{28|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{27}}}</code></td><td>{{{28|Unspecified}}}</td></tr>
}}
}}
{{#if: {{{29|}}} |
{{#if: {{{29|}}} |
<tr><td><code>{{{29}}}</code></td><td>{{{30|Unspecified}}}</td></tr>
<tr><td style="white-space: nowrap; width: 1%;"><code>{{{29}}}</code></td><td>{{{30|Unspecified}}}</td></tr>
}}
}}
</table></includeonly><noinclude>
</table></includeonly><noinclude>
 
{{Template doc
Formats a list of template parameters in a nice table for developer use.
|overview=Formats a list of template parameters in a nice table for developer use.
 
|usage=Pass this to the <code>parameters</code> parameter on the [[Template:Template doc]].
== Usage ==
|parameters={{Parameters_table
 
{{Parameters_table
| 1 | First parameter's name
| 1 | First parameter's name
| 2 | First parameter's purpose
| 2 | First parameter's purpose
Line 61: Line 59:
| 30 | Fifteenth parameter's purpose
| 30 | Fifteenth parameter's purpose
}}
}}
 
|examples=This table was created with this template.
This table was created with this template.
|copypasta=<pre>{{Parameters_table
 
| first  | purpose
 
| second | purpose
[[Category:  Developer templates]]
| third  | purpose
| fourth | purpose
| fifth  | purpose
}}</pre>
|add_categories=[[Category:  Developer templates]]
}}
</noinclude>
</noinclude>

Latest revision as of 19:58, 12 September 2026

Formats a list of template parameters in a nice table for developer use.

Usage

Pass this to the parameters parameter on the Template:Template doc.

ParameterPurpose
1 First parameter's name
2 First parameter's purpose
3 Second parameter's name
4 Second parameter's purpose
... ...
29 Fifteenth parameter's name
30 Fifteenth parameter's purpose

Examples

This table was created with this template.

Copypasta

{{Parameters_table
| first  | purpose
| second | purpose
| third  | purpose
| fourth | purpose
| fifth  | purpose
}}