Template:Split article
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Material from Titans was split to Fall of the Titans (Jordaens) on 4 March 2006. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. Please leave this template in place to link the article histories and preserve this attribution. The former page's talk page can be accessed at Talk:Titans. |
When copying material from one Wikipedia article to another, you can put this template on the talk page of both articles, to indicate that its page history contains the attribution to Wikipedian contributors of the material that lies elsewhere.
Notes also need to be put in edit summaries of both articles; see Wikipedia:Splitting#Procedure.
Usage
Do not wikilink |to=
and |from=
— these are automatically linked for you.
<syntaxhighlight lang="wikitext">
Page Module:Message box/tmbox.css has no content.Material from name of page material was removed from was split to name of page material was copied to on [url or either a single revisionid or a diff of two revisionids separated by a slash showing the addition of the material date and time material was moved] from [permanent link url or revisionid from which the material was copied this version]. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. Please leave this template in place to link the article histories and preserve this attribution. The former page's talk page can be accessed at Talk:Name of page material was removed from. |
</syntaxhighlight>
The |to=
and |date=
fields are required. If |to=
is not provided, the template will refuse to show its usual text.
The |from=
, |from_oldid=
, and |diff=
fields are optional, but using them makes it easier for readers and editors to trace the split. Where the page was created with the split material as the first edit, the diff parameter cannot be accessed in the normal radio button, comparison mode in the page history. Instead, navigate to the permanent link for the first edit, and copy the "oldid". For example, where the end of the URL is &oldid=271444811
, the revisionid is 271444811
. When using two revisionids, the oldid should be first, followed by a slash and the diff. If you have trouble using the revisionids, you can use the whole URL.
This template can be placed on the talk page of the article that was split and the talk page of the new article receiving the split content. When placing the template on the new article receiving the split content, provide the |from=
parameter for proper attribution. If the receiving article already had content, you may wish to use {{Merged-from}}, instead.
Multiple splits
Additional splits from the same article can be specified by adding a number after each variable, so the second split would use |to2=
, |date2=
, |from_oldid2=
and |diff2=
and so on:
<syntaxhighlight lang="wikitext">
Page Module:Message box/tmbox.css has no content. Error: Target page was not specified with to . |
</syntaxhighlight>
The template can support any number of splits, as long as the numbers that go after each parameter are consecutive. If |to3=
is provided but |to2=
is not, only |to1=
will show up.
The |collapse=
parameter can be used to collapse some or all of the listed items. Set |collapse=yes
to collapse all items, or |collapse=4
to hide all entries below |date4=
for instance.
Errors
Errors and warnings about template usage are tracked using the following tracking categories:
- Category:Pages with split article errors (1)
- Category:Pages with split article warnings (0)
- Category:Pages using split article with unknown parameters (0)
TemplateData
<templatedata> { "params": { "from": { "label": "From", "description": "Page that split content originally came from", "type": "wiki-page-name", "required": true, "suggested": true }, "to": { "aliases": [ "to1" ], "label": "To 1", "description": "Target page of an article split", "required": true, "suggested": true }, "diff": { "aliases": [ "diff1" ], "label": "Diff 1", "description": "Revision ID of the revision which added the split content into the target page", "type": "number", "suggested": true }, "date": { "aliases": [ "date1" ], "label": "Date 1", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024", "suggested": true }, "from_oldid": { "aliases": [ "from_oldid1" ], "label": "From revision 1", "description": "Revision ID of the page at the time of the split", "type": "number", "suggested": true }, "to2": { "label": "To 2", "description": "Target page of an article split", "suggested": true }, "diff2": { "label": "Diff 2", "description": "Revision ID of the revision which added the split content into the target page", "type": "number", "suggested": true }, "date2": { "label": "Date 2", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024", "suggested": true }, "from_oldid2": { "label": "From revision 2", "description": "Revision ID of the page at the time of the split", "type": "number", "suggested": true }, "to3": { "label": "To 3", "description": "Target page of an article split" }, "diff3": { "label": "Diff 3", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date3": { "label": "Date 3", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid3": { "label": "From revision 3", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to4": { "label": "To 4", "description": "Target page of an article split" }, "diff4": { "label": "Diff 4", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date4": { "label": "Date 4", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid4": { "label": "From revision 4", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to5": { "label": "To 5", "description": "Target page of an article split" }, "diff5": { "label": "Diff 5", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date5": { "label": "Date 5", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid5": { "label": "From revision 5", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to6": { "label": "To 6", "description": "Target page of an article split" }, "diff6": { "label": "Diff 6", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date6": { "label": "Date 6", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid6": { "label": "From revision 6", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to7": { "label": "To 7", "description": "Target page of an article split" }, "diff7": { "label": "Diff 7", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date7": { "label": "Date 7", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid7": { "label": "From revision 7", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to8": { "label": "To 8", "description": "Target page of an article split" }, "diff8": { "label": "Diff 8", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date8": { "label": "Date 8", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid8": { "label": "From revision 8", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to9": { "label": "To 9", "description": "Target page of an article split" }, "diff9": { "label": "Diff 9", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date9": { "label": "Date 9", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid9": { "label": "From revision 9", "description": "Revision ID of the page at the time of the split", "type": "number" }, "to10": { "label": "To 10", "description": "Target page of an article split" }, "diff10": { "label": "Diff 10", "description": "Revision ID of the revision which added the split content into the target page", "type": "number" }, "date10": { "label": "Date 10", "description": "Date on which the split occurred", "type": "date", "autovalue": "12 April 2024" }, "from_oldid10": { "label": "From revision 10", "description": "Revision ID of the page at the time of the split", "type": "number" }, "collapse": { "label": "Collapse", "description": "Whether to collapse values. Set to \"yes\" to collapse all by default, or a number at which all rows after that number will be collapsed.", "example": "\"yes\", \"2\", \"5\"", "type": "string", "suggestedvalues": [ "yes" ] }, "demo": { "aliases": [ "nocat" ], "label": "Demo", "description": "Disables tracking categories if enabled", "type": "boolean" } }, "paramOrder": [ "collapse", "from", "to", "diff", "date", "from_oldid", "to2", "diff2", "date2", "from_oldid2", "to3", "diff3", "date3", "from_oldid3", "to4", "diff4", "date4", "from_oldid4", "to5", "diff5", "date5", "from_oldid5", "to6", "diff6", "date6", "from_oldid6", "to7", "diff7", "date7", "from_oldid7", "to8", "diff8", "date8", "from_oldid8", "to9", "diff9", "date9", "from_oldid9", "to10", "diff10", "date10", "from_oldid10", "demo" ], "description": "Talk page notice used to indicate that a page's history contains splits and require attribution to contributors elsewhere" } </templatedata>
See also
- Wikipedia:Article size
- {{Copied}}
- {{Merged-from}}
- {{Merged-to}}
- {{Split}}
The above documentation is transcluded from Template:Split article/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |