Template:Wikipedia port

提供: Valve Developer Community
ナビゲーションに移動 検索に移動
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [閲覧] [編集] [作成 日本語 (ja)]
Icon-translate.png Available doc translations
Info.png
The Template:Wikipedia port/doc/ja documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.

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:

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}}

To specify if the template was modified, provide the modified parameter:

{{Wikipedia port|Template:Documentation|modified=1}}

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}}

To specify if the template's documentation was also ported from Wikipedia, provide the documentation parameter:

{{Wikipedia port|Template:Documentation|documentation=1}}