v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User talk:JoeClacks"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
:Sorry, thought it was some sort of versioning and I wanted to avoid touching the old templates - how would you suggesting implementing this? [[User:JoeClacks|JoeClacks]] ([[User talk:JoeClacks|talk]]) 21:56, 10 July 2014 (UTC)
 
:Sorry, thought it was some sort of versioning and I wanted to avoid touching the old templates - how would you suggesting implementing this? [[User:JoeClacks|JoeClacks]] ([[User talk:JoeClacks|talk]]) 21:56, 10 July 2014 (UTC)
 +
 +
::It's not your fault. This undocumented "convention" is entirely unnecessary (the wiki code can do an automatic lookup by page name if no parameter is provided in a single template). When I was editing {{tl|creaturelookup/0}} I consolidated the {{tl|creaturelookup/aux}} template into the /0 template (I would've preferred to move the combined template to {{tl|creaturelookup}}, but that would've required editing every creature page.) Dividing the function into multiple templates just makes things more confusing and results in excessive parameter passing. In my option, {{tl|plantlookup}} is the proper name for a template that looks up plants.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 23:04, 10 July 2014 (UTC)

Revision as of 23:04, 10 July 2014

Lookup/1

Just so you know, the existing lookup templates are named such that "/0" just does an automatic lookup based on the page name, so naming the new templates "/1" sort of breaks the convention. The proper solution would be to edit "plantlookup/0" and have it use a different version of "plantlookup/aux" for newer versions (as is done with creaturelookup/0). --Quietust (talk) 21:52, 10 July 2014 (UTC)

Sorry, thought it was some sort of versioning and I wanted to avoid touching the old templates - how would you suggesting implementing this? JoeClacks (talk) 21:56, 10 July 2014 (UTC)
It's not your fault. This undocumented "convention" is entirely unnecessary (the wiki code can do an automatic lookup by page name if no parameter is provided in a single template). When I was editing {{creaturelookup/0}} I consolidated the {{creaturelookup/aux}} template into the /0 template (I would've preferred to move the combined template to {{creaturelookup}}, but that would've required editing every creature page.) Dividing the function into multiple templates just makes things more confusing and results in excessive parameter passing. In my option, {{plantlookup}} is the proper name for a template that looks up plants.--Loci (talk) 23:04, 10 July 2014 (UTC)