Template:Wikipage port/doc: Difference between revisions
Jump to navigation
Jump to search
Note:The "/" character must not be the last character of the url. For example, you must enter https://en.wikipedia.org instead of https://en.wikipedia.org/.
Note:Doesn't allow line breaks.
1416006136 (talk | contribs) mNo edit summary |
1416006136 (talk | contribs) |
||
Line 6: | Line 6: | ||
* {{param|fullurlpage}} - ''Optional:'' Can be used instead of {{param|page}} to enter the full url of the page. With the highest priority, templates take precedence over this parameter. | * {{param|fullurlpage}} - ''Optional:'' Can be used instead of {{param|page}} to enter the full url of the page. With the highest priority, templates take precedence over this parameter. | ||
* {{param|fullurlpagehistory}} - ''Optional:'' Full url for "the page's edit history page". With the highest priority, templates take precedence over this parameter. | * {{param|fullurlpagehistory}} - ''Optional:'' Full url for "the page's edit history page". With the highest priority, templates take precedence over this parameter. | ||
* {{param|website}} - ''Required:'' Link to the wiki from which the page was ported. {{ | * {{param|website}} - ''Required:'' Link to the wiki from which the page was ported. | ||
{{Note|offset=1|The "{{Code|/}}" character must not be the last character of the url. For example, you must enter {{Code|<nowiki>https://en.wikipedia.org</nowiki>}} instead of {{Code|1=<nowiki>https://en.wikipedia.org</nowiki><u style="color: rgb(71,129,209)">'''/'''</u>}}.}} | |||
* {{param|sitename}} - ''Required:'' The short name of the wiki from which the page was ported. | * {{param|sitename}} - ''Required:'' The short name of the wiki from which the page was ported. | ||
** {{param|no"wiki"prefix}} - ''Optional:'' Removes {{Code|/wiki/}} from the link in {{param|page}}. | ** {{param|no"wiki"prefix}} - ''Optional:'' Removes {{Code|/wiki/}} from the link in {{param|page}}. | ||
** {{param|page}} - The full name of the page. | ** {{param|page}} - The full name of the page. | ||
** {{param|alt}} - The short name of the page specified in {{param|page}}. | ** {{param|alt}} - The short name of the page specified in {{param|page}}. | ||
*** {{param|1}} - The full name of the porting page. It is similar to specifying both {{param|page}} and {{param|alt}} as {{param|1}}. {{ | *** {{param|1}} - The full name of the porting page. It is similar to specifying both {{param|page}} and {{param|alt}} as {{param|1}}. | ||
{{Note|offset=3|Doesn't allow line breaks.}} | |||
== Examples == | == Examples == |
Revision as of 18:41, 26 May 2023

This is a documentation subpage for Template:Wikipage port.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
A panel indicating that this page has been ported from another wiki.
Parameters and Descriptions
The following parameters are sorted by priority. Higher priority parameters will overwrite the lower priority parameters:
- {{{fullurlpage}}} - Optional: Can be used instead of {{{page}}} to enter the full url of the page. With the highest priority, templates take precedence over this parameter.
- {{{fullurlpagehistory}}} - Optional: Full url for "the page's edit history page". With the highest priority, templates take precedence over this parameter.
- {{{website}}} - Required: Link to the wiki from which the page was ported.

- {{{sitename}}} - Required: The short name of the wiki from which the page was ported.
- {{{no"wiki"prefix}}} - Optional: Removes /wiki/ from the link in {{{page}}}.
- {{{page}}} - The full name of the page.
- {{{alt}}} - The short name of the page specified in {{{page}}}.
- {{{1}}} - The full name of the porting page. It is similar to specifying both {{{page}}} and {{{alt}}} as {{{1}}}.

Examples
{{wikipage port}} →

This is a wiki porting page.
This page was ported from a page from [{{{website}}} {{{sitename}}}]. It was originally at [{{{website}}}/wiki/Template:Wikipage_port/doc Template:Wikipage port/doc]. The original authors of this page are shown on [{{{website}}}/w/index.php?title=Template:Wikipage_port/doc&action=history the page's edit history page].
This page was ported from a page from [{{{website}}} {{{sitename}}}]. It was originally at [{{{website}}}/wiki/Template:Wikipage_port/doc Template:Wikipage port/doc]. The original authors of this page are shown on [{{{website}}}/w/index.php?title=Template:Wikipage_port/doc&action=history the page's edit history page].

This is a wiki porting page.
This page was ported from a page from Wikipedia. It was originally at Main Page. The original authors of this page are shown on the page's edit history page.
This page was ported from a page from Wikipedia. It was originally at Main Page. The original authors of this page are shown on the page's edit history page.

This is a wiki porting page.
This page was ported from a page from Wikipedia. It was originally at Main Page. The original authors of this page are shown on the page's edit history page.
This page was ported from a page from Wikipedia. It was originally at Main Page. The original authors of this page are shown on the page's edit history page.