Template:StoryLine: Difference between revisions

From The Unofficial Isekai:Slow Life Wiki
Jump to navigation Jump to search
m (Updated template data.)
m (Changed width to 100px.)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
| style="width: 50px; text-align: center" | {{#ifeq:{{{actor|}}}|???|[[{{{actorlink|}}}|???]]|{{#if:{{{actor|}}}|[[{{{actor}}}]]|}}}}
|-
| style="width: 100px; text-align: center;" |
{{#if:{{{actorNPC|}}}
| {{{actorNPC}}}
| {{#if:{{{actorAlias|}}}
    | [[{{{actorLink|}}}|{{{actorAlias}}}]]
    | {{#if:{{{actor|}}}|[[{{{actor}}}]]|}}
  }}
}}
| {{{line}}}
| {{{line}}}
|-
<noinclude>
<noinclude>
<pre>
<pre>
{{StoryLine
{{StoryLine
   | actor =  
   | actor     =  
   | actorlink =  
   | actorNPC  =
   | line =  }}
  | actorAlias =
  | actorLink  =  
   | line       =  }}
</pre>
</pre>
<templatedata>
<templatedata>
Line 14: 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": {
"type": "string"
"type": "string"
},
"actorlink": {
"description": "Specify the page the actor is linked to if the actor is \"???\"."
}
}
},
},
Line 25: Line 42:
"paramOrder": [
"paramOrder": [
"actor",
"actor",
"actorlink",
"actorNPC",
"actorAlias",
"actorLink",
"line"
"line"
]
]

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]].

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
actoractor

no description

Stringoptional
actorNPCactorNPC

Used for NPCs without pages.

Unknownoptional
actorAliasactorAlias

Used if the actor uses a different epithet.

Example
"???" or "Mysterious Voice"
Stringoptional
actorLinkactorLink

Specify the page link if it actorAlias is used.

Unknownoptional
lineline

no description

Stringoptional