Template:Headshot-index:修订间差异
模板页面
更多操作
src->Spotty McBumble Fuck addition of overwrite |
src->Spotty McBumble Fuck changed altname to altnametext + added altnamelink in the event generics share the same headshot and its under a different name |
||
| 第1行: | 第1行: | ||
<includeonly><span style="display: inline-block; text-align:center; font-size:120%; margin:-1.0px; border: 2px solid gray;><b>{{#if: {{{ | <includeonly><span style="display: inline-block; text-align:center; font-size:120%; margin:-1.0px; border: 2px solid gray;><b>{{#if: {{{altnametext|}}}|{{{altnametext|}}}|{{{name|}}}}}</b><br>{{#if: {{{ow|}}}|[[File:CoC2 Icon BuntCake.png|125px|link={{{name|}}}]]|{{#if: {{{exte|}}}|[[File:{{{name|}}}-{{{art|}}}-Headshot-{{{exte|}}}.png|125px|link={{#if:{{{altnamelink|}}}|{{{altnamelink|}}}|{{{name|}}}}}]]|[[File:{{{name|}}}-{{{art|}}}-Headshot.png|125px|link={{#if:{{{altnamelink|}}}|{{{altnamelink|}}}|{{{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=2|art=DCL}}{{Headshot-index|name = Benny|art=DCL}}{{Headshot-index|name = Benny|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|altnametext=BenBoi}}{{Headshot-index|name=Giant Boar|ow=1}}{{Headshot-index|name=Cultist (Male)|art=Moira|altnametext=Cultist Archer<br>Cultist Mage|altnamelink=Cultist Archer}} | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Headshot-index | {{Headshot-index | ||
| 第10行: | 第10行: | ||
|exte= | |exte= | ||
|art= | |art= | ||
| | |altnametext= | ||
|ow= | |ow= | ||
}} | }} | ||
| 第16行: | 第16行: | ||
- 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 | ||
- | - altnametext = in the event the character/art has an alternative name | ||
- ow = in the event the character has no art and an overwrite must be used to use the placeholder image | - ow = in the event the character has no art and an overwrite must be used to use the placeholder image | ||
</nowiki></pre></noinclude> | </nowiki></pre></noinclude> | ||
2024年6月19日 (三) 15:17的版本
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
Benny
BenBoi
Giant Boar
Cultist Archer
Cultist Mage
File:Cultist (Male)-Moira-Headshot.png
{{Headshot-index
|name=
|exte=
|art=
|altnametext=
|ow=
}}
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
- altnametext = in the event the character/art has an alternative name
- ow = in the event the character has no art and an overwrite must be used to use the placeholder image