How do you use templates?

Discussion in 'Mac Guides' started by Mechcozmo, Nov 1, 2005.

  1. macrumors 603

    Mechcozmo

    Joined:
    Jul 17, 2004
    #1
    I tried making a Power Mac template ( at [guide]Template:powerMac[/guide]) but it doesn't work so well when I try to apply it to a page-- I end up editing the template and not the page.

    Help?
     
  2. Administrator

    HexMonkey

    Staff Member

    Joined:
    Feb 5, 2004
    Location:
    New Zealand
    #2
    I think you may be a little confused about the purpose of templates. Templates, like basedonpost and stub, are used to insert commonly used snippets into an article, often using parameters to alter what they display as.

    The way you're using them, you'd need a parameter for almost every line of your template, which is not practical (it would produce fairly ugly looking code when editing the article).

    Hopefully this will clear things up a little.
     
  3. macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #3
    From what it seems you're trying to do, {{subst:powerMac}} might work for you. That will copy the template into the article instead of including it dynamically. Then you can edit just your article after saving.
     
  4. thread starter macrumors 603

    Mechcozmo

    Joined:
    Jul 17, 2004
    #4
    That is what I was looking for! Thanks. I was using Template much like Pages uses it, and most other applications. Cool. :)
     

Share This Page