Difference between revisions of "Template:Curlie/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nejron~enwiki
imported>Nejron~enwiki
Line 9: Line 9:
 
For example:
 
For example:
  
<nowiki>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide/|PlanetSide}}</nowiki>
+
<nowiki>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}}</nowiki>
 
results in:
 
results in:
  
<blockquote>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide/|PlanetSide}}</blockquote>
+
<blockquote>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}}</blockquote>
  
 
The second attribute, "Category Name", is optional. If omitted it will use the name of the Wiki article page.
 
The second attribute, "Category Name", is optional. If omitted it will use the name of the Wiki article page.

Revision as of 20:22, 2 February 2008

Function

Link to Open Directory Project categories and profiles.

Usage

{{Dmoz|Path/To/Category|Category's name}}

For example:

{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}} results in:

PlanetSide at Curlie

The second attribute, "Category Name", is optional. If omitted it will use the name of the Wiki article page.

Notes:

Include the trailing slash on the category name. Most browsers will still function if the / is excluded, but a nonstandard URL will result.

Although the second attribute is optional, it may be desired when the DMoz category has two or more words. The dmoz template defaults to using Wiki capitalization defaults (only the first word is capitalized), whereas at DMoz, multi-word category names follow more traditional capitalization rules (all words capitalized except connectives). So if "Workers' Compensation" is the text you want users to see, include it as the second attribute. Otherwise, at the Workers' compensation article:

{{dmoz|Society/Law/Legal_Information/Workers%27_Compensation}}

results in

Workers' compensation at Curlie

See also

For a template to link to your personal editor profile (for your userpage), see Template:Dmoz user.