No edit summary Tag: sourceedit |
No edit summary Tag: rte-source |
||
Line 13: | Line 13: | ||
'''ApesterIntegrator''' adds the ability to embed Apester Polls onto Wikia pages. |
'''ApesterIntegrator''' adds the ability to embed Apester Polls onto Wikia pages. |
||
+ | |||
− | <span class="Apester" data-widget-id="57782d22eaef76d524299c24" style="width: 323px; height: 440px;"></span> |
||
+ | |||
{{clr}} |
{{clr}} |
||
== Usage == |
== Usage == |
||
− | # Add the line below to your wiki's '''[[MediaWiki:ImportJS]]''' page: <pre>dev:ApesterIntegrator/code.js</pre> |
+ | # Add the line below to your wiki's '''[[MediaWiki:ImportJS]]''' page: <pre>dev:ApesterIntegrator/code.js</pre>. |
# Create a Poll on [http://apester.com/ Apester], and retrieve the Poll's unique ID from the iframe code given. |
# Create a Poll on [http://apester.com/ Apester], and retrieve the Poll's unique ID from the iframe code given. |
||
− | ;Example |
+ | ;Example |
+ | : |
||
<code><nowiki><iframe src="//renderer.qmerce.com/interaction/</nowiki>'''57212135f070832f1031cb63'''<nowiki>" width="100%" height="458" frameborder="0" scrolling="no"></iframe></nowiki></code> |
<code><nowiki><iframe src="//renderer.qmerce.com/interaction/</nowiki>'''57212135f070832f1031cb63'''<nowiki>" width="100%" height="458" frameborder="0" scrolling="no"></iframe></nowiki></code> |
||
* ID is in bold |
* ID is in bold |
||
Line 29: | Line 31: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
+ | ;Note |
||
− | + | : You can choose any height and/or width you want |
|
If you're already using <code>importArticles()</code>, you can import the script by adding the below to the article list. |
If you're already using <code>importArticles()</code>, you can import the script by adding the below to the article list. |
Revision as of 23:33, 21 December 2016
ApesterIntegrator adds the ability to embed Apester Polls onto Wikia pages.
Usage
- Add the line below to your wiki's MediaWiki:ImportJS page:
dev:ApesterIntegrator/code.js
. - Create a Poll on Apester, and retrieve the Poll's unique ID from the iframe code given.
- Example
<iframe src="//renderer.qmerce.com/interaction/57212135f070832f1031cb63" width="100%" height="458" frameborder="0" scrolling="no"></iframe>
- ID is in bold
- 3. Now, using this ID, place the following code onto the page:
<span class="Apester" data-widget-id="57212135f070832f1031cb63" style="width: 100%; height: 350px;"></span>
- Note
- You can choose any height and/or width you want
If you're already using importArticles()
, you can import the script by adding the below to the article list.
"u:dev:ApesterIntegrator/code.js",