Difference between revisions of "Template:Agent"

From Wikispooks
Jump to navigation Jump to search
(Fix)
(Clarify)
Line 1: Line 1:
 
<noinclude>A sub-template of [[template:DocProv]]. If '''name''' is non-empty, it displays a link to it, semantically marked up with a '''predicate'''.<br/>
 
<noinclude>A sub-template of [[template:DocProv]]. If '''name''' is non-empty, it displays a link to it, semantically marked up with a '''predicate'''.<br/>
The last parameter, an explanatory '''detail''' placed in brackets afterwards is optional:<br/>
+
The optional last parameter is a human-readable explanatory '''detail''' placed in brackets afterwards.<br/><br/>
<br/>
+
Usage:<br/>
 
:<nowiki>{{Agent|Predicate|Name|Detail}}</nowiki>
 
:<nowiki>{{Agent|Predicate|Name|Detail}}</nowiki>
 
</noinclude><includeonly>{{#if: {{{2|}}}|[[{{{1}}}::{{{2}}}]]{{#if: {{{3|}}}|&nbsp;({{{3}}})|}}}}</includeonly>
 
</noinclude><includeonly>{{#if: {{{2|}}}|[[{{{1}}}::{{{2}}}]]{{#if: {{{3|}}}|&nbsp;({{{3}}})|}}}}</includeonly>

Revision as of 03:41, 2 December 2013

A sub-template of template:DocProv. If name is non-empty, it displays a link to it, semantically marked up with a predicate.
The optional last parameter is a human-readable explanatory detail placed in brackets afterwards.

Usage:

{{Agent|Predicate|Name|Detail}}