Template:Wikipedia port/doc: Difference between revisions
Deprecated (talk | contribs) (Documentation for Template:Wikipedia port) |
m (Undo revision 375913 by Thunder4ik (talk) Reverted bad bot edit) Tag: Undo |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
{{Wikipedia port}} | {{Wikipedia port}} | ||
Note that, when viewed on the documentation page itself, the Wikipedia links link to the /doc subpage instead of the standard page, due to the way the template works. They show up correctly when viewed on the template page. | |||
== Parameters == | == Parameters == | ||
This template accepts up to | This template accepts up to four optional parameters, one unnamed and three named. | ||
To provide links to a different template, the name of the template can be provided as an unnamed parameter, like so: | To provide links to a different template, the name of the template can be provided as an unnamed parameter, like so: | ||
Line 25: | Line 27: | ||
<code><nowiki>{{Wikipedia port|Template:Documentation|modified=1}}</nowiki></code> | <code><nowiki>{{Wikipedia port|Template:Documentation|modified=1}}</nowiki></code> | ||
{{Wikipedia port|modified=1}} | {{Wikipedia port|Template:Documentation|modified=1}} | ||
To specify if the template was ported from an old revision, provide the <code>old</code> parameter with the ID of the revision as provided in the revision's URL. | To specify if the template was ported from an old revision, provide the <code>old</code> parameter with the ID of the revision as provided in the revision's URL. | ||
Line 32: | Line 34: | ||
{{Wikipedia port|Template:Documentation|old=577591885}} | {{Wikipedia port|Template:Documentation|old=577591885}} | ||
To specify if the template's documentation was also ported from Wikipedia, provide the <code>documentation</code> parameter: | |||
<code><nowiki>{{Wikipedia port|Template:Documentation|documentation=1}}</nowiki></code> | |||
{{Wikipedia port|Template:Documentation|documentation=1}} | |||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| |
Latest revision as of 18:50, 23 April 2025

Don't forget to purge the contents of the base page upon creating or editing this subpage.
This is the {{Wikipedia port}}
template. It is meant to be added to the top of documentation for templates that were ported over from Wikipedia. It automatically fills in the information for the links from the template's page name, although this can be optionally overriden with a parameter.
Usage
{{Wikipedia port}}
Results in:
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Note that, when viewed on the documentation page itself, the Wikipedia links link to the /doc subpage instead of the standard page, due to the way the template works. They show up correctly when viewed on the template page.
Parameters
This template accepts up to four optional parameters, one unnamed and three named.
To provide links to a different template, the name of the template can be provided as an unnamed parameter, like so:
{{Wikipedia port|Template:Documentation}}
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To specify if the template was modified, provide the modified
parameter:
{{Wikipedia port|Template:Documentation|modified=1}}
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To specify if the template was ported from an old revision, provide the old
parameter with the ID of the revision as provided in the revision's URL.
{{Wikipedia port|Template:Documentation|old=577591885}}
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To specify if the template's documentation was also ported from Wikipedia, provide the documentation
parameter:
{{Wikipedia port|Template:Documentation|documentation=1}}
This template's documentation was also ported from Wikipedia, originally from Template:Documentation/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.