Help:Authoring a license-template

From Wikimedia Commons, the free media repository
Jump to: navigation, search


  • Please start a discussion on Village pump before setting up a new license.

Technical aspects[edit]

  • Don't use a table for pure layout purposes. If you need an outer border/container, use a <div>.
  • Your new template should be easily translatable
  • The template should expose HTML that is required by Gadget-Stockphoto
  • Your template should be documented
  • Your template must be in a special category; otherwise Nikbot or Filbot will files with this template as having no-license
  • Your template must transclude {{License template tag}}; it transcludes this template automatically if you use one of the layouts mentioned there
  • Your template should add a category to files it is used on and allow other templates to override this category, e.g. using <includeonly>{{{category|[[Category:My license]]}}}</includeonly>
  • List your template at Commons:Copyright tags