Wiki source for AddLinkActionInfo


Show raw source

===== Addlink Action Documentation =====
>>==See also:==
~- Development: AddLinkAction.
>>//Not included in Wikka any version//{{lastedit show="3"}}

This is the documentation page for the addlink action.

=== What? ===
- This action will allow you to fast add links in a structured way.

=== Use ===
- Add at least two "----" codes on a page.
- Add {{addlink}} but not in between the first and second "----".
- So the minimum page would be:
%%(code){{addlink}}
----
----%%
- A more realistic page (result is seen under "Example"):
%%(code)===== Test action addlink =====
{{addlink}}
----
==First==
~[[http://wikka.jsnx.com/HomePage | Wikka]] [[http://wikka.jsnx.com/HomePage | Wikka]] [[http://wikka.jsnx.com/HomePage | Wikka]]
==!!!HOT!!!==
~[[http://wikka.jsnx.com/HomePage | Wikka]] [[http://wikka.jsnx.com/HomePage | Wikka]]
==Search==
==Last==
~[[http://wikka.jsnx.com/HomePage | Wikka]] [[HomePage]]
----
CategoryLinks%%

=== Example ===
""<h2> Test action addlink </h2>
<form method="post">
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td rowspan="2" valign="top"><select name="category" size="3"><option value="First">First</option><option value="HOT">!!!HOT!!!</option><option value="Search">Search</option><option value="Last">Last</option></select></td>
<td>Url: </td>
<td valign="top"><input type="text" size="50" maxlength="255" name="url" value=" "></td>
<td rowspan="2" valign="bottom"><input type=submit name=submit value="Add"></td>
</tr>
<tr>
<td>Title:</td>
<td valign="bottom"><input type="text" size="50" maxlength="255" name="title" value=" "></td>
</tr>
</table>
</form>
<br />
<hr />
<h5>First</h5>
<div class="indent"><a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span> <a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span> <a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span></div>
<h5>!!!HOT!!!</h5>
<div class="indent"><a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span> <a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span></div>
<h5>Search</h5>
<h5>Last</h5>
<div class="indent"><a class="ext" href="http://wikka.jsnx.com/HomePage">Wikka</a><span class='exttail'>∞</span> <a href="http://wikka.jsnx.com/HomePage" title=" ">HomePage</a></div>
<hr />
<a href="http://wikka.jsnx.com/CategoryLinks">CategoryLinks</a>""

=== Features ===
- The page is split into 3 sections: Header (before the first "----"), Links (in between the first and second "----") and Footer (after the second "----"). The Header and Footer sections aren't touched.
- Using one or more "----" in the Footer section is not a problem.
- This script will not be visible (and will not work) if for users that don't have write (and read) access on the page.
- If no cat is selected in the form or a link was present before the first cat, "First" will be used.
- The cat "First" and "Last" will, if present, always be put at the start and end of the Links section.
- WikiWords are not supported, you'll have to wrap them in double square brackets.
- Just edit the page for deleting or editing a link.

=== Warning ===
- Only links and cat's are read from the Links section, comments will be removed when a new link is added. (You're still able to see them via )

=== Security ===
- This script is not more dangerous than giving a user write access to a page. But as one of the dangers for a wiki is being flooded with links, you should be aware of what you are doing...

----
CategoryUserContributions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki