Determine whether your fan fiction is on a list expressly disallowed by the creators of the world you're writing in. Popular writers like Laurell K. Hamilton and Anne Rice will sue fan fiction creators who use their characters and worlds. Some writers also require that you expressly assign ownership of your fan fiction to them in your disclaimer. Write the author if you aren't certain.
Begin your disclaimer by clearly stating whose world and characters you are using. For instance, "This is a work of fan fiction using characters from the Harry Potter world, which is trademarked by J. K. Rowling."
State that you do not claim ownership of the characters and world that you are borrowing. "Both Harry Potter and Ron Weasley are characters created and owned by J.K. Rowling, and I do not claim any ownership over them or the world of Harry Potter."
State that the story and situation you are creating are a work of your imagination and you do not ascribe them to official story canon. Further state that this is a work intended for entertainment outside the official storyline owned by the author. "The story I tell here about Harry and Ron is my own invention, and it is not purported or believed to be part of J.K. Rowling's story canon. This story is for entertainment only and is not part of the official story line."
State that you are not profiting financially from the creation and publication of this story.
Thank the story owner for his contribution to the world of entertainment. "I am grateful to Ms. Rowling for her wonderful stories about Hogwarts, for without her books, my story would not exist."
Go back through your disclaimer and make it funny if you wish. Provided you make the statements outlined in the previous steps, you can create your disclaimer to have any tone you wish.