Difference between revisions of "Template:Curlie/doc"

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(→‎Usage: don't add a space after the slash)
imported>Wiikipedian
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
 +
=== Categories ===
 
<nowiki>{{Dmoz|Path/To/Category|Category's name}}</nowiki>
 
<nowiki>{{Dmoz|Path/To/Category|Category's name}}</nowiki>
  
For example:
+
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:
 
  
<blockquote>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}}</blockquote>
+
Appears:
  
The second attribute, "Category Name", is optional. If omitted it will use the name of the Wiki article page.
+
{{Dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}}
  
'''Notes:'''
+
=== Profiles ===
 +
<nowiki>{{Dmoz|Your username|Your name|user}}</nowiki>
  
Include the trailing slash on the category name.  Most browsers will still function if the / is excluded, but a nonstandard URL will result.
+
Example:
  
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:
+
<nowiki>{{Dmoz|skrenta|Rich Skrenta|user}}</nowiki>
  
<nowiki>{{dmoz|Society/Law/Legal_Information/Workers%27_Compensation}}</nowiki>
+
Appears:
results in
 
<blockquote>{{dmoz|Society/Law/Legal_Information/Workers%27_Compensation|Workers' compensation}}</blockquote>
 
  
When the trailing slash is used, it must not be followed by a space.  Doing so will result in a slash being inserted before the link.
+
{{Dmoz|skrenta|Rich Skrenta|user}}
  
 
==See also==
 
==See also==

Revision as of 04:45, 9 February 2008

Function

Link to Open Directory Project categories and profiles.

Usage

Categories

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

Example:

{{Dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide|PlanetSide}}

Appears:

PlanetSide at Curlie

Profiles

{{Dmoz|Your username|Your name|user}}

Example:

{{Dmoz|skrenta|Rich Skrenta|user}}

Appears:

Rich Skrenta at Curlie

See also

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