User talk:Eighty5cacao/sandbox/Template:Trope

From Pin Eight
< User talk:Eighty5cacao
Revision as of 06:53, 20 January 2013 by Eighty5cacao (talk | contribs) (protocol-relative x2 + remove curid)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When moving to templatespace[edit] aware that some page paths are hardcoded, because I wasn't sure how to make relative paths and/or magic words work properly.

This includes the "Documentation" link and the <code> in the examples. (The former would still need to be an absolute path [[Template:Trope/doc|Documentation]], as subpage shorthand doesn't seem to work in templatespace. The latter would obviously become {{trope|whatever...) Eighty5cacao 12:16, 21 September 2011 (MST)

One shorthand that appears to work is {{FULLPAGENAME}}/doc to go down and {{NAMESPACE}}:{{BASEPAGENAME}} to go back up. Granted, it's not much of a shorthand, but it does keep things working despite renames. --Tepples 13:03, 21 September 2011 (MST)
I was aware of those magic words but was concerned that they would not display as intended on the documentation page when it is viewed directly. Though my nonuse of your second suggestion was more a result of not investigating {{BASEPAGENAME}}'s functionality more carefully... Eighty5cacao 14:16, 21 September 2011 (MST)

Feature requests go here[edit]

Could you clarify what needs to be changed before this template is ready for templatespace? I am basically done with it, except possibly:

  • Allow the hover (tooltip) title to be configurable
  • Explain usage guidelines at Pin Eight:Links

As you can see, I have already used the template in a few places. Eighty5cacao 15:36, 21 September 2011 (MST)

BTW, the fact that parameter 1 defaults to Main is intentionally not documented, as the template SHOULD NOT be called without parameter 1 due to the existence of the trope: interwiki. I only put in this behavior in the interest of robustness. Eighty5cacao 17:54, 21 September 2011 (MST)
Sorry for forgetting about accessibility. This should be the end of the non-actionable comments. Eighty5cacao 18:51, 21 September 2011 (MST)