Difference between revisions of "Template:Headshot-index"

From Corruption of Champions II
Jump to navigation Jump to search
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display: inline-block; text-align:center; font-size:120%; font-family:Poppins; margin:-1.6px; border: 2px solid gray;><b><u>{{{name|}}}</u></b><br>{{#if: {{{exte|}}}|[[File:{{{name|}}}-{{{art|}}}-Headshot-{{{exte|}}}.png|125px|link={{{name|}}}]]|[[File:{{{name|}}}-{{{art|}}}-Headshot.png|125px|link={{{name|}}}]]}}</span></includeonly><noinclude>
+
<includeonly><span style="display: inline-block; text-align:center; font-size:120%; margin:-1.0px; border: 2px solid gray;><b>{{#if: {{{altname|}}}|{{{altname|}}}|{{{name|}}}}}</b><br>{{#if: {{{exte|}}}|[[File:{{{name|}}}-{{{art|}}}-Headshot-{{{exte|}}}.png|125px|link={{{name|}}}]]|[[File:{{{name|}}}-{{{art|}}}-Headshot.png|125px|link={{{name|}}}]]}}</span></includeonly><noinclude>
 
==Crediting==
 
==Crediting==
 
Based on the implementation of [[:Template:WikiHeadshot-index]], modified to for characters that have more than one headshot, mainly for generics. The problem is, I don't think this implementation can use DPL considering its only one character/page and there is a repeat, I may have to do this manually--[[User:Spotty McBumble Fuck|Spotty McBumble Fuck]] ([[User talk:Spotty McBumble Fuck|talk]]) 16:09, 9 May 2024 (UTC)
 
Based on the implementation of [[:Template:WikiHeadshot-index]], modified to for characters that have more than one headshot, mainly for generics. The problem is, I don't think this implementation can use DPL considering its only one character/page and there is a repeat, I may have to do this manually--[[User:Spotty McBumble Fuck|Spotty McBumble Fuck]] ([[User talk:Spotty McBumble Fuck|talk]]) 16:09, 9 May 2024 (UTC)
  
 
==Usage==
 
==Usage==
{{Headshot-index|name = Harpy Thief|exte=1|art=DCL}}
+
{{Headshot-index|name = Harpy Thief|exte=1|art=DCL}}{{Headshot-index|name = Harpy Thief|exte=2|art=DCL}}{{Headshot-index|name = Benny|art=DCL}}{{Headshot-index|name = Benny|art=DCL|altname=BenBoi}}
{{Headshot-index|name = Harpy Thief|exte=2|art=DCL}}
 
{{Headshot-index|name = Benny|art=DCL}}
 
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Headshot-index
 
{{Headshot-index
Line 12: Line 10:
 
|exte=
 
|exte=
 
|art=
 
|art=
 +
|altname=
 
}}
 
}}
 
Parameters:
 
Parameters:
 
- name = use the exact page name
 
- name = use the exact page name
 
- exte = refers to the extension number in the file name (i.e. Harpy Thief-Headshot-1.png and Harpy Thief-Headshot-2.png), for those without extensions, simply remove/exclude exte
 
- exte = refers to the extension number in the file name (i.e. Harpy Thief-Headshot-1.png and Harpy Thief-Headshot-2.png), for those without extensions, simply remove/exclude exte
 +
- altname = in the event the character/art has an alternative name
 
</nowiki></pre></noinclude>
 
</nowiki></pre></noinclude>

Latest revision as of 05:03, 17 May 2024

Crediting

Based on the implementation of Template:WikiHeadshot-index, modified to for characters that have more than one headshot, mainly for generics. The problem is, I don't think this implementation can use DPL considering its only one character/page and there is a repeat, I may have to do this manually--Spotty McBumble Fuck (talk) 16:09, 9 May 2024 (UTC)

Usage

Harpy Thief
Harpy Thief-DCL-Headshot-1.png
Harpy Thief
Harpy Thief-DCL-Headshot-2.png
Benny
Benny-DCL-Headshot.png
BenBoi
Benny-DCL-Headshot.png

{{Headshot-index
|name= 
|exte=
|art=
|altname=
}}
Parameters:
- name = use the exact page name
- exte = refers to the extension number in the file name (i.e. Harpy Thief-Headshot-1.png and Harpy Thief-Headshot-2.png), for those without extensions, simply remove/exclude exte
- altname = in the event the character/art has an alternative name