Template:LinkClass: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
(comment: bibo)
Line 8: Line 8:
has a part before the colon ":" (see note 1)
has a part before the colon ":" (see note 1)
and that part is equal to "schema" (see note 2)
and that part is equal to "schema" (see note 2)
then we use the part after the colon and genereate a link to schema.org.
then we use the part after the colon and genereate a link to schema.org or bibo.
Otherwise, we generate an internal link.
Otherwise, we generate an internal link.
Notes:  
Notes:  
Line 15: Line 15:
(2) #explode adds a backslash when dealing with colons,
(2) #explode adds a backslash when dealing with colons,
that's why we use the string "schema\", not "schema".
that's why we use the string "schema\", not "schema".
TODO: add more targets besides schema.org
TODO: add more targets besides schema.org and bibo
-->
-->
Generates a link to a class from a list. First parameter is the list (comma-separated strings), second parameter is the index (zero-based).
Generates a link to a class from a list. First parameter is the list (comma-separated strings), second parameter is the index (zero-based).
</noinclude>
</noinclude>

Revision as of 15:23, 29 August 2013

Generates a link to a class from a list. First parameter is the list (comma-separated strings), second parameter is the index (zero-based).