This package provides a simple way to embed a page from another site so that it is visually obvious and offers the user navigation to the page.
Instructions
To use this package, use the following code: [[include :csi:include:embed site=sitename | page=category:page]]
Example of use:
[[include :csi:include:embed site=projects | page=thread:269]]
Taken from http://projects.wikidot.com/thread:269:
This is a design sketch for the settag command, which automates the task of setting tags on pages. It is analogous to iftag but shows a button or text link that the user can click. The concept was originally suggested by James Kanjo in his design
The tag button automates a very common scenario:
- Navigate to a page
- Click on the 'tags' action
- Remove unwanted old tags
- Add wanted new tags
- Save resulting tags
- Enter comment text
- Save comments
- Return to parent page
It would become:
- Click on tag button
- Enter comment text
- Save comment
Syntax:
[[settags arguments...]]
Arguments:
- button="text string" — specifies the text for the button, which is the 'tags' argument by default.
- class="css-class" — specifies CSS class for the div element containing the button, allowing custom styling
- iftags="taglist" — only shows if this tag condition is true
- tags="taglist" — specify new tags to set, by default is empty
- remove="taglist" — specify tags to remove, where '*' is a wildcard. So "_*" means remove all hidden tags.
- comment="yes|no" — if 'yes', Wikidot asks for a page comment and only retags if the comment is saved, by default is "no"
- source="pagename" — if specified, this page will be tagged, otherwise it is the current page
- target="pagename" — if specified, the user is moved to this page after tagging is completed
The iftags argument works exactly as the [[iftags]] command.
Example:
[[settags button="Close" tags="_closed" iftags="-_closed" source="%%fullname%%" target="product:_start" comment="yes" remove="_*"]]
Settags with custom styling:
[settags class="my-settags-class"]]
If you use custom styling, remember to define the class in your custom CSS. The default class for settags is ".settags" and you can style this using custom CSS like this:
.settags { background-image: url(yourimage.png) }
Include files
embed | By pieterh | 02 Feb 2010 12:02 |