Difference between revisions of "Template:FromOther/doc"
m |
m (Bug workaround for document-transclude) |
||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
*You may simply use <code><nowiki>{{FromOther}}</nowiki></code>: | *You may simply use <code><nowiki>{{FromOther}}</nowiki></code>: | ||
− | + | {{FromOther}} | |
*To notify from which site is the page is from, use <code><nowiki>{{FromOther|name of wiki}}</nowiki></code>. For example, <code><nowiki>{{FromOther|Wikipedia}}</nowiki></code> yields: | *To notify from which site is the page is from, use <code><nowiki>{{FromOther|name of wiki}}</nowiki></code>. For example, <code><nowiki>{{FromOther|Wikipedia}}</nowiki></code> yields: | ||
− | + | {{FromOther|Wikipedia}} | |
*You should also provide the link to the exact page: <code><nowiki>{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}</nowiki></code> yields | *You should also provide the link to the exact page: <code><nowiki>{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}</nowiki></code> yields | ||
− | + | {{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}} | |
*Use <code>|sect=sect</code>to mark a section instead of the entire page. <code><nowiki>{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}</nowiki></code> yields | *Use <code>|sect=sect</code>to mark a section instead of the entire page. <code><nowiki>{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}</nowiki></code> yields | ||
− | + | {{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}} | |
==Template data== | ==Template data== | ||
<templatedata> | <templatedata> |
Revision as of 07:36, 26 November 2019
This is a page-top or section-top template used to mark pages originally from different wiki projects.
Syntax
- You may simply use
{{FromOther}}
:
- To notify from which site is the page is from, use
{{FromOther|name of wiki}}
. For example,{{FromOther|Wikipedia}}
yields:
- You should also provide the link to the exact page:
{{FromOther|Chinese Moe Girl Pedia|[https://zh.moegirl.org/Template:Info Template:Info]}}
yields
- Use
|sect=sect
to mark a section instead of the entire page.{{FromOther|sect=sect|Chinese Moe Girl Pedia|[https://zh.moegirl.org/博丽灵梦#基本资料 博丽灵梦#基本资料]}}
yields
Template data
<templatedata> { "params": { "1": { "label": "site", "description": "The name of the original site", "example": "Chinese Moe Girl Pedia", "type": "string", "suggested": true, "default": "another wiki project" }, "2": { "label": "page", "description": "The page of the origin. Links should be provided.", "example": "Are you OK", "type": "string", "suggested": true }, "sect": { "label": "is section", "description": "Use \"sect\" verbatim to mark a section as from another wiki project, instead of the entire page. All other inputs are ignored.", "example": "sect", "type": "string", "autovalue": "" } }, "description": "Page-top (or section-top) notice for pages originally from a different wiki project. ", "paramOrder": [ "1", "2", "sect" ], "format": "inline" } </templatedata>