Template:Adapted from Wikipedia/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
This message box should be used on template documentation subpages to indicate that the template was adapted from a Wikipedia template. The template will be added to [[:Category:Wikipedia templates]] automatically.
 
This template displays a message stating that a template or module was adapted from a similar one on Wikipedia.


==Usage==
==Usage==
<code><nowiki>{{wikipedia template}}</nowiki></code>
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>.


By default, it links to the template of the same name on Wikipedia, but an alternate template can be specified.
==Example==
<pre>{{Adapted from Wikipedia|Template:Abbr}}</pre>


The code <code><nowiki>{{wikipedia template|Abbr}}</nowiki></code> yields: {{wikipedia template|Abbr|override=}}
{{Adapted from Wikipedia|Template:Abbr|nocat=true}}


<includeonly>
{{Documentation categories|
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- Categories and interwikis go here. -->
[[Category:Notice templates]]
[[Category:Documentation templates]]
</includeonly>
}}

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:

{{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}}
This template was adapted from Template:Abbr on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.