Difference between revisions of "Template:Curlie/doc"

From blackwiki
Jump to navigation Jump to search
(+ja)
imported>Uzume
 
(63 intermediate revisions by 40 users not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
<noinclude>{{Documentation subpage}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
:Note that DMOZ was taken offline by AOL starting March 14, 2017. This template maps to Curlie.org, a directory based on DMOZ, and maintained by the same editor community.
==Function==
+
== Function ==
To link to relevant [[Open Directory Project]] categories for articles.
+
Link to the former [[DMOZ]] categories and profiles.
  
==Usage==
+
== Usage ==
<nowiki>{{dmoz|Path/To/Category/|Category Name}}</nowiki>
+
This template has two distinct formats for linking to DMOZ categories and DMOZ profiles.
  
For example:
+
=== 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.
  
<nowiki>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide/|PlanetSide}}</nowiki>
+
<nowiki>{{Curlie|Path/To/Category|Category's name}}</nowiki>
results in:
 
  
<blockquote>{{dmoz|Games/Video_Games/Shooter/Massive_Multiplayer_Online/PlanetSide/|PlanetSide}}</blockquote>
+
Make sure to remove the Curlie.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 Curlie category is:
  
The second attribute, "Category Name", is optional. If omitted it will use the name of the Wiki article page.
+
:''<nowiki>https://curlie.org/Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham/</nowiki>''
  
'''Notes:'''
+
so the path should be given as:
  
Include the trailing slash on the category name.  Most browsers will still function if the / is excluded, but a nonstandard URL will result.
+
:''Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham''
  
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:
+
Example:
  
<nowiki>{{dmoz|Society/Law/Legal_Information/Workers%27_Compensation/}}</nowiki>
+
<nowiki>{{Curlie|Society/History/By_Region/North_America/United_States/Presidents/Lincoln,_Abraham|Abraham Lincoln}}</nowiki>
results in
 
<blockquote>{{dmoz|Society/Law/Legal_Information/Workers%27_Compensation/|Workers' compensation}}</blockquote>
 
  
==See also==
+
Appears as:
For a template to link to your personal editor profile (for your userpage), see [[Template:Dmoz user]].
+
 
 +
{{Curlie|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 Curlie links|Articles with Curlie links]]. Link checkers from both projects can ensure that these links work properly and reduce redundancy in our [[WP:EL|external links sections]].
 +
 
 +
=== Profiles ===
 +
To link to profile rather than a category, include the word 'user' as a third parameter.
 +
 
 +
<nowiki>{{Curlie|Your username|Your name|user}}</nowiki>
 +
 
 +
Example:
 +
 
 +
<nowiki>{{Curlie|skrenta|Rich Skrenta|user}}</nowiki>
 +
 
 +
Appears as:
  
<includeonly>
+
{{Curlie|skrenta|Rich Skrenta|user}}
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:External link templates|Dmoz]]
 
  
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
==See also==
[[bg:Шаблон:Dmoz]]
+
{{wikidata property|P998}}
[[de:Template:Dmoz]]
+
* {{tls|No more links}}
[[fr:Template:Dmoz]]
+
<includeonly>{{Sandbox other||
[[hr:Predložak:Dmoz]]
+
[[Category:External link templates]]
[[is:Snið:Dmoz]]
+
}}</includeonly>
[[it:Template:Dmoz]]
+
<templatedata>
[[ja:Template:Dmoz]]
+
{
[[ru:Шаблон:Dmoz]]
+
"params": {},
</includeonly>
+
"format": "block"
 +
}
 +
</templatedata>

Latest revision as of 04:03, 13 November 2020

Note that DMOZ was taken offline by AOL starting March 14, 2017. This template maps to Curlie.org, a directory based on DMOZ, and maintained by the same editor community.

Function

Link to the former 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.

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

Make sure to remove the Curlie.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 Curlie category is:

https://curlie.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:

{{Curlie|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 Curlie 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.

{{Curlie|Your username|Your name|user}}

Example:

{{Curlie|skrenta|Rich Skrenta|user}}

Appears as:

Rich Skrenta at Curlie

See also

Template:Wikidata property

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified