Difference between revisions of "Template:Headshot-index"
Jump to navigation
Jump to search
(changed altname to altnametext + added altnamelink in the event generics share the same headshot and its under a different name) |
m (more documentation) |
||
Line 6: | Line 6: | ||
{{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}}{{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 | ||
+ | ---- | ||
+ | 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 | {{Headshot-index | ||
|name= | |name= | ||
Line 11: | Line 16: | ||
|art= | |art= | ||
|altnametext= | |altnametext= | ||
+ | |altnamelink= | ||
|ow= | |ow= | ||
}} | }} | ||
+ | ---- | ||
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 | ||
- altnametext = in the event the character/art has an alternative name | - 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 | + | - 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') | ||
</nowiki></pre></noinclude> | </nowiki></pre></noinclude> |
Revision as of 07:22, 19 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
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}}{{Headshot-index|name=Cultist (Male)|art=Moira|altnametext=Cultist Archer<br>Cultist Mage|altnamelink=Cultist Archer}} ---- {{Headshot-index |name= |exte= |art= |altnametext= |altnamelink= |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 - 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')