Template:Mechanic: Difference between revisions
(Attempt to vertically align chapter text by extending noinclude to line break) |
(Added (?) support for sorting) |
||
Line 4: | Line 4: | ||
|{{{3}}} |
|{{{3}}} |
||
|{{{4}}} |
|{{{4}}} |
||
|style="text-align: center;" |{{{5}}}<noinclude> |
|style="text-align: center;" {{#if:{{{sort|}}}|data-sort-value="{{{sort}}}"}}|{{{5}}}<noinclude> |
||
Don't mind the weird things on this page. Use as described in the documentation (source editing preferred).<br>{{Documentation}}</noinclude> |
Don't mind the weird things on this page. Use as described in the documentation (source editing preferred).<br>{{Documentation}}</noinclude> |
Latest revision as of 10:08, 3 July 2023
|-
|
|{{{2}}} |{{{3}}} |{{{4}}} |style="text-align: center;" |{{{5}}}
Don't mind the weird things on this page. Use as described in the documentation (source editing preferred).
Add a mechanic on the Mechanics table. Use without any additional markup. The template will also create an anchor of the object's name, so there must be no duplicates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
File name | 1 file | File name without square brackets, File: prefix or additional parameters | File | suggested |
Name of the object | 2 name | Name as used very commonly or in-game. An anchor will be created to that name. | String | required |
Other names | 3 other | Other commonly used names for this object. | String | optional |
Summary (description) | 4 desc summary | no description | String | suggested |
Chapters | 5 ch | A ch template (with curly braces) or other text indicating the chapters this object is used in.
| Line | suggested |
Data sort value | sort | If defined, will override the default sorting on chapters. Define starting with ! for mechanics in Prologue and all chapters.
| Line | optional |