- 0 Talk
Dinoguy1000/wikimedia
< Dinoguy1000
This is a list of all templates etc. copied from a Wikimedia wiki (most especially Wikipedia), with the intent of allowing a bot to periodically run through the list and re-copy pages. The format used here is *not* set, and can be changed at the bot-writer's convenience.
- Notes
- Examples given in quotes do not include the quotes unless otherwise specified.
- "%%" is used below as a wildcard.
- In the unlikely event a literal "%%" is wanted, it is escaped like "\%%"; in the even more unlikely event a literal "\%%" is wanted, it is escaped "\\%%", and so forth.
- "%%interwiki%%" is the interwiki links on a page; when removed, any empty newlines around them should also be removed.
- "%%pagename%%" is the page name as given by
{{PAGENAME}}; similar tokens may be used for the namespace, full page name, subpage name, etc.
- "\n" is a newline.
- Edit summary for copying over should be, at minimum, "copy from %%" - the summary should provide a link back to the source being copied from; the bot writer can at his discretion use a more descriptive summary (such as noting whether a page is being copied for the first time, or being recopied over an existing page), or note that the edit is being done by a bot.
- General syntax for "Changes" section:
- REMOVE %% - remove any lines matching the text between the <nowiki/> tags; the leftover newline should be removed as well
- REPLACE %% WITH %% - replace any lines matching the text between the first <nowiki/> tags with the text between the second <nowiki/> tags
- INSERT %% - insert the text between the <nowiki/> tags, followed by a newline; it should be inserted on the first line unless otherwise noted
- If a Changes match is something like {{Template name here|%%}}, the implication is that it should match any instances with or without parameters; if a match is wanted with one parameter, {{Template name here\|%%}} is used instead.
- Generally, find matches (in REMOVE and REPLACE) should be case-insensitive, insert (via REPLACE WITH and INSERT) should be case-sensitive
- Any text after the match (or matches, in the case of REPLACE) is further notes on the match in question
- Any files listed should only be re-uploaded if a new version has been uploaded at the source since the last bot run. The file description should be copied like any other page.
- If a page would only be null edited (and assuming it's not too much trouble for the bot coder), the edit should be postponed until all pages that page depends on (i.e. templates transcluded onto it) have been updated/null edited themselves, and then the page can be saved. If no pages in the tree have been updated, no null edits are necessary. For template documentation changes without changes to the corresponding template, the template itself should be null edited, but no pages transcluding it need touched. Files are entirely self-contained, so no further edits are necessary.
- The following sections are used:
- Changes - changes to apply to pages as they are copied, before being saved.
- Copy - pages to be copied (or recopied) on each run
- An individual entry can be commented out by adding the text "ignore" after the link.
- New dependencies - if any copied pages transclude a page not listed for copying here, the bot should list it in this section for human review; it should not list any /sandbox or /testcases pages for templates
- Unneeded dependencies - if any copied pages are found not to be used by any other pages (*any* pages, not just what's listed here), the bot should list them in this section for human review - this probably only applies to templates and files, though
- Deleted pages - if any pages to be copied are found not to exist on the source wiki, the bot should list them in this section for human review
- The bot should not add any entries to "New dependencies" and "Unneeded dependencies" based on entries in "Copy" marked "ignore-new" and "ignore-unneeded" (without quotes), respectively
- Templates - pages in the Template: namespace, and select other pages - if "Template documentation" is also used, this excludes any template documentation pages
- Template documentation - pages in the Template: namespace whose names end in "/doc", or which are marked "documentation"
- Files - pages in the File: namespace
- Categories - pages in the Category: namespace
- These are only guidelines; the bot writer should feel free to simplify or otherwise change them as necessary to get a functioning bot
- Changes
- Templates
- REMOVE {{pp-template|%%}}
- REPLACE <!-- Add categories and interwikis to the /doc subpage, not here! --> WITH <!-- Add categories to the /doc subpage, not here! -->
- REPLACE Image: WITH File:
- Template documentation
- INSERT {{Wikipedia}}
- REMOVE {{high-use|%%}}
- REMOVE {{high-risk|%%}}
- REPLACE <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> WITH <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
- REPLACE <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> WITH <!-- CATEGORIES HERE, THANKS -->
- REPLACE [[Category:%%|%%pagename%%]] WITH [[Category:%%|{{PAGENAME}}]]
- REPLACE [[Category:%%\|%%]] WITH [[Category:%%\|%%{{PAGENAME}}]]
- REPLACE [[Category:%%]] WITH [[Category:%%|{{PAGENAME}}]]
- REMOVE %%interwiki%%
- REPLACE Image: WITH File:
- Files
- INSERT {{From Wikimedia}} if from a Wikimedia wiki (but not Commons)
- INSERT {{Commons}} if from Commons
- Templates
- Copy
- Templates
- wikipedia:Template:•
- wikipedia:Template:•/doc
- wikipedia:Template:0expr
- wikipedia:Template:0expr/doc
- wikipedia:Template:Ambox
- wikipedia:Template:Ambox/core
- wikipedia:Template:Ambox/core/doc
- wikipedia:Template:Ambox/doc
- wikipedia:Template:CategoryTOC
- wikipedia:Template:CategoryTOC/doc
- wikipedia:Template:Dated maintenance category
- wikipedia:Template:Dated maintenance category/doc
- wikipedia:Template:DMCA
- wikipedia:Template:DMCA/doc
- wikipedia:Template:Documentation
- wikipedia:Template:Documentation/core
- wikipedia:Template:Documentation/core/doc
- wikipedia:Template:Documentation/core2
- wikipedia:Template:Documentation/doc
- wikipedia:Template:Documentation/preload ignore-unneeded
- wikipedia:Template:Documentation/preload-sandbox ignore-unneeded
- wikipedia:Template:Documentation/preload-testcases ignore-unneeded
- wikipedia:Template:Documentation subpage
- wikipedia:Template:Documentation subpage/doc
- wikipedia:Template:Dts
- wikipedia:Template:Dts/core
- wikipedia:Template:Dts/doc
- wikipedia:Template:Dts/examples
- wikipedia:Template:Dts/fmt
- wikipedia:Template:Dts/fmtdmy
- wikipedia:Template:Dts/fmtmdy
- wikipedia:Template:Dts/form
- wikipedia:Template:Dts/formdmy
- wikipedia:Template:Dts/formmdy
- wikipedia:Template:Dts/hart
- wikipedia:Template:Dts/lkno
- wikipedia:Template:Fmbox
- wikipedia:Template:Fmbox/doc
- wikipedia:Template:FULLROOTPAGENAME
- wikipedia:Template:FULLROOTPAGENAME/doc
- wikipedia:Template:Imbox
- wikipedia:Template:Imbox/doc
- wikipedia:Template:Lts
- wikipedia:Template:Lts/doc
- wikipedia:Template:Main other
- wikipedia:Template:Main other/doc
- wikipedia:Template:Mbox
- wikipedia:Template:Mbox/doc
- wikipedia:Template:Mbox templates
- wikipedia:Template:Mbox templates/doc
- wikipedia:Template:Mbox templates see also
- wikipedia:Template:Mbox templates see also/doc
- wikipedia:Template:MONTH
- wikipedia:Template:MONTH/doc
- wikipedia:Template:MONTHNAME
- wikipedia:Template:MONTHNAME/doc
- wikipedia:Template:MONTHNUMBER
- wikipedia:Template:MONTHNUMBER/doc
- wikipedia:Template:Namespace detect
- wikipedia:Template:Namespace detect/doc
- wikipedia:Template:Namespace detect see also
- wikipedia:Template:Namespace detect see also/doc
- wikipedia:Template:Navbar
- wikipedia:Template:Navbar/doc
- wikipedia:Template:Navbox
- wikipedia:Template:Navbox/doc
- wikipedia:Template:Nowrap
- wikipedia:Template:Nowrap/doc
- wikipedia:Template:Ns has subpages
- wikipedia:Template:Ns has subpages/doc
- wikipedia:Template:Ombox
- wikipedia:Template:Ombox/core
- wikipedia:Template:Ombox/core/doc
- wikipedia:Template:Ombox/doc
- wikipedia:Template:Out of date
- wikipedia:Template:Out of date/doc
- wikipedia:Template:Shortcut
- wikipedia:Template:Shortcut/doc
- wikipedia:Template:Template other
- wikipedia:Template:Template other/doc
- wikipedia:Template:Tl
- wikipedia:Template:Tl/doc
- wikipedia:Template:Tmbox
- wikipedia:Template:Tmbox/core
- wikipedia:Template:Tmbox/core/doc
- wikipedia:Template:Tmbox/doc
- wikipedia:Template:Transclude
- wikipedia:Template:Transclude/doc
- wikipedia:Template:Wrapper
- wikipedia:Template:Wrapper/doc
- Files
- commons:File:Flag of .svg
- commons:File:Flag of Argentina.svg
- commons:File:Flag of Australia.svg
- commons:File:Flag of Austria.svg
- commons:File:Flag of Belgium.svg
- commons:File:Flag of Brazil.svg
- commons:File:Flag of Canada.svg
- commons:File:Flag of Chile.svg
- commons:File:Flag of Croatia.svg
- commons:File:Flag of Cyprus.svg
- commons:File:Flag of Denmark.svg
- commons:File:Flag of Estonia.svg
- commons:File:Flag of Europe.svg
- commons:File:Flag of France.svg
- commons:File:Flag of Germany.svg
- commons:File:Flag of Greece.svg
- commons:File:Flag of Hong Kong.svg
- commons:File:Flag of Hungary.svg
- commons:File:Flag of Ireland.svg
- commons:File:Flag of Israel.svg
- commons:File:Flag of Italy.svg
- commons:File:Flag of Japan.svg
- commons:File:Flag of Latvia.svg
- commons:File:Flag of Luxembourg.svg
- commons:File:Flag of Malaysia.svg
- commons:File:Flag of Mexico.svg
- commons:File:Flag of Norway.svg
- commons:File:Flag of New Zealand.svg
- commons:File:Flag of Poland.svg
- commons:File:Flag of Portugal.svg
- commons:File:Flag of Quebec.svg
- commons:File:Flag of Russia.svg
- commons:File:Flag of Saudi Arabia.svg
- commons:File:Flag of Singapore.svg
- commons:File:Flag of Slovakia.svg
- commons:File:Flag of Slovenia.svg
- commons:File:Flag of South Africa.svg
- commons:File:Flag of South Korea.svg
- commons:File:Flag of Spain.svg
- commons:File:Flag of Sweden.svg
- commons:File:Flag of Switzerland.svg
- commons:File:Flag of Thailand.svg
- commons:File:Flag of Turkey.svg
- commons:File:Flag of the Arab League.svg
- commons:File:Flag of the People's Republic of China.svg
- commons:File:Flag of the Philippines.svg
- commons:File:Flag of the Republic of China.svg
- commons:File:Flag of the United Kingdom.svg
- commons:File:Flag of the United States.svg
- commons:File:Flag of Vietnam.svg
- wikipedia:File:Ambox notice.png
- wikipedia:File:Edit-copy green.svg
- wikipedia:File:Emblem-question-yellow.svg
- wikipedia:File:Imbox content.png
- wikipedia:File:Imbox notice.png
- wikipedia:File:Imbox style.png
- Templates
- New dependencies
- Unneeded dependencies
- Deleted pages