Template:Teachtag: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq:{{{2|}}}||{{{1|sample topic}}}|{{{2}}}}}<sup>[[Teaching Approaches/{{ucfirst:{{{1|Sample topic}}}}}|(ta)]]</sup>[[Category:{{{1|Sample topic}}}|{{{1|Sample topic}}}]]{{setprop|teaching approach|{{{1|sample topic}}}}}<noinclude>
{{#ifeq:{{{2|}}}||{{{1|sample topic}}}|{{{2}}}}}<sup>[[Teaching Approaches/{{ucfirst:{{{1|Sample topic}}}}}|(ta)]]</sup>[[Category:{{{1|Sample topic}}}|{{{1|Sample topic}}}]]{{setprop|teaching approach|{{{1|sample topic}}}}}<noinclude>
This template is for applying categories within teaching approaches. E.g.
This template is for applying categories within teaching approaches. E.g.
  <nowiki>{{tag|sample category}}</nowiki>
  <nowiki>{{tagtag|sample category}}</nowiki>
produces this
produces this
  {{tag|sample category}}
  {{tagtag|sample category}}
and places the page in [[:Category:Sample category]] which is linked from the "(ta)".
and places the page in [[:Category:Sample category]] which is linked from the "(ta)".


If you want to tag a word with a category, but cannot use the exact name of the category in the flow of the text, then you can supply a second argument:
If you want to tag a word with a category, but cannot use the exact name of the category in the flow of the text, then you can supply a second argument:
  <nowiki>{{tag|sample category|some sample category}}</nowiki>
  <nowiki>{{tagtag|sample category|some sample category}}</nowiki>
produces this
produces this
  {{tag|sample category|some sample category}}
  {{tagtag|sample category|some sample category}}




</noinclude><noinclude>[[Category:Tagging]]</noinclude>
</noinclude><noinclude>[[Category:Tagging]]</noinclude>

Revision as of 12:38, 28 September 2012

sample topic(ta) This template is for applying categories within teaching approaches. E.g.

{{tagtag|sample category}}

produces this

Template:Tagtag

and places the page in Category:Sample category which is linked from the "(ta)".

If you want to tag a word with a category, but cannot use the exact name of the category in the flow of the text, then you can supply a second argument:

{{tagtag|sample category|some sample category}}

produces this

Template:Tagtag