DokuWiki

It's better when it's simple

ユーザ用ツール

サイト用ツール


ja:plugin:addnewpage

Add New Page プラグイン

互換性のある DokuWiki バージョン

2006-11-06

plugin

最終更新日
2008-01-10
種類
Syntax
競合
addnewpage_old, infomail

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

この拡張は二年以上更新されていません。もはや維持管理や対応がされておらず、互換性に問題がある可能性があります。

This extension is not in the 'plugin' or 'template' namespace and is therefore ignored.

類似 catlist, copypage, jsongendoc, new_page_dialog, npd, pagehere

タグ add, button, create, form

必要とされるプラグイン autoincludeindex

dokuwiki 2006-11-06 版用の新規リリースです。旧バージョンが必要な方は plugin:addnewpage_old をご覧ください。

このプラグインは新しいページを追加するための選択ボックスと入力ボックスを追加します。
選択ボックスにはウィキ内の全名前空間が表示されます。

このプラグインは plugin:newpagebutton に着想を得たものです。

デモ

プラグインの動作はこちらでご確認いただけます。

構文

次の記述を行うだけです。

{{NEWPAGE}} 

newpage あるいは

{{NEWPAGE>[名前空間]}}

[名前空間]

「名前空間」の部分は適切な名前空間で置き換えてください。行内で名前空間の指定を行った場合には、 表示方法を以下から選択することができます:

  • 選択ボックスを表示しない
  • あるいは下位の名前空間のみを表示する

表示方法の設定には、 構成設定マネージャーを使用します。

インストール

プラグインマネージャーからこの zip ファイルを使って行います:http://dokuplugins.idotech.info/addnewpage.zip

構成設定

プラグインの構成設定は dokuwiki の構成設定マネージャーから行うことができます。

利用のヒント

ページ以外の場所(たとえばテンプレートのどこか)に新規ページ追加フォームを表示させたい場合には、 プラグインの表示を行いたい場所にこの行を追加します:

<?php
echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info);
?>	

言語

  • フランス語
  • 英語
  • イタリア語(不完全)
  • ロシア語(不完全)
  • ドイツ語
  • スペイン語
  • 繁体字中国語
  • 日本語
  • まだありますか?このページに追加していただくか作者までメールでお送りください: ido@woow-fr.com

言語ファイル

フランス語

lang.php

<?php
/*USE : UTF8*/
/*
french language file
*/
$lang['namespaceRoot']     = 'Racine';
$lang['okbutton']     = 'Cr&eacute;er';
$lang['nooption']		="Vous n'avez pas les droits pour ajouter une page";
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * French language file
 */
$lang['addpage_exclude']         = "namespaces &agrave; exclure (s&eacute;par&eacute;s par un ;)";
$lang['addpage_showroot'] 		 = "Afficher le namespace racine";
$lang['addpage_hide'] 		 = "Quand vous utlisez la syntaxe {{NEWPAGE>[ns]}} : Cache la selection de namespace (décoché: affiche uniquement les sous-namespaces)";
$lang['addpage_hideACL']="Si non cochée, affiche un message lorsque l'utlisateur n'a pas les droits d'ajout de page. Sinon, cache simplement {{NEWPAGE}}";
?>

英語

より英語らしくするため表現を若干修正しました :-)

lang.php

<?php
/*
english language file
 */
$lang['namespaceRoot']="Root";
$lang['okbutton']     = 'Add page';
$lang['nooption']		="You are not allowed to add pages";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * english language file
 */
$lang['addpage_exclude']         = "Excluded namespaces (separated with ;)";
$lang['addpage_showroot'] 		 = "Show root namespace";
$lang['addpage_hide'] 		 = "When you use {{NEWPAGE>[ns]}} syntax: Hide namespace selection (unchecked: show only subnamespaces)";
$lang['addpage_hideACL']="Hide {{NEWPAGE}} if user does not have rights to add pages (show message if unchecked)"
?>

ドイツ語

lang.php

<?php
/*
german language file
 */
$lang['namespaceRoot']=":Wurzel";
$lang['okbutton']     = 'Seite hinzufügen';
$lang['nooption']		="Sie besitzen nicht die Benutzerrechte um Seiten hinzuzufügen.";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * german language file
 */
$lang['addpage_exclude']         = "Namespaces ausschließen (getrennt mit ; )";
$lang['addpage_showroot']        = "Wurzel-Namespace anzeigen";
$lang['addpage_hide']            = "{{NEWPAGE>[ns]}} Syntax: Ausgewählt, diese Namespace-Selektion verbergen. Nicht ausgewählt, nur diese Namespace-Selektion anzeigen.";
$lang['addpage_hideACL']="Wenn ein Benutzer keine Berechtigung hat: Ausgewählt, Anzeige wird verborgen. Nicht ausgewählt, Es wird eine Fehlermeldung ausgegeben."
?>

スペイン語

lang.php

<?php
/*
spanish language file (Paraguay)
 */
$lang['namespaceRoot'] = "Raiz";
$lang['okbutton']      = "Agregar pagina";
$lang['nooption']      = "Ud. no tiene privilegios para crear la pagina";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * spanish language file
 */
$lang['addpage_exclude']  = "excluir directorio(namespace) separados por punto y coma (;)";
$lang['addpage_showroot'] = "Mostrar directorio(namespace) raiz";
$lang['addpage_hide']     = "cuando se usa la sintaxis {{NEWPAGE>[dir]}}: se oculta el selector de directorio (desmarcado: muestra solo sub-directorios (sub-namespaces))";
$lang['addpage_hideACL']  = "si esta desmarcado, muesta un mensaje de error de privilegios. Si el usuario no tiene permiso de crear una pagina, simplemente se oculta el codigo {{NEWPAGE}}"
?>

ポルトガル語

lang.php

<?php
/*
portuguese language file
 */
$lang['namespaceRoot']="Root";
$lang['okbutton']     = 'Incluir Página';
$lang['nooption']     ="Você não tem permissão para incluir página";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * portuguese language file
 */
$lang['addpage_exclude']         = "excluído namespace (separados com ;)";
$lang['addpage_showroot']        = "Mostrar raiz do namespace";
$lang['addpage_hide'] 		 = "Quando voce usa {{NEWPAGE>[ns]}} sintaxe : esconde a seleção do namespace (desmarcado : mostra sub-namespace ativo)";
$lang['addpage_hideACL']         ="se desmarcado, mostra mensagem sobre direitos senão simplismente esconde {{NEWPAGE}} quando o usuário não possui permissões para incluir uma página."
?>

繁体字中国語

lang.php

<?php
/*
Traditional Chinese language file
 */
$lang['namespaceRoot']="最上層(Root)";
$lang['okbutton']     ="新增頁面";
$lang['nooption']     ="你沒有權限執行新增頁面的動作";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*
 *  Traditional Chinese file
 */
$lang['addpage_exclude']         = "排除哪些分類名稱(namespace), 使用 ; 來區分多個分類名稱(namespace)";
$lang['addpage_showroot']        = "顯示最上層(Root)分類名稱(namespace)";
$lang['addpage_hide'] 		 = "使用 {{NEWPAGE>[ns]}} 語法時不要顯示出分類名稱(namespace)的選項, 沒有打勾就會列出指定分類名稱(namespace)底下所有的子分類名稱(subnamespace)項目";
$lang['addpage_hideACL']         ="沒有打勾 : 表示當使用者沒有新增頁面權限時就顯示沒有權限的訊息而不會顯示出新增頁面的輸入欄."
?>

イタリア語

lang.php

<?php
/*
italian language file
 */
$lang['namespaceRoot']="Root";
$lang['okbutton']     = 'Aggiungi pagina';
$lang['nooption']		="Non hai i permessi per creare una nuova pagina";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * italian language file
 */
$lang['addpage_exclude']         = "Escludi namespaces (separati con ;)";
$lang['addpage_showroot'] 		 = "Mostra root namespace";
$lang['addpage_hide'] 		 = "Quando usi la sintassi {{NEWPAGE>[ns]}} : Nascondi il namespace selezionato (deseleziona: mostra solo i sotto-namespaces)";
$lang['addpage_hideACL']="Nascondi {{NEWPAGE}} se l'utente non ha i diritti per visualizzare la pagina (mostra il messaggio se deselezionato)"
?>

日本語

lang.php

<?php
/*
Japanese language file
 */
$lang['namespaceRoot']="ルート";
$lang['okbutton']     = 'ページ追加';
$lang['nooption']		="ページの追加が許可されていません";
//Setup VIM: ex: et ts=2 enc=utf-8 :
?>

settings.php

<?php
/*USE : UTF8*/
 
/*
 * Japanese language file
 */
$lang['addpage_exclude']         = "除外する名前空間(; 区切り)";
$lang['addpage_showroot'] 		 = "ルート名前空間を表示";
$lang['addpage_hide'] 		 = "{{NEWPAGE>[ns]}} 構文使用時: 名前空間選択リストを表示しない(チェックなし: 下位名前空間のみを表示)";
$lang['addpage_hideACL']="ページ追加の権限を持たないユーザーに対しては {{NEWPAGE}} を表示しない(チェックなしの場合にはメッセージを表示)"
?>

更新履歴

  • 2008-01-10 : いくつかの修正(ie における名前空間「.」利用時のバグ)および新しく追加されたすべての言語を含んだ新規 Zip。
  • 2007-05-19 : GibaPhp 氏により NEWPAGE 構文非表示に関する適切なポルトガル語定義が追加されました。
  • 2007-01-21 : 構成設定を行うことにより権限に関するメッセージの表示を行うか NEWPAGE 構文をまったく表示しないかを選べるようになりました。
  • 2007-01-21 : ACL のサポートが可能になりました(66[dot]7[dot]118[dot]82 (FIXME) 氏に感謝)
  • 2007-01-13 : 新機能として構文 {{NEWPAGE[>名前空間]}} を追加(Martin 氏に感謝)
  • 2007-01-12 : script.js 内にあった 4 文字の非表示文字を削除。イタリア語およびロシア語を追加(いずれも言語も不完全)
  • 2007-01-11 : (従来の noaccent 関数に起因する)エンコーディングに関する不具合を修正Fix encoding problem (with old noaccent function)
  • 2006-12-20 : 新規リリース。 旧バージョンは移動しました : plugin:addnewpage_old

ディスカッション

ja/plugin/addnewpage.txt · 最終更新: 2013-01-06 20:16 by IchirouUchiki

特に明示されていない限り、本Wikiの内容は次のライセンスに従います: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki