Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Tales from Chyria
Search
Editing
Template talk:If empty
(section)
From Tales from Chyria
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
New topic
History
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!
== Error transclusion issue with the new Lua version == Since [[Module:If empty]] went live, all uses of {{tl|Infobox mountain}} are transcluding errors. There is just one {{tl|error}} check in this template, to ensure that the parameter '''name''' is given. I verified with {{tl|Infobox mountain/sandbox}} that the old template did not transclude false errors unless the name truly was not given. [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 18:33, 26 December 2014 (UTC) :{{ping|Codehydro|Jackmcbarn}} any comments? Can either of you fix this? I'm not following what you mean by "fragile, convoluted, hacky way to do it". Thanks, [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 22:47, 26 December 2014 (UTC) :* Please describe how you found this error and what exactly is wrong. I do not see any problems on any of the pages that use {{t|Infobox mountain}} β[[User:Codehydro|<span style="color:#aaaaaa;font-family:Unicode;font-size:12pt;">'''Code'''</span>]][[User talk:Codehydro|<span style="color:#5577aa;">'''Hydro'''</span>]] 23:48, 26 December 2014 (UTC) :**Look at the pages transcluding {{tl|error}}s in [//en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3AError&namespace=0 main namespace]. Most are mountain articles such as [[Mount Kilimanjaro]], which transclude {{tl|Infobox mountain}}. There are no actual errors in these articles, and that's why I call these "false transclusions". {{tl|error}} should only be transcluded in these articles when the name is missing and the error message "Mountain name required" is shown at the top of the infobox. This is how I patrol for these, by looking for {{tl|error}} transclusions. [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 00:04, 27 December 2014 (UTC) :**See [[Template:If empty/testcases]]. [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 02:35, 27 December 2014 (UTC) :*** Thanks for pointing this out. I've rewritten the error check at {{t|Infobox mountain}}'s sandbox as not to use this module at all. While using {{t|If empty}} to produce a transclusion is clever, it's not at all a common use (based on the relatively tiny number of transclusions of {{t|error}} in template space). The purpose of this module is to check multiple variables... even though this module is much less expensive than the old wikitext template, it is more expensive than a simple #if call, which is what should be used to check a single empty param. While I have an idea how to make the module avoid false transfusions, I do not want to encourage this usage. β[[User:Codehydro|<span style="color:#aaaaaa;font-family:Unicode;font-size:12pt;">'''Code'''</span>]][[User talk:Codehydro|<span style="color:#5577aa;">'''Hydro'''</span>]] 04:50, 27 December 2014 (UTC) :****Thanks, {{U|Codehydro}}. Now I see that similar changes are needed for {{tl|Infobox mountain pass}}, {{tl|Infobox cave}} and {{tl|Infobox landform}}. I'm willing to make these fixes myself, but thought I'd offer them to you as an opportunity to build up your template-edit-request track record, if you would like to do that. Thanks again, [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 14:37, 27 December 2014 (UTC) :**** Thanks. I've applied the change to each of those templates. None are protected so doesn't really help me get template editor at all since I've no shortage of non-protected edits, but the thoughtfulness is appreciated. β[[User:Codehydro|<span style="color:#aaaaaa;font-family:Unicode;font-size:12pt;">'''Code'''</span>]][[User talk:Codehydro|<span style="color:#5577aa;">'''Hydro'''</span>]] 15:17, 27 December 2014 (UTC) :****: Great. One more: {{tl|Infobox climbing area}}. [[User:Wbm1058|Wbm1058]] ([[User talk:Wbm1058|talk]]) 15:50, 27 December 2014 (UTC) :****::{{ping|Wbm1058|Codehydro}} This is actually a bug in Module:Arguments. Once I get it fixed, this won't be a problem anymore. You don't need to "fix" any more templates that use this, as they'll all be fixed again soon. [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 05:00, 28 December 2014 (UTC)
Summary:
Please note that all contributions to Tales from Chyria may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
Chyria Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs