Knowledge

User:This, that and the other/For the Common Good/Local wiki data

Source 📝

138:# For the Common Good # Local wiki data for YOUR WIKI NAME HERE # After modifying this file, you must import it into FtCG again to see the changes. # This should be the web address of your wiki, without ".org" LocalDomain=xyz.wikipedia # If there is a page describing FtCG on your wiki, put its name here # If not, just keep the following value LocalFtcgPage=w:en:WP:FTCG # Three preset categories to appear at the top of the window # If you don't have three, just remove the unneeded ones Category1=Copy to Wikimedia Commons Category2=Copy to Wikimedia Commons (bot-assessed) Category3=Move to Commons Priority Candidates DefaultCategory=3 # The name of the "Category" namespace on your local wiki, without the colon # (since the English name "Category" works on all wikis, you don't need to include # it here - FtCG handles it) CategoryNamespace=Category # The local name for the "now Commons" template, indicating that the local copy of # an image should be deleted after transfer NowCommonsTag=now Commons # The deletion summary used when deleting a file after transfer (option available # to admins only) - link to a relevant deletion policy if possible NowCommonsDeletionSummary=]: Media file available on Commons # Some edit summaries to translate into your wiki's language NowCommonsAddingTagEditSummary=Added {{now Commons}} tag NowCommonsReplacingTagEditSummary=Replaced {{move to Commons}} tag with {{now Commons}} tag # IMPORTANT: All entries from here onwards are treated as regular expressions. # For normal text entry, this should not be a problem, but when using # symbols like ( )  ? * + | etc., please prefix with a backslash: \( \[ etc. # Local equivalents of the {{information}} template and its parameters # (put the local name SECOND, e.g. Information=Ergojduhd) Information=Information Description=Description Date=Date Source=Source Author=Author Permission=Permission Other_versions=Other_versions # Section headings in use on the local wiki # (put the local name SECOND, e.g. Summary=Quofkokvej) Summary=Summary Licensing=Licensing|License|Permissions # The regular expression used to detect "Copy to Commons" tags # This one is for English Knowledge CopyToCommonsRegex={{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)*}}\n? # If you aren't technically confident, stop here and delete everything from here to the end # (FtCG will still work!) # Potential problems - conditions which may prevent or affect transfer (like deletion templates) # Notes: - Use IfContains= to search for a string of plain text (case-insensitive) # - Use IfRegex= to match against a regex (case-insensitive) # These should be listed in order of importance - most "problematic" first. IfContains={{db- Message=The file appears to be tagged for speedy deletion. IfRegex={{do not (copy|move) to commons Message=The file is tagged with {{do not move to Commons}}. # ... put as many potential problem sections as needed # Replacements to carry out # LookFor is a regular expression; ReplaceWith is a "replacement pattern" # where $ n is the nth "capture" of the regex; for help, # visit MSDN or ask User:This, that and the other # %%OriginalUploader%% and # %%InterwikiLinkPrefix%% are special variables supplied by FtCG LookFor={{orphan image.*}}\n? ReplaceWith= LookFor={{Some-Name-In-Another-Language-For-PD-art}} ReplaceWith={{PD-art}} # ... put as many replacement sections as needed # Replacements of self-license tags, like PD-self, GFDL-self # These use the same format as "Replacements" above LookFor={{PD-self(*)}} ReplaceWith={{PD-user|%%OriginalUploader%%|en}} LookFor={{GFDL-self-with-disclaimers(*)}} ReplaceWith={{GFDL-user-en-with-disclaimers|%%OriginalUploader%%$ 1}} LookFor={{GFDL-self(*)}} ReplaceWith={{GFDL-user|%%OriginalUploader%%|en$ 1}} LookFor={{self(*)}} ReplaceWith={{self$ 1|author=]}} # ... put as many as needed 57:
This is the best way to use local wiki data, as you will automatically benefit from the latest updates and improvements made to the wikitext handling algorithms. If you choose this option, the local wiki data file you choose (in most cases, no more than 10 KB in size) is fetched from the FtCG website
79:
It is possible to import local wiki data into FtCG from a file on your computer. This is useful if you wish to use a local wiki data file not available online, if you prefer not to use the live online data, or if you are crafting your own local wiki data file.
37:
to allow its intelligent handling of wikitext to be extended to other wikis. The local wiki data for English Knowledge is built-in, so if you do not plan to use FtCG on wikis other than English Knowledge, you don't need to worry about this.
130:
When you are sufficiently inspired, copy and paste the sample below into a text file, and save it with the extension ".wiki". Then edit it to suit, following the guidance given in the file. (Lines beginning with
42: 68:
To use live local wiki data, click the "Settings..." button within FtCG, pick "Use live data from the Internet", and choose your wiki from the list. Then click OK.
120:: you might be able to gain some inspiration. See if your local wiki has a page there; if it does, look in particular at the "Transfer" section near the bottom. 21: 97:
Write your own: it's not too difficult to write a basic local wiki data file, but if you want to do more advanced stuff, you need to know
127:. However, instead of typing over the English file, consider using the template below, in order to see the helpful comments. 108:
Each time you make changes to the local wiki data file, you must import it into FtCG again to see the changes.
94:
Ask "file-savvy" users on a particular wiki whether they have crafted their own FtCG data file for their wiki.
17: 83:
Local wiki data is stored in files with the extension ".wiki". You can obtain one in one of these ways:
123:
For further inspiration, you can download the data file for English Knowledge using the link at
8: 117: 98: 62: 124: 88: 30: 74: 52: 71:
Live local wiki data was introduced in version 1.1.
75:
Importing a local wiki data file from your computer
49:of FtCG and do not affect how it handles wikitext. 91:for an index of available local wiki data files. 111: 63:https://atlight.github.io/ftcg/localdata.html 125:http://atlight.github.io/ftcg/localdata.html 89:http://atlight.github.io/ftcg/localdata.html 41:This feature is completely separate from 61:All the local wiki data files listed at 14: 53:Loading data live from the Internet 27: 28: 147: 65:are available live within FtCG. 13: 1: 18:User:This, that and the other 7: 116:Before starting, check out 58:every time you start FtCG. 10: 152: 112:Writing your own data file 135:are ignored by FtCG.) 45:, which translate the 118:meta:CommonsHelper2 99:regular expressions 31:For the Common Good 22:For the Common Good 143: 134: 35:local wiki data 151: 150: 146: 145: 144: 142: 141: 140: 139: 132: 114: 77: 55: 26: 25: 24: 12: 11: 5: 149: 137: 113: 110: 103: 102: 95: 92: 76: 73: 54: 51: 47:user interface 43:language files 15: 9: 6: 4: 3: 2: 148: 136: 128: 126: 121: 119: 109: 107: 100: 96: 93: 90: 86: 85: 84: 81: 72: 69: 66: 64: 59: 50: 48: 44: 39: 36: 32: 23: 19: 129: 122: 115: 105: 104: 82: 78: 70: 67: 60: 56: 46: 40: 34: 29: 20:‎ | 106:Note: 87:Go to 33:uses 16:< 133:# 101:.

Index

User:This, that and the other
For the Common Good
For the Common Good
language files
https://atlight.github.io/ftcg/localdata.html
http://atlight.github.io/ftcg/localdata.html
regular expressions
meta:CommonsHelper2
http://atlight.github.io/ftcg/localdata.html

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.