Template:Adapted from Wikipedia/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Vinifera7
mNo edit summary
mNo edit summary
 
(7 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.


By default, it links to the template of the same name on Wikipedia, but an alternate template can be specified.
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]]


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


If for some reason the template is on a sub-page—for example, [[Template:N/a]]—the <code>override</code> parameter must be used to specify the full name of the template.
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>.


To prevent the template from being added to the Wikipedia templates category, blank the <code>override</code> parameter.
<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|
{{Documentation categories|
<!-- Categories and interwikis go here. -->
<!-- Categories and interwikis go here. -->
[[Category:Notice templates]]
[[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:

{{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.