Difference between revisions of "Template:CharHead"

From Corruption of Champions II
Jump to navigation Jump to search
m (div style float left solves issue of magic breakline)
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="float:left;"><div class="thumbinner" style="width:125px;">[[Image:{{{2|}}}.png|{{{wid|125}}}px||{{{1|}}}]][[{{{1|}}}]]{{#if:{{{text|}}}|<br>{{{text|}}}}}</div></div></includeonly><noinclude>
+
<includeonly><div class="thumbinner" style="float:left; width:{{{wid|125}}}px;">[[Image:{{{2|}}}.png|{{{wid|125}}}px|{{#if:{{{1|}}}|{{{1|}}}]][[{{{1|}}}]]|]]}}{{#if:{{{text|}}}|<br>{{{text|}}}}}</div></includeonly><noinclude>
 
==Crediting==
 
==Crediting==
Adapted and modified from the Detective Conan World wiki's '''Template:Char'''
+
Adapted and modified from the Detective Conan World wiki's '''Template:Char'''. Special thanks to dinoguy1000 on the mediawiki discord for the help.
  
 
==Comments==
 
==Comments==
 
Despite not being in this common.css, it seems that the thumbinner class is a 'built-in' CSS class, going by the documentation found in Wikipedia's '''Wikipedia:Catalogue_of_CSS_classes'''--[[User:Spotty McBumble Fuck|Spotty McBumble Fuck]] ([[User talk:Spotty McBumble Fuck|talk]]) 10:30, 19 March 2024 (UTC)
 
Despite not being in this common.css, it seems that the thumbinner class is a 'built-in' CSS class, going by the documentation found in Wikipedia's '''Wikipedia:Catalogue_of_CSS_classes'''--[[User:Spotty McBumble Fuck|Spotty McBumble Fuck]] ([[User talk:Spotty McBumble Fuck|talk]]) 10:30, 19 March 2024 (UTC)
 +
 +
--This template may become obsolete with Wiki R&D of the [[:Template:WikiHeadshot-index]] and the use of DynamicPageLists --[[User:Spotty McBumble Fuck|Spotty McBumble Fuck]] ([[User talk:Spotty McBumble Fuck|talk]]) 12:17, 9 May 2024 (UTC)
  
 
==Usage==
 
==Usage==
{{CharHead|Catalina|Catalina-Moira-WikiHeadshot|text=text here}}{{CharHead|Clara|Clara-Moira-WikiHeadshot}}{{Clear}}
+
{{CharHead|Catalina|Catalina-WikiHeadshot|text=text here}}{{CharHead|Clara|Clara-WikiHeadshot}}
 +
{{CharHead||Catalina-WikiHeadshot}}{{Clear}}
 
<pre><nowiki>
 
<pre><nowiki>
 
{{CharHead
 
{{CharHead
Line 14: Line 17:
 
|[size] - custom size of image, default is 125 and can be left blank
 
|[size] - custom size of image, default is 125 and can be left blank
 
|text = whatever text is needed
 
|text = whatever text is needed
 +
}}
 
</nowiki></pre></noinclude>
 
</nowiki></pre></noinclude>

Latest revision as of 16:13, 8 August 2024

Crediting

Adapted and modified from the Detective Conan World wiki's Template:Char. Special thanks to dinoguy1000 on the mediawiki discord for the help.

Comments

Despite not being in this common.css, it seems that the thumbinner class is a 'built-in' CSS class, going by the documentation found in Wikipedia's Wikipedia:Catalogue_of_CSS_classes--Spotty McBumble Fuck (talk) 10:30, 19 March 2024 (UTC)

--This template may become obsolete with Wiki R&D of the Template:WikiHeadshot-index and the use of DynamicPageLists --Spotty McBumble Fuck (talk) 12:17, 9 May 2024 (UTC)

Usage

CatalinaCatalina
text here
Catalina-WikiHeadshot.png
{{CharHead
|[charname] - name of character without the []
|[filename] - filename without the [] and .png
|[size] - custom size of image, default is 125 and can be left blank
|text = whatever text is needed
}}