Template:Extensions header: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
test with only one option
vendor
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>''Usage:''
<noinclude>''Usage:''
Put the following at the top of an article:
Put the following at the top of an article:
  <nowiki>{{extensions
  <nowiki>{{extensions header}}</nowiki>
| company = yourcompanyname
It places the article into <nowiki>[[Category:COLLADA extensions|*]]</nowiki> and displays the following:
| product = productname }}</nowiki>
Displays the following:
</noinclude>{{NavigationBox
</noinclude>{{NavigationBox
|Name = COLLADA extensions
|Name = COLLADA extensions
|Title = [[Extension]]s
|Title = [[Portal:Extensions directory|Extensions directory]]
|List =  
|List =  
<big>'''This article {{ #if {{{company|}}}{{{product|}}} |describes extensions for {{{product}}} by {{{company}}}|}}.'''</big>
<big>'''This article {{ #if: {{{vendor|}}}{{{product|}}} |describes [[extension]]s for {{{product}}} by {{{vendor}}}|is part of the COLLADA [[extension]]s directory}}.'''</big>
----
----
[[Portal:Extension directory|Extension directory]] <br>
[[List of extensions by vendor]]&nbsp;• [[List of extensions by profile name]]&nbsp;• [[List of extensions by element]]
[[List of extensions by company]]&nbsp;• [[List of extensions by profile name]]&nbsp;• [[List of extensions by element]]


''Instructions for [[adding to the extension directory]]''
''Instructions for [[adding to the extensions directory]]''
|Color = #dddddd
|Color = {{color extensions light}}
|Summary = Information about COLLADA <technique profile=...> and <extra> extensions.
|Summary = Information about COLLADA <technique profile=...> and <extra> extensions.
}}
}}
<includeonly>[[Category:Extensions]]</includeonly>
<includeonly>{{ #if: {{{vendor|}}}{{{product|}}} |[[Category:COLLADA extensions]]|[[Category:COLLADA extensions|*]]}}</includeonly>
<noinclude>[[Category:Navigation templates]]</noinclude>
<noinclude>  
There are optional arguments, but this usage is obsolete; instead, use [[Template:Extension]]. With the arguments, it looks like this (names can contain spaces):
<nowiki>{{extension
| vendor = yourvendorname
| product = yourproductname}}</nowiki>
 
Vendor and product arguments are optional, but if using this format, you must use both or neither. If both arguments are used, it places the article into [[:Category:COLLADA extensions]] and replaces "This article is part of the COLLADA extensions directory" with:
 
<big>'''This article describes [[extension]]s for {{{product}}} by {{{vendor}}}.'''</big>
[[Category:User templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:34, 23 July 2010

Usage:

Put the following at the top of an article:

{{extensions header}}

It places the article into [[Category:COLLADA extensions|*]] and displays the following:

Extensions directory
Information about COLLADA <technique profile=...> and <extra> extensions.
This article is part of the COLLADA extensions directory.

List of extensions by vendor • List of extensions by profile name • List of extensions by element

Instructions for adding to the extensions directory

[[Category: ]]


There are optional arguments, but this usage is obsolete; instead, use Template:Extension. With the arguments, it looks like this (names can contain spaces):

{{extension
 | vendor = yourvendorname
 | product = yourproductname}}

Vendor and product arguments are optional, but if using this format, you must use both or neither. If both arguments are used, it places the article into Category:COLLADA extensions and replaces "This article is part of the COLLADA extensions directory" with:

This article describes extensions for {{{product}}} by {{{vendor}}}.