Bulbapedia:Templates: Difference between revisions

m
formatting
No edit summary
m (formatting)
 
Line 1: Line 1:
Reference page for template creation.
{{Policy}}
*General template help: [http://www.mediawiki.org/wiki/Help:Templates]
*Magic words: [http://www.mediawiki.org/wiki/Help:Magic_words Help] and [http://www.mediawiki.org/wiki/Manual:Magic_words Manual]
*Parser functions: [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions Help], [http://www.mediawiki.org/wiki/Extension:ParserFunctions Manual], and [http://www.mediawiki.org/wiki/Extension:Parser_function_extensions list].
*And of course, look at existing templates with the features you want. That's probably easiest, and the best starting location since they're more likely to conform to style guidelines.


==Testing templates==
==Testing templates==
While making a new template or a new revision of an existing template, it is often better to put it in a user subpage (make an article at User:<yourname>/<pagename>) until it is ready and approved. If creating a test page in your userspace, mind the {{bp|userspace policy}}.
While making a new template or a new revision of an existing template, it is often better to put it in a user subpage (make an article at User:<yourname>/<pagename>) until it is ready and approved. If creating a test page in your userspace, mind the {{bp|userspace policy}}.


Line 13: Line 8:
If a template was recently updated, but pages which use it do not update to reflect the change, the specific pages can be forced to update their transcluded pages by hard-refreshing the server. This can be done by clicking the UTC clock in the top of your screen.
If a template was recently updated, but pages which use it do not update to reflect the change, the specific pages can be forced to update their transcluded pages by hard-refreshing the server. This can be done by clicking the UTC clock in the top of your screen.


[[Category:Bulbapedia guides]]
And of course, look at existing templates with the features you want. That's probably easiest, and the best starting location since they're more likely to conform to style guidelines.
 
==External links==
*[http://www.mediawiki.org/wiki/Help:Templates General template help]
*Magic words ([http://www.mediawiki.org/wiki/Help:Magic_words help], [http://www.mediawiki.org/wiki/Manual:Magic_words manual])
*Parser functions ([http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions help], [http://www.mediawiki.org/wiki/Extension:ParserFunctions manual], [http://www.mediawiki.org/wiki/Extension:Parser_function_extensions list])
 
{{-}}
{{Bulbapedia guidelines}}