「
モジュール:See/core
」を編集中
ナビゲーションに移動
検索に移動
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
local p = {} function p.GetLink(frame) local link = frame.args[1] local display = frame.args[2] -- 第一引数の値が技術的に利用可能な記事名でない場合、 -- 第一引数の値をそのまま返す local IsValidPageName = require('モジュール:IsValidPageName') if IsValidPageName.isValidPageName(frame) == "" then return link end if display == "" then display = nil end return p._formatLink(link, display) end function p._formatLink(link, display) -- Remove the initial colon for links where it was specified manually. link = link:match('^:?(.*)') -- Find whether a faux display value has been added with the {{!}} magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Assemble the link. if display then return string.format( '[[:%s|%s]]', string.gsub(link, '|(.*)$', ''), --display overwrites manual piping display ) else return string.format('[[:%s]]', link) end end return p
編集内容の要約:
14Channel BBS Wikiへの投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細は
14Channel BBS Wiki:著作権
を参照)。
著作権保護されている作品は、許諾なしに投稿しないでください!
編集を中止
編集の仕方
(新しいウィンドウで開きます)
このページで使用されているテンプレート:
モジュール:See/core/doc
(
編集
)
案内メニュー
個人用ツール
ログインしていません
トーク
投稿記録
アカウント作成
ログイン
名前空間
モジュール
議論
English
表示
閲覧
ソースを編集
履歴表示
その他
案内
メインページ
最近の更新
おまかせ表示
MediaWikiについてのヘルプ
NML
NMLとは
ルビ振り
文字列シャッフル
AAをきれいに表示
スレッドの記事
安倍ガチャスレ
レンタルサーバー
シン・クラウド for Free
他サイト
防儲(Libre)
三男掲示板
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報