Forums: Index → Community Central Forum → Passing html to templates as arguments
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
To contact staff directly or to report bugs, please use Special:Contact.
I have this very simple template: User:Nidek/sandbox/t_example_1 and I want to pass it some html tags to it.
- When the tag doesn't have any attributes, it works.
- When the tag has attributes doesn't have any attribute.
- When the tag has attributes and an equal sign, it returns nothing.
For example:
- No html at all.
- This has asimple span back there.
- This has a span with garbage. The garbage will be removed and the html for the page doesn't have it.
- {{{1}}}
- Of course that tags that don't need arguments work.
Any ideas on how to make this work?
{{:User:Nidek/sandbox/t_example_1|This has a <span class="skljaf">span</span>but doesn't show.}}
Nidek (Talk) [[Special:Contributions/Nidek| Special:Editcount/Nidek edits made ]] 03:20, February 5, 2011 (UTC)
- Try Firebugging it. That may help you find out why it isn't showing up. Monchoman45 Talk Contribs Skystone 04:01,2/5/2011
- Old MediaWiki thing... it doesn't like = when passing template params. Joey 07:21, February 5, 2011 (UTC)
Bah! You guys disappoint me! :p Problem fixed.
{{:User:Nidek/sandbox/t_example_1|1=This has a <span style="color:red">span</span> but doesn't show.}}
Results in:
This has a span but doesn't show.
Nidek (Talk) [[Special:Contributions/Nidek| Special:Editcount/Nidek edits made ]] 20:11, February 6, 2011 (UTC)