[Mediawiki-l] Variables & Substitution

Raquel Rice raquel at thericehouse.net
Sun Jul 2 21:20:34 UTC 2006


Okay, I've tried to find answers by reading every page I could find,
but I'm still not understanding.

Let's just say:

I have a user page called "Raquel".  That page calls a template
called "Userpage.  So far, so good.

Now I want to create variables which will be substituted on the user
page, and that's where it's falling apart.

Let's say I want the city where "Raquel" lives to be substituted
into her page and the city where "Pamela" lives to be substituted
into her page.

I thought that defining the variables in the user page would do it,
in Raquels page:
     <ff>
     city = Paris
     </ff>
and then in Pamela's page:
     <ff>
     city = London
     </ff>

In the template file I'm using:
     City: {{$city}}

But, it's not working.

-- 
Raquel
============================================================
Injustice anywhere is a threat to justice everywhere.
  --Martin Luther King, Jr.




More information about the MediaWiki-l mailing list