Difference between revisions of "Template:Curlie/doc"

From blackwiki
Jump to navigation Jump to search
imported>Koavf
imported>Koavf
Line 2: Line 2:
  
 
== Function ==
 
== Function ==
Link to [[Open Directory Project]] categories and profiles.
+
Link to [[DMOZ]] categories and profiles.
  
 
== Usage ==
 
== Usage ==
This template has two distinct formats for linking to Open Directory categories and Open Directory profiles.
+
This template has two distinct formats for linking to DMOZ categories and DMOZ profiles.
 +
 
 
=== Categories ===
 
=== Categories ===
 
To link to a category, give the path to the category as the first parameter, and an optional name as the second parameter.  If no name is provided, the template will use the name of the page.
 
To link to a category, give the path to the category as the first parameter, and an optional name as the second parameter.  If no name is provided, the template will use the name of the page.
Line 11: Line 12:
 
<nowiki>{{Dmoz|Path/To/Category|Category's name}}</nowiki>
 
<nowiki>{{Dmoz|Path/To/Category|Category's name}}</nowiki>
  
Make sure to remove the dmoz.org domain name and any leading or trailing slashes from the path; these will be provided by the template.  For instance, the URI for Abraham Lincoln's Open Directory category is:
+
Make sure to remove the dmoz.org domain name and any leading or trailing slashes from the path; these will be provided by the template.  For instance, the URI for Abraham Lincoln's DMOZ category is:
  
 
:''<nowiki>http://www.dmoz.org/Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham/</nowiki>''
 
:''<nowiki>http://www.dmoz.org/Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham/</nowiki>''
Line 27: Line 28:
 
{{Dmoz|Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham|Abraham Lincoln}}
 
{{Dmoz|Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham|Abraham Lincoln}}
  
Any content in the article namespace which transcludes this template will be added to the tracking category [[:Category:Articles with Open Directory Project links|Articles with Open Directory Project links]]. Link checkers from both projects can ensure that these links work properly and reduce redundancy in our [[WP:EL|external links sections]].
+
Any content in the article namespace which transcludes this template will be added to the tracking category [[:Category:Articles with DMOZ links|Articles with DMOZ links]]. Link checkers from both projects can ensure that these links work properly and reduce redundancy in our [[WP:EL|external links sections]].
  
 
=== Profiles ===
 
=== Profiles ===

Revision as of 06:16, 10 April 2014

Function

Link to DMOZ categories and profiles.

Usage

This template has two distinct formats for linking to DMOZ categories and DMOZ profiles.

Categories

To link to a category, give the path to the category as the first parameter, and an optional name as the second parameter. If no name is provided, the template will use the name of the page.

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

Make sure to remove the dmoz.org domain name and any leading or trailing slashes from the path; these will be provided by the template. For instance, the URI for Abraham Lincoln's DMOZ category is:

http://www.dmoz.org/Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham/

so the path should be given as:

Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham

Example:

{{Dmoz|Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham|Abraham Lincoln}}

Appears as:

Abraham Lincoln at Curlie

Any content in the article namespace which transcludes this template will be added to the tracking category Articles with DMOZ links. Link checkers from both projects can ensure that these links work properly and reduce redundancy in our external links sections.

Profiles

To link to profile rather than a category, include the word 'user' as a third parameter.

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

Example:

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

Appears as:

Rich Skrenta at Curlie

See also