ENWiki talk:Templates

From ENWiki

Jump to: navigation, search

What's the purpose of this page? I'm just curious, the links go to pictures that don't show up, they have to be formatted like: [[Image:XXX.png]], no directories are necessary. And is this page just to be a list of the different kinds of smilies available? --Ishmayl 14:15, 9 July 2008 (UTC)

This would be far better served by having a Category:Templates, with subcategories, methinks. withak (talk) 14:19, 9 July 2008 (UTC)

Agreed - not to mention, if all the templates are for is just to show the smilies, then one page could be created, using tables or styling, that show all the smilies, with coding beneath to show how to access them... --Ishmayl 14:22, 9 July 2008 (UTC)

It was a work in progress

Folks, the page was incomplete at the time of your posting, uploading each of those smilies takes time, and the only way I could find to do it was to place a link to the image first, then click on it to upload it.

The item behind the page as a whole is to act as a central repository for templates so that everyone knows what has already been created. I have added a section below the smilies for the monster templates for example.

  • Use Special:Upload (or the "Upload file" link in the left sidebar) to upload files. withak (talk) 13:37, 10 July 2008 (UTC)
  • I've created Category:Icon templates. withak (talk) 14:09, 10 July 2008 (UTC)
  • Removed the extra carriage return between the image tag and the category tag that was being pulled though with the template causing layout issues when the icon is used inline.
  • I've added Regeneration=, Immune= and Resist= to the Styled template. I've also added SpecialDefenses = for compatability between the the unstyled and styled versions (unfortunately I'm unable to do the same for the Defences= line because conditional IF statements are not enabled in the wiki).
  • All of the [xxx] lines can now be excluded from the stat list, although it is still necessary to include the line title for these lines if they are used, for the same reason as above. If I put the optional titles in the template then they are always included, even if the data following them is absent.
  • Likewise the styled power block has been updated and expanded for compatability. I have also added a styled simple power block that ommits the bracketed details after the title.

I've now updated the styled creature template so that it is completely compatable with the unstyled version. It will adapt to include either variation of the Defenses/SpecialDefenses lines. In addition the template is also now intelligent and will add bold labels for optional lines, so the labels are now not needed (and should not be included). See Template:4eStatBlockStyled for details.