From 8d230112cc5e8832fb9ed5af26bca51b257be258 Mon Sep 17 00:00:00 2001 From: zweistein Date: Sat, 7 Mar 2020 13:51:52 +0000 Subject: aktiv? --- ikiwiki/directive/flattr.mdwn | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 ikiwiki/directive/flattr.mdwn (limited to 'ikiwiki') diff --git a/ikiwiki/directive/flattr.mdwn b/ikiwiki/directive/flattr.mdwn new file mode 100644 index 00000000..94352519 --- /dev/null +++ b/ikiwiki/directive/flattr.mdwn @@ -0,0 +1,50 @@ +[[!if test="enabled(flattr)" + then="In diesem Wiki ist die Direktive: flattr **aktiviert**." + else="In diesem Wiki ist die Direktive: flattr **nicht aktiv**; falls dies gewünscht wird, den Admin benachrichtigen."]] + +--- +The `flattr` directive is supplied by the [[!iki plugins/flattr desc=flattr]] plugin. + +This directive allows easily inserting Flattr buttons onto wiki pages. + +Flattr supports both static buttons and javascript buttons. This directive +only creates dynamic javascript buttons. If you want to insert a static +Flattr button, you can simply copy the html code for it from Flattr, instead. +Note that this directive inserts javascript code into the page, that +loads more javascript code from Flattr.com. So only use it if you feel +comfortable with that. + +The directive can be used to display a button for a thing you have already +manually submitted to Flattr. In this mode, the only parameter you need to +include is the exact url to the thing that was submitted to Flattr. +(If the button is for the current page, you can leave that out.) For +example, this is the Flattr button for ikiwiki. Feel free to add it to all +your pages. ;) + + \[[!flattr url="http://ikiwiki.info/" button=compact]] + +The directive can also be used to create a button that automatically +submits a page to Flattr when a user clicks on it. In this mode you +need to include parameters to specify your uid, and a title, category, tags, +and description for the page. For example, this is a Flattr button for +a blog post: + + \[[!flattr uid=25634 title="my new blog post" category=text + tags="blog,example" description="This is a post on my blog."]] + +Here are all possible parameters you can pass to the Flattr directive. + +* `button` - Set to "compact" for a small button. +* `url` - The url to the thing to be Flattr'd. If omitted, defaults + to the url of the current page. +* `uid` - Your numeric Flattr userid. Not needed if the flattr plugin + has been configured with a global `flattr_userid`. +* `title` - A short title for the thing, to show on its Flattr page. +* `description` - A description of the thing, to show on its Flattr + page. +* `category` - One of: text, images, video, audio, software, rest. +* `tags` - A list of tags separated by a comma. +* `language` - A language code. +* `hidden` - Set to 1 to hide the button from listings on Flattr.com. + +[[!meta robots="noindex, follow"]] -- cgit v1.2.1