Changes

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search

Help:Template

1,225 bytes added, 10:26, 15 August 2008
no edit summary
A '''wiki template''' is only a bit like what you would call a template in real world. In a wiki, we usually call that a "[[boilerplate]]".

A wiki template is instead an article, just like any other, but with the ability to be 'transcluded' onto other pages. This means that if you have made a table with links for all things concerning a given subject, that could be good for navigating, you can take that table, put it into a template, and then just use a wiki template shortcut to transclude that navigation box on all related articles.

Other uses of the template can be to just add automatic formatting such as styles or classes to text, similar to how CSS works. It could also be a table of stats from the game, which you might want on more than one page.

In some cases, templates can be used with variables, and inside other templates. It might look quite complex, and you shouldn't edit what you don't grasp yourself, but they often save a lot of time in the end, as that work needs not to be re-done again, and can easily be edited on all pages the item is shown.

You can ask one of the DiabloWiki sysops for more information.


* [[:Category:Templates|Category with all DiabloWiki templates]].

[[Category:Help]]
12,486
edits