Template:SMW added by: Difference between revisions

From OLPC
Jump to navigation Jump to search
(seems useful)
 
(test for form parameter)
Line 1: Line 1:
[[Template:{{{template}}}]], filled in by [[Form:{{{form}}}]], adds this property to pages. <noinclude>
[[Template:{{{template}}}]]{{#if: {{{form| }}}|, filled in by [[Form:{{{form}}}]],}}
adds this property to pages. <noinclude>


A simple template to document which templates (and forms) add a property to pages.
A simple template to document which templates (and forms) add a property to pages.
Line 10: Line 11:
: {{SMW added by|template=Activity page|form=Activity}}
: {{SMW added by|template=Activity page|form=Activity}}


<tt>|form=''some form''</tt> is optional if there's no form for the template.
The second parameter <tt>|form=''some form''</tt> is optional if there's no form for the template.


[[Category:Semantic infrastructure]]
[[Category:Semantic infrastructure]]

Revision as of 00:11, 17 November 2008

[[Template:{{{template}}}]] adds this property to pages.

A simple template to document which templates (and forms) add a property to pages.

Usage

Use this template on a property page (and maybe some category pages) to document where it comes from, e.g.

{{SMW added by|template=Activity page|form=Activity}}

results in

Template:Activity page, filled in by Form:Activity,

adds this property to pages.

The second parameter |form=some form is optional if there's no form for the template.