1234567891011121314151617181920212223242526 |
- This template is used to indicate on a [[ticket|/tickets]] page that is depends
- on another given ticket, i.e. there is a ticket that needs to be closed first.
- For example, "eat salad" depends on "make salad". Parameters:
- - `proj`: Name of the project the depended ticket belongs to, i.e. a page under
- [[/projects]]. If you specify `proj`, there's no need to specify
- `dir` (default: the dependent ticket's project)
- - `dir`: The parent page under which the depended ticket is located. Use this
- if `proj` doesn't suit your needs. (default: the parent page of the
- dependent ticket, unless `proj` is used)
- - `n`: The depended ticket's page name (required)
- [[!templatebody <<ENDBODY
- [[!tag
- <TMPL_IF proj>
- /projects/<TMPL_VAR raw_proj>/tickets/<TMPL_VAR raw_n>]] Depends on [[/projects/<TMPL_VAR raw_proj>]] >> [[!template id=tktref proj="""<TMPL_VAR raw_proj>""" n="""<TMPL_VAR raw_n>"""
- <TMPL_ELSE>
- <TMPL_IF dir>
- <TMPL_VAR raw_dir>/<TMPL_VAR raw_n>]] Depends on [[<TMPL_VAR raw_dir>]] >> [[!template id=tktref dir="""<TMPL_VAR raw_dir>""" n="""<TMPL_VAR raw_n>"""
- <TMPL_ELSE>
- <TMPL_VAR raw_n>]] Depends on [[!template id=tktref dir=. n="""<TMPL_VAR raw_n>"""
- </TMPL_IF>
- </TMPL_IF>
- ]]
- ENDBODY]]
|