You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Template:Main5
This template is exactly the same as Template:main (view source) except that it also adds the calling page to a special category. (By calling Template:Maincat2)
If article A contains the text "{{Main5|B|C}}" then article A will be added to [[Category:articles that link to the article B using template:main]] and also to [[Category:articles that link to the article C using template:main]]
And of course, it will still display:
- Main articles:B and C
Demonstration
{{Main5|Test|Random}} produces:
and adds the categories
Categories: Articles that link to the article Test using template:main | Articles that link to the article Random using template:main
Background
For an explanation of how this template is intended to be used see Template_talk:Main#Backlinks, Wikipedia:Village_pump_(proposals)/Archive_57#Backlinks & Wikipedia:Village_pump_(proposals)/Archive_53#backlinks. See also Wikipedia:Village_pump_(proposals)#New_version_of_Template:Main.
The above documentation is transcluded from Template:Main5/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |