PluginWikinote PluginWikinote(
)
|
|
void autocreate_notepage(
[string
$page = ''], boolean
1
)
|
|
Create a wikinote page automatically
Parameters:
|
string |
$page: |
|
|
boolean |
1: |
created or not |
void autocreate_wikinote(
[
$page = '']
)
|
|
Obsolete: Use autocreate_notepage
Parameters:
API Tags:
string get_mainpagename(
string
$notepage
)
|
|
Get mainpage name from notepage name
Parameters:
API Tags:
array(string, get_mainpage_notepage(
string
$page
)
|
|
Get mainpage (article) and notepage (discuss) pair from a pagename
Parameters:
API Tags:
string get_notepagename(
string
$mainpage
)
|
|
Get notepage name from mainpage name
Parameters:
API Tags:
string get_title(
string
$page
)
|
|
Get a page title
Parameters:
API Tags:
void is_effect(
[string
$page = '']
)
|
|
Check if wikinote is effective for the page or not
Parameters:
API Tags:
| Global: | array $vars: vars['page'] for the default page |
boolean is_notepage(
[string
$page = '']
)
|
|
Check if a page is a notepage
Parameters:
API Tags:
| Global: | array $vars: vars['page'] for the default page |
void is_valid(
[
$page = '']
)
|
|
Obsolete: Use is_effect
Parameters:
API Tags:
void is_wikinote(
[
$page = '']
)
|
|
Obsolete: Use is_notepage
Parameters:
API Tags:
void show_links(
[
$cmds = array('main' => 'Article', 'note' => 'Comment')], [
$page = '']
)
|
|
Obolete: Use show_tabs
Parameters:
API Tags:
void show_tabs(
[array
$tabs = array(
array('cmd'=>'main', 'label'=>'Article'),array('cmd'=>'note','label'=>'Comment'),array('cmd'=>'edit','label'=>'Edit','href'=>'?cmd=edit&page=$page'),array('cmd'=>'diff','label'=>'Diff','href'=>'?cmd=diff&page=$page'),)], [string
$page = '']
)
|
|
Show tabs (ul list)
Parameters:
|
array |
$tabs: |
array of array('cmd'=>,'label'=>,'href'=>) - 'cmd' is a PukiWiki cmd such as 'edit' or 'diff', additionally 'main' for mainpage and 'note' for notepage
- 'label' is a string to be shown on the tab (link). It could be an img tag.
Default: 'cmd' word. - 'href' is a link href. Ex) 'href'=>'?cmd=diff&page=$page.
Reserved words: $page => PageName. Default: Guessed from 'cmd'. |
|
string |
$page: |
$vars['page'] is used if not specified. |
string show_template_html(
string
$page
)
|
|
Get a modified template html
Parameters:
API Tags:
string _replace_form(
string
$form
)
|
|
Replace a form html POST into ?cmd=wikinote (Callback function)
Parameters:
API Tags:
Information Tags: