Difference between revisions of "Template:InPho/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 41: Line 41:
 
# Copy the '''InPho number''' (here, "<code>3001</code>") and paste it into the second perimeter
 
# Copy the '''InPho number''' (here, "<code>3001</code>") and paste it into the second perimeter
 
# You will then have
 
# You will then have
# <tt><nowiki>* {{InPho|thinker|3001}}</nowiki></tt> resulting in:
+
# <code><nowiki>* {{InPho|thinker|3001}}</nowiki></code> resulting in:
 
#* {{InPho|thinker|3001}}
 
#* {{InPho|thinker|3001}}
  

Latest revision as of 02:23, 3 June 2020

Purpose

This is a template to generate links to entries in the Indiana Philosophy Ontology Project at inpho.cogs.indiana.edu.

Parameters

The required parameters are the InPho category (thinker, idea, journal or taxonomy) and the InPho number both of which appear in the url for that topic. The template then uses the Wikipedia article title as the link text:

* {{InPho 
 | {{{1}}}
 | {{{2}}} 
 | {{{3}}} 
}}
  • {{{1}}}: thinker, idea, journal, or taxonomy
  • {{{2}}}: InPho number
  • {{{3}}}: Alternate link name (if this value is empty, it defaults to the article pagename)

Examples and usage

Suppose you want to add an external link to the InPho's article on Paul Feyerabend. Locate the article at the InPho website. The url will contain a number. Enter this number as the second perimeter.

* {{InPho|thinker|3001}}

will produce the link

Note: This template should generally only be used in the External links sections of articles; it should not be used in citations, references or bibliography. Consider using {{citation}}, {{cite web}} or related templates for those purposes.

Detailed instructions

  1. Copy and paste the template into the External links section of the article
  2. Go to https://inpho.cogs.indiana.edu and search for the topic you want (say, Paul Feyerabend; you'll reach https://inpho.cogs.indiana.edu/thinker/3001)
  3. Copy the InPho category, in this case, "thinker" and paste it into the first perimeter, then
  4. Copy the InPho number (here, "3001") and paste it into the second perimeter
  5. You will then have
  6. * {{InPho|thinker|3001}} resulting in:

Note that the link text will be the same as the Wikipedia title of the page the template is used on

If you still have any doubts or questions about the use of the template, you can ask at User talk:Gregbard.

See also