Template:StoryLine: Difference between revisions
Jump to navigation
Jump to search
FaeriMagic (talk | contribs) m (Added if param.) |
FaeriMagic (talk | contribs) m (Changed width to 100px.) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
| style="width: | |- | ||
| style="width: 100px; text-align: center;" | | |||
{{#if:{{{actorNPC|}}} | |||
| {{{actorNPC}}} | |||
| {{#if:{{{actorAlias|}}} | |||
| [[{{{actorLink|}}}|{{{actorAlias}}}]] | |||
| {{#if:{{{actor|}}}|[[{{{actor}}}]]|}} | |||
}} | |||
}} | |||
| {{{line}}} | | {{{line}}} | ||
<noinclude> | <noinclude> | ||
<pre> | |||
{{StoryLine | |||
| actor = | |||
| actorNPC = | |||
| actorAlias = | |||
| actorLink = | |||
| line = }} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 7: | Line 23: | ||
"actor": { | "actor": { | ||
"type": "string" | "type": "string" | ||
}, | |||
"actorNPC": { | |||
"description": "Used for NPCs without pages." | |||
}, | |||
"actorAlias": { | |||
"description": "Used if the actor uses a different epithet.", | |||
"example": "\"???\" or \"Mysterious Voice\"", | |||
"type": "string" | |||
}, | |||
"actorLink": { | |||
"description": "Specify the page link if it actorAlias is used." | |||
}, | }, | ||
"line": { | "line": { | ||
Line 12: | Line 39: | ||
} | } | ||
}, | }, | ||
"description": "This template is for creating lines in [[Template:Chapter]]." | "description": "This template is for creating lines in [[Template:Chapter]].", | ||
"paramOrder": [ | |||
"actor", | |||
"actorNPC", | |||
"actorAlias", | |||
"actorLink", | |||
"line" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 01:29, 20 June 2025
|- | style="width: 100px; text-align: center;" |
| {{{line}}}
{{StoryLine | actor = | actorNPC = | actorAlias = | actorLink = | line = }}
This template is for creating lines in [[Template:Chapter]].
Parameter | Description | Type | Status | |
---|---|---|---|---|
actor | actor | no description | String | optional |
actorNPC | actorNPC | Used for NPCs without pages. | Unknown | optional |
actorAlias | actorAlias | Used if the actor uses a different epithet.
| String | optional |
actorLink | actorLink | Specify the page link if it actorAlias is used. | Unknown | optional |
line | line | no description | String | optional |