Template:NQuoteContext

From Fanlore
Jump to navigation Jump to search

Purpose

Trying out adding more context info to the NQuote template. This would allow for keeping a page with the entire comment-chain's hierarchical structure intact while also letting people separate out individual quotes/comments (that would link back to their spot in the comment hierarchy so you don't lose the context) to organize into subsections. Here's an example of how excerpt comments would look.

Usage

To use, copy and paste the below:

{{NQuoteContext|
quote goes here
|user=
|setAnchor=
|getAnchor=
|child=
}}

Key

  • Quoted text here. = Replace this with your quoted text. It's important that it's on its own, separate line or the line breaks won't work.
  • user = This is an optional category. You can put the username of the person who wrote the comment here, or use it to explain who the post was reblogged from, etc.
  • setAnchor = This is an optional category, to be used when recording a chunk of nested comments. It will allow you to link back to the quote in this hierarchy if you later want to quote it alone but want to preserve the context. In order for this to work, each anchor on a page must be unique and can't contain spaces, so setting up a naming scheme (like their username and a number afterwards on any other comments they make) is useful.
  • getAnchor = This allows you to link to comments you've previously set an anchor for. If the comment is on the same page, precede the anchor with a # (i.e. #anchor; if the comment is on a different page, copy the page title from the URL (it should be immediately following /wiki/), then append a # and the anchor (e.g. User:GoldenFalls/Testing#LeroyJenkins1).
  • child = This is an optional category. This is where the template for the child comment should go. If you leave the comment out of a template it will look weird, so copy and paste the NQuote or NQuote2 template here again.

There's an additional field, |getParentAnchor, reserved for occasions when so many people reply to the same comment that when you're looking at one of it's child comments it becomes tedious or difficult to find that parent comment. Use it like the |getAnchor field, but instead of inputting the anchor for the comment itself, input the anchor for the comment's parent comment.

Examples

LEEEEEEROOOOOY JENKIIIIIIIIIINS!

[boss] ‌

Lol wiped

[Leroy Jenkins reblogged in anger] ‌
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[boss] ‌[context]‌ [parent]

Lol wiped

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.