I've been making plans for the extension for awhile now, though most
people haven't noticed my asking for feedback. ^_^ Plus the extension
won't go to far without that db table structure.
The idea is a way to setup templates on a wiki, which use WikiText from
a template on another Wikia wiki.
If you need an example:
Say we had [[Template:Stub]] at Wiki A. And then there was another wiki,
Wiki B.
At Wiki B, we could place this inside of the [[Template:Stub]] there:
<transwiki name="a" page="Template:Stub" />
Then when on Wiki B, if someone used {{Stub}}, it would be as if the
same WikiText saved inside of [[Template:Stub]] at Wiki A, was also
saved in the same page at Wiki B, except instead we have TransWiki
syntax which allows them to share stuff instead.
Off with the basic explanation, I wanted a little input on the syntax. I
used XML style tags to avoid using some odd syntax which could break
things, however just to note, but this is not considered a Tag inside
the parser, because it's actually substituted using an early hook in the
parser.
There are a few paramaters for the transwiki tag:
`name`, or previously `wiki` is used to specify the name of the wiki to
transclude from. On Wikia this would be the same as the text before the
.wikia.com in the url. But the extension is actually done in a generic
way, so other Wiki Farms can use the extension and specify their own setup.
`page` is used to specify the name of the page to transclude from (of
course, without this the name of the current page will be used), the
extension does attempt to deal with the use of a namespace inside of the
page parameter, but because of custom namespaces and other stuff, an
attempt will be made to grab info of namespaces on the other wiki, but
if it cannot a `namespace` parameter can be given a numeric namespace id
to be used in case it's needed. So you'd use something like <transwiki
name="..." namespace=2 page="Dantman" />
I was pondering an extra parameter, `subst`, basically it would work
just like {{subst:Templatename}}, except you'd be substing WikiText from
another wiki. So it would make for a very easy method of copying
something over from one wiki to another. Something like using <transwiki
name="www" namespace=2 page="Username" subst=true /> to save one's
userpage from one wiki onto another. However, <transwiki name="www"
namespace=2 page="Username" /> would have beautiful results. A better
example would be something like grabbing structure of things like the
Forum pages categories and Templates from one wiki and putting it on
another.
----
This is on another track, I haven't looked to much into it because of
how much more complecated it would be. But I was also hoping to be able
to setup some sort of InterImage setup to. Basically being able to
include one image from one wiki onto another.
Syntax would actually be quite similar to normal Image embedding, truth
is that : and / are both illegal inside of Image names. The / has it and
everything before it stripped out of the name, and : is replaced with a
- when you save. So no matter what, you'll never find an image with a :
in it's name.
Which gives us a little convenience.
[[Image:Anime:Wiki.png]] will never be a legal image. "Anime:Wiki.png"
will never exist on the wiki. However, it can be used beautifully for
InterImage. So you'd use [[Image:Imagename.ext]] for a local image, and
[[Image:Wikiname:Image.ext]] to include an image from another Wikia wiki
into the page. ^_^ Which would come out with the beautiful result of
being able to use something like
[[Image:Anime:Wiki.png|25px|Animepedia]] on Central to get a resized
wiki logo, instead of that awful crap of uploading resized logos onto
central.
--
~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)
_______________________________________________
Wikia-tech-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-tech-l