Template:LinkItem: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(Created page with '<includeonly>{{#if:{{{2|}}}|[[{{{2|}}}{{get|{{{0}}}|{{{1}}}}}|{{get|{{{0}}}|{{{1}}}}}]]|[[{{get|{{{0}}}|{{{1}}}}}]]}}</includeonly><noinclude> Generates a link for an item from a...')
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|[[{{{2|}}}{{get|{{{0}}}|{{{1}}}}}|{{get|{{{0}}}|{{{1}}}}}]]|[[{{get|{{{0}}}|{{{1}}}}}]]}}</includeonly><noinclude>
<includeonly>{{#if:{{{3|}}}|[[{{{3|}}}{{get|{{{1}}}|{{{2}}}}}|{{get|{{{1}}}|{{{2}}}}}]]|[[{{get|{{{1}}}|{{{2}}}}}]]}}</includeonly><noinclude>
Generates a link for an item from alist, potentially with a prefix.
Generates a link for an item from a list, potentially with a prefix.


Examples:
Examples:


* <nowiki>{{linkItem|Ontology Editing,How to edit the DBpedia Ontology,Edit Ontology|1}}</nowiki> results in [[How to edit the DBpedia Ontology]]
* <nowiki>{{linkItem|Ontology Editing,How to edit the DBpedia Ontology,Edit Ontology|1}}</nowiki> results in [[How to edit the DBpedia Ontology]]
* <nowiki>{{linkItem|Person,Place,Plant|-1|OntologyClass:}}</nowiki> results in [[OntologyClass:Plant|Plant]]
See also
* [[Template:item]]
</noinclude>
</noinclude>

Latest revision as of 07:25, 15 March 2012

Generates a link for an item from a list, potentially with a prefix.

Examples:

  • {{linkItem|Ontology Editing,How to edit the DBpedia Ontology,Edit Ontology|1}} results in How to edit the DBpedia Ontology
  • {{linkItem|Person,Place,Plant|-1|OntologyClass:}} results in Plant

See also