Template:Adapted from Wikipedia/doc: Difference between revisions
No edit summary |
mNo edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Documentation subpage}} | ||
This message | |||
This template displays a message stating that a template or module was adapted from a similar one on Wikipedia. | |||
==Usage== | ==Usage== | ||
< | This template should be placed at the end of the documentation for a template or module. This is done primarily for reference purposes to show that the template or module was adapted from a similar one on Wikipedia, even if they function somewhat differently from one another. | ||
The template or module that this template is transcluded on will be categorized accordingly: | |||
* Template – [[:Category:Templates adapted from Wikipedia]] | |||
* Module – [[:Category:Modules adapted from Wikipedia]] | |||
<pre>{{Adapted from Wikipedia}}</pre> | |||
By default, it links to the page on Wikipedia with the same name, but a different page can be specified using the first unnamed parameter or <code>|1=</code>. | |||
<pre>{{Adapted from Wikipedia|Template:Abbr}}</pre> | |||
To prevent the template from adding categories, use <code>|nocat=true</code>. | |||
==Example== | |||
<pre>{{Adapted from Wikipedia|Template:Abbr}}</pre> | |||
{{Adapted from Wikipedia|Template:Abbr|nocat=true}} | |||
{{Documentation categories| | |||
<!-- | <!-- Categories and interwikis go here. --> | ||
[[Category: | [[Category:Documentation templates]] | ||
}} |
Latest revision as of 13:51, 11 July 2022
This subpage provides documentation for Template:Adapted from Wikipedia.
This template displays a message stating that a template or module was adapted from a similar one on Wikipedia.
Usage
This template should be placed at the end of the documentation for a template or module. This is done primarily for reference purposes to show that the template or module was adapted from a similar one on Wikipedia, even if they function somewhat differently from one another.
The template or module that this template is transcluded on will be categorized accordingly:
- Template – Category:Templates adapted from Wikipedia
- Module – Category:Modules adapted from Wikipedia
{{Adapted from Wikipedia}}
By default, it links to the page on Wikipedia with the same name, but a different page can be specified using the first unnamed parameter or |1=
.
{{Adapted from Wikipedia|Template:Abbr}}
To prevent the template from adding categories, use |nocat=true
.
Example
{{Adapted from Wikipedia|Template:Abbr}}
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.