Difference between revisions of "Template:WikiHeadshot-index"

From Corruption of Champions II
Jump to navigation Jump to search
m
m
 
(2 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 #929292;><b><u>{{{name|}}}</u></b>{{#if:{{{text|}}}|<br><span style="font-size:80%">{{{text|}}}</span>}}<br>[[File:{{{name|}}}-WikiHeadshot.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 #929292;><b>{{{name|}}}</b>{{#if:{{{text|}}}|<br><span style="font-size:80%">{{{text|}}}</span>}}<br>[[File:{{{name|}}}-WikiHeadshot.png|125px|link={{{name|}}}]]</span></includeonly><noinclude>
 
==Crediting==
 
==Crediting==
 
Inspiration for this index style and dpl usage is from the '''T-Doll Index''' page in the '''IOP Wiki'''. Special thanks to canyada/canada on the MediaWiki discord for the dpl format parameter.
 
Inspiration for this index style and dpl usage is from the '''T-Doll Index''' page in the '''IOP Wiki'''. Special thanks to canyada/canada on the MediaWiki discord for the dpl format parameter.
Line 16: Line 16:
 
{{#dpl:  
 
{{#dpl:  
 
|category= Characters & Art-Moira
 
|category= Characters & Art-Moira
 +
|notcategory = Groups
 
|format=,{{WikiHeadshot-index|name=%TITLE%}},
 
|format=,{{WikiHeadshot-index|name=%TITLE%}},
 
}}<pre>                                                             
 
}}<pre>                                                             
Line 21: Line 22:
 
{{#dpl:  
 
{{#dpl:  
 
|category= Characters & Art-Moira
 
|category= Characters & Art-Moira
 +
|notcategory = Groups
 
|format=,{{WikiHeadshot-index|name=%TITLE%}},
 
|format=,{{WikiHeadshot-index|name=%TITLE%}},
 
}}
 
}}
 
This template can be used under dpl, supposedly creating an automatic and seamless wikiheadshot list. Images should be reformatted to include specific art categories.
 
This template can be used under dpl, supposedly creating an automatic and seamless wikiheadshot list. Images should be reformatted to include specific art categories.
 
</pre></noinclude>
 
</pre></noinclude>

Latest revision as of 08:02, 20 May 2024

Crediting

Inspiration for this index style and dpl usage is from the T-Doll Index page in the IOP Wiki. Special thanks to canyada/canada on the MediaWiki discord for the dpl format parameter.

Addition of a text parameter in the event a character needs one, mainly to do with races and distinguishing special traits, although I'm not sure how to deal with the extra header in solo cases, might be a problem that can be fixed is placed in a table.--Spotty McBumble Fuck (talk) 10:20, 14 May 2024 (UTC)

Usage

Hethia
(Boreal Elf)
Hethia-WikiHeadshot.png
Hana
Hana-WikiHeadshot.png

Standard Solo Usage:
{{WikiHeadshot-index|name=|text=}}
Parameters:
 - name = Character page name
 - text = Additional text if necessary, if unused, simply remove the entire "text =" 

Hethia
Hethia-WikiHeadshot.png
Cait
Cait-WikiHeadshot.png

                                                             
Integration with DynamicPageList:
{{#dpl: 
|category= Characters & Art-Moira
|notcategory = Groups
|format=,{{WikiHeadshot-index|name=%TITLE%}},
}}
This template can be used under dpl, supposedly creating an automatic and seamless wikiheadshot list. Images should be reformatted to include specific art categories.