dan_the_man at telus.net
Sat Aug 25 18:30:41 UTC 2007
Actually, most things around mediawiki take a 2 letter start on what
they're from then what they are.
Notice the $wg, and wf.
w stands for Wiki, g for global, and f for funtion.
So $wg = Wiki Global, wf = Wiki Function.
Similarly some extension authors have e stand for extension and...
Here $eg = Extension Global, and ef = Extension Function
If we give Database tables the letter t then using a prefix of et for
Extension Table then the extension name appears to follow the unwritten
standard that most people seam to use around MediaWiki.
wg = Wiki Global
wf = Wiki Function
eg/Id/ = Extension Global for Extension /ID/
ef/Id/ = Extension Function for Extension /ID/
et/Id/ = Extension Table for Extension /ID
/Of course we don't add any wt prefix to MediaWiki Database tables
because we have $wgDBprefix.
Make enough sense? Your tables in this format would be:
~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical Entertainment Project, and Wiki-Tools.com
Jim Hu wrote:
> How about prefixing with we to indicate it's a wiki extension table?
> So, I would convert my box, row, and row_metadata tables trom the
> TableEdit extenstion to
> For the Vote extension, the table would become
> How does that sound? Or should we use an underscored prefix, e.g.
> "ext_". I know there will never be hard and fast rules, but it seems
> to me that if the core devs agree to some prefix that will not be
> used for the core schema, then the extensions only have to worry
> about conflicting with each other. And we could create a registry on
> mediawiki.org for extension db tables.
> On Aug 25, 2007, at 9:40 AM, Rob Church wrote:
>> On 24/08/07, Jim Hu <jimhu at tamu.edu> wrote:
>>> Was there ever a consensus on table naming for extensions adding to
>>> the core schema?
>> There's no hard-and-fast rules, but I'd recommend picking a name that
>> isn't going to conflict with any other possible use of a table by the
>> same name, where that table would be named according to common sense.
>> You might prefix the table names with the name of the extension, for
>> instance. If it's just one table, having the table name be the same
>> *as* the extension is probably good idea.
>> Rob Church
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
> Jim Hu
> Associate Professor
> Dept. of Biochemistry and Biophysics
> 2128 TAMU
> Texas A&M Univ.
> College Station, TX 77843-2128
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
More information about the MediaWiki-l