Template:Role: Difference between revisions

From Alfred Jodocus Kwak Wiki
No edit summary
No edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
</noinclude>
Automatically gets the episode number for further queries splitting PAGENAME by a space and getting the last item.<br>e.g. '1' from [[Alfred J. Kwak Episode 1]]


<div style="display:inline-block; margin-right:5px;">
This template utilizes the following templates:<br>
{| class="rolecard" style="width: auto; padding: 2px; border-spacing: 2px; border-style: solid; border-width: 1px; border-color: grey;"
[[Template:Card]] - Barebones card table.<br>
|style="padding: 0; width: 90px; max-width: 90px;"|
[[Template:Staff_Name]] - Stylized staff-name (TODO: delete and use [[User:Dougurasu]]'s version instead(?)).<br>
<p>[[File:{{{char_image}}}|x90px]]</p>
[[Template:CharVA]] - Get character voice actor by language and episode number.<br>
|style="padding: 0; height: 90px; max-height: 90px; width: 120px; max-width: 120px; text-align: left; display: inline-flex; flex-direction: column; justify-content: space-between; align-items: flex-start;"|
 
<p>{{{2}}}</p>
Usage:
<p>{{{char_role}}}</p>
<pre>{{Role|JPN|Henk de Mol|Main}}</pre>
|style="padding: 0; height: 90px; max-height: 90px; width: 120px; max-width: 120px; text-align: right; display: inline-flex; flex-direction: column; justify-content: space-between; align-items: flex-end;"|
 
<p>{{Actor_Name|{{CharVA|{{{1}}}|{{#explode:{{PAGENAME}}| |-1}}|{{{2}}}}}}}</p>
<!--{{Role|JPN|Henk de Mol|Main}}-->
<p>{{{1}}}</p>
</noinclude>{{Card
|style="padding: 0; width: 90px; max-width: 90px;"|
|{{{2}}}
<p>[[File:{{{staff_image}}}|x90px]]</p>
|{{{3}}}
|}
|{{Staff_Name|{{CharVA|{{{1}}}|{{#explode:{{PAGENAME}}| |-1}}|{{{2}}}}}}}
</div>
|{{{1}}}
|[[File:{{PAGENAME}}_{{{2}}}.jpg|x90px]]
|[[File:{{CharVA|{{{1}}}|{{#explode:{{PAGENAME}}| |-1}}|{{{2}}}}}_Role.jpg|x90px]]
}}

Latest revision as of 19:22, 28 November 2025

Automatically gets the episode number for further queries splitting PAGENAME by a space and getting the last item.
e.g. '1' from Alfred J. Kwak Episode 1

This template utilizes the following templates:
Template:Card - Barebones card table.
Template:Staff_Name - Stylized staff-name (TODO: delete and use User:Dougurasu's version instead(?)).
Template:CharVA - Get character voice actor by language and episode number.

Usage:

{{Role|JPN|Henk de Mol|Main}}


[[File:Role_{{{2}}}.jpg|x90px]]

{{{2}}}

{{{3}}}

N/A

{{{1}}}

[[File:

N/A_Role.jpg|x90px]]