Template:Wikipage port/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
A panel indicating that this page has been ported from another wiki.
A panel indicating that this page has been ported from another wiki.


== Parameters ==
== Parameters and Descriptions ==
The following parameters are sorted by priority. '''Higher priority parameters will overwrite the lower priority parameters:'''
The following parameters are sorted by priority. '''Higher priority parameters will overwrite the lower priority parameters:'''
* {{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|website}} - ''Required:'' Link to the wiki from which the page was ported. {{ModernNote|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|website}} - ''Required:'' Link to the wiki from which the page was ported. {{ModernNote|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|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|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. Allows spaces when {{param|no"wiki"prefix}} is disabled.
** {{param|page}} - The full name of the page. Allows spaces when {{param|no"wiki"prefix}} is disabled.

Revision as of 22:32, 11 February 2023

Edit-copy.png
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.

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. Template:ModernNote
  • {{{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. Allows spaces when {{{no"wiki"prefix}}} is disabled.
    • {{{alt}}} - The short name of the page specified in {{{page}}}.
      • {{{1}}} - The full name of the porting page. Allows spaces when {{{no"wiki"prefix}}} is disabled. It is similar to specifying both {{{page}}} and {{{alt}}} as {{{1}}}.

Examples

{{wikipage port}}


{{wikipage port | website = https://en.wikipedia.org | sitename = Wikipedia | page = Main_Page | alt = Main Page }}