Difference between revisions of "Template:Headshot-index"
Jump to navigation
Jump to search
m (more documentation) |
m |
||
Line 1: | Line 1: | ||
− | <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> | + | <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>{{#if: {{{text|}}}|<br><small>{{{text|}}}</small>}}<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|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}} | + | {{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|text=(sample)}}{{Headshot-index|name=Cultist (Male)|art=Moira|altnametext=Cultist Archer<br>Cultist Mage|altnamelink=Cultist Archer}} |
<pre><nowiki> | <pre><nowiki> | ||
If the parameter is empty, just remove it entirely to save space | If the parameter is empty, just remove it entirely to save space | ||
---- | ---- | ||
Sample Cases (above): | Sample Cases (above): | ||
− | {{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}} | + | {{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|text=(sample)}}{{Headshot-index|name=Cultist (Male)|art=Moira|altnametext=Cultist Archer<br>Cultist Mage|altnamelink=Cultist Archer}} |
---- | ---- | ||
{{Headshot-index | {{Headshot-index | ||
Line 18: | Line 18: | ||
|altnamelink= | |altnamelink= | ||
|ow= | |ow= | ||
+ | |text= | ||
}} | }} | ||
---- | ---- | ||
Line 26: | Line 27: | ||
- altnamelink = in the event the art file name is different from the actual name, the link can be changed to this parameter | - altnamelink = in the event the art file name is different from the actual name, the link can be changed to this parameter | ||
- ow = in the event the character has no art and an overwrite must be used to use the placeholder image (use any value or just '1') | - ow = in the event the character has no art and an overwrite must be used to use the placeholder image (use any value or just '1') | ||
+ | - text = in the event other text needs to be provided | ||
</nowiki></pre></noinclude> | </nowiki></pre></noinclude> |
Revision as of 01:59, 21 June 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
Benny
BenBoi
Giant Boar
(sample)
Cultist Archer
Cultist Mage
If the parameter is empty, just remove it entirely to save space ---- Sample Cases (above): {{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|text=(sample)}}{{Headshot-index|name=Cultist (Male)|art=Moira|altnametext=Cultist Archer<br>Cultist Mage|altnamelink=Cultist Archer}} ---- {{Headshot-index |name= |exte= |art= |altnametext= |altnamelink= |ow= |text= }} ---- 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 - altnamelink = in the event the art file name is different from the actual name, the link can be changed to this parameter - ow = in the event the character has no art and an overwrite must be used to use the placeholder image (use any value or just '1') - text = in the event other text needs to be provided