Template:Webify/doc: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
Line 8: Line 8:
*{{tl|Webify 3}} would produce '{{webify 3|East Lothian}}'
*{{tl|Webify 3}} would produce '{{webify 3|East Lothian}}'
**{{tl|Webify 3b}} would also produce '{{webify 3|East Lothian}}', but also change "Dunbar (East Lothian)" to '{{webify 3b|Dunbar (East Lothian)}}'
**{{tl|Webify 3b}} would also produce '{{webify 3|East Lothian}}', but also change "Dunbar (East Lothian)" to '{{webify 3b|Dunbar (East Lothian)}}'
*{{tl|Webify 4}} would produce '{{webify 4|East Lothian}}', and also eliminates brackets


Others may be added to this list.
Others may be added to this list.

Revision as of 15:34, 13 March 2020

Webify templates are not used on their own, but a suitable one may be used within another template which creates the URL for a weblink out of a name.

A website with multiple articles might create a webpage on, for example, East Lothian with a URL containing East_Lothian (apparently the most common usage). It might though use /eastlothian or /east-lothian. Choosing the right 'Webify' template can make the appropriate transformation:

  • {{Webify}} would produce 'East_Lothian'
  • {{Webify 0}} would produce 'eastlothian'
  • {{Webify 2}} would produce 'east-lothian'
  • {{Webify 3}} would produce 'East-Lothian'
    • {{Webify 3b}} would also produce 'East-Lothian', but also change "Dunbar (East Lothian)" to 'Dunbar--East-Lothian-'
  • {{Webify 4}} would produce 'east_lothian', and also eliminates brackets

Others may be added to this list.

[create] Template documentation