Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template talk
:
Infobox
(section)
Add topic
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Template:Infobox biathlete produces an unwanted header even when there isn't any data shown == [[Template:Infobox biathlete]] produces an unwanted header even when there isn't any data shown. I'm not sure what is triggering this or how to fix this. Template:Infobox biathlete wraps [[Template:Infobox sportsperson]]. The issue is in the "Sports" section (from header33 to data55 ({{para|module2}})). Template:Infobox biathlete's entire data is via {{para|module2}}. Example of the issue: {{Infobox biathlete | full_name = full name }} <syntaxhighlight lang="wikitext"> {{Infobox biathlete | full_name = full name }} </syntaxhighlight> [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 19:18, 3 July 2026 (UTC) :This is a weird one... My '''guess''' is that this is related to [[Special:Diff/1360755019|this change]] that {{U|Primefac}} made to {{tl|Infobox sportsperson}} regarding the use of {{para|autoheaders|yes}}. I did some testing and in the above example, {{para|module2}} definitely should be null so I see no reason that this should be happening... It may be that due Infobox sportsperson being a wrapper, info doesn't percolate correctly? :{{ping|Trappist the monk}} You seem to really understand [[Module:Template wrapper]], having written most of it... Can you perhaps spot an issue here or shed any light on where the problem may lay? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 20:09, 3 July 2026 (UTC) ::Doesn't the table caption arise from this snippet in {{tlx|infobox sportsperson}}? :::<syntaxhighlight lang="wikitext" inline="1">|title=...<div class="fn">{{If empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div>...</syntaxhighlight> ::That being true, this has nothing to do with [[Module:Template wrapper]]. ::β[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 21:27, 3 July 2026 (UTC) :::{{ping|Trappist the monk}} I think you are missing the issue here... The problem is not the title. It is the presence of the header saying "Sport" which should not be appearing... '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 21:31, 3 July 2026 (UTC) ::::Right. Same sort of issue that has nothing to do with [[Module:Template wrapper]]. In {{tlx|infobox sportsperson}} this: :::::<syntaxhighlight lang="wikitext" inline="1">| header33 = {{#ifeq:{{If empty|{{{child|}}}|{{{embed|}}}}}|yes||{{If empty|{{{career_header|}}}|Sport}}}}</syntaxhighlight> ::::{{tld|infobox sportsperson}} is the wrapped template so neither of {{para|child}} and {{para|embed}} are set to <code>yes</code>; {{para|career_header}} is not set so {{para|header33}} gets <code>Sport</code>. ::::β[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 22:06, 3 July 2026 (UTC) :::::{{ping|Trappist the monk}} sorry but you still aren't following. The problem is that in {{tl|Infobox sportsperson}} autoheaders is turned on. Despite there '''seemingly '''being nothing passed to {{para|module2}} by {{tl|Infobox biathlete}}, {{tl|Infobox sportsperson}} is seeing that value as not null and therefore triggering the autoheader to turn on. It doesn't matter what the value for {{para|header33}} is in sportsperson, it should not be displaying at all in the example that {{u|Gonnym}} supplied at the start of this thread. I want to be clear, I'm not suggesting there is a problem with the Template wrapper module... I'm just trying to figure out WHERE the problem lies and why it isn't working at the moment. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 22:12, 3 July 2026 (UTC) ::::::Copy the entire value assigned to {{para|module2}} in {{tlx|Infobox biathlete}} ({{tld|infobox ...}}). Paste that into [[Special:ExpandTemplates]]. Click ok. Note the result. ::::::β[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 22:47, 3 July 2026 (UTC) :::::::Much appreciated Trappist! :::::::{{ping|Gonnym}} it looks like {{code|<nowiki><templatestyles src="Module:Infobox/styles.css"></templatestyles></nowiki>}} is being supplied to {{para|module2}}... So somewhere we have to perform the full check. Either in {{tl|Infobox sportsperson}} or in {{tl|Infobox biathlete}}... :::::::OR we need to somehow modify {{tl|Infobox}} to not generate the template styles for an empty Infobox. Either one would work me thinks. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 23:06, 3 July 2026 (UTC) ::::::::The module should strip out templatestyles if that is the only thing that is passed when it checks for emptyness. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 07:27, 4 July 2026 (UTC) :::::::::Ok, looking at the code in debug it seems that at [[Module:Infobox#L-379]] the data's value is <code>'"`UNIQ--templatestyles-00000000-QINU`"'</code> and does not pass the if check. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 07:41, 4 July 2026 (UTC) ::::::::::@[[User:Izno|Izno]] can the module be modified to ignore rows if this is the only data in it? [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 09:41, 6 July 2026 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template talk
:
Infobox
(section)
Add topic