oriwiki / php-namumark-mediawiki Goto Github PK
View Code? Open in Web Editor NEWThis project forked from koreapyj/php-namumark
A mediawiki extension of PHP namumark parser
License: GNU Affero General Public License v3.0
This project forked from koreapyj/php-namumark
A mediawiki extension of PHP namumark parser
License: GNU Affero General Public License v3.0
링크를 이용한 사진 첨부와 관련하여 $wgEnableImageWhitelist 및 $wgAllowExternalImagesFrom 등을 준수하도록 해 주시면 감사하겠습니다.
Cf: miraheze T777
https://oriwiki.net/저격_망토 항목처럼 multiline이 아닌 글상자({{| |}}) 문법 사용시 인식하지 못 함.
간단히 처리할 수 있을 듯.
if(self::startsWith($text, '*') && preg_match('/^\*([^ ]*)([ ].+)?$/', $text, $note)) {
if(isset($note[1]) and isset($note[2]))
return '<ref name="'.$note[1].'">'.$note[2].'</ref>';
else if(isset($note[2]))
return '<ref>'.$note[2].'</ref>';
else if(isset($note[1]))
return '<ref name="'.$note[1].'" />';
}
이렇게 하면 비슷하게 구현되지 않을까요?
https://namu.wiki/w/나무위키:연습장?rev=903
ㅡ 나무위키 지원 문법
deleted
rowbgcolor 태그가 안 먹힘.
그냥 bgcolor로는 잘 되는 것으로 판단.
예시 문서 : https://oriwiki.net/%ED%8B%80:%ED%95%9C%EA%B5%AD%EC%9D%98_%EC%95%BC%EA%B5%AC%EB%A6%AC%EA%B7%B8
[[http://wiki.dcinside.com|'''{{{#white 디시위키 바로가기}}}''']]
위와 같이 하면 굵기는 먹지만 글씨색은 안 들어감. 링크는 문제 없이 잘 걸리는 듯함.
아래와 같이 하면 문제 없음.
'''{{{#blue 디시위키 바로가기}}}'''
[http://wiki.dcinside.com|'''{{{#blue 디시위키 바로가기}}}''']
[http://wiki.dcinside.com '''{{{#blue 디시위키 바로가기}}}''']
안녕하세요, 지인들과 작은 미디어위키 서버를 운영하고 있는 하늘토끼라고 합니다.
사진과 같이 틀 하나하나는 정상적인데 틀을 끼워넣기만 하면 내용이 여러 줄인 nowiki처럼 나오는 버그가 있습니다. 혹시 수정이 가능하신가요?
문제가 발생하는 문서입니다.
끼워넣기한 틀 문서에 들어가보면 정상적으로 나옵니다.
설빈레피딕스 문서에 사용한 문법은
{{설레}}
[Include(설레/도철)]
{{설레/광역}}
{{설레/로컬}}
{{설레/버스/광역1}}
{{설레/버스/광역2}}
{{설레/텀}}
{{설레/기지}}
이고, 각 틀에 사용한 문법은
<div class="mw-collapsible mw-collapsed">
{{{#!wiki style="text-align:center; background-color:#ffddff; border-radius:5px; border:1px solid #04ccff; padding-top:2px; padding-bottom:2px; margin:10px -5px 10px 0px"
[[설빈레피딕스]]의 도시철도 노선}}}
<div class="mw-collapsible-content">
||<tablewidth=100%><tablebgcolor=#ffffff><rowbgcolor=#ffeeff><:>권역||<width=5.83%> 1<small><small>호선</small></small> ||<width=5.83%> 2<small><small>호선</small></small> ||<width=5.83%> 3<small><small>호선</small></small> ||<width=5.83%> 4<small><small>호선</small></small> ||<width=5.83%> 5<small><small>호선</small></small> ||<width=5.83%> 6<small><small>호선</small></small> ||<width=5.83%> 7<small><small>호선</small></small> ||<width=5.83%> 8<small><small>호선</small></small> ||<width=5.83%> 9<small><small>호선</small></small> ||<width=5.83%> 10<small><small>호선</small></small> ||<width=5.83%> 11<small><small>호선</small></small> ||<width=5.83%> 12<small><small>호선</small></small> ||<width=5.83%> 13<small><small>호선</small></small> ||<width=5.83%> 14<small><small>호선</small></small> ||<width=5.83%> 15<small><small>호선</small></small> ||<width=5.83%><:>16<small><small>호선</small></small>||
||<|2><bgcolor=#ffeeff><:>[[용해도|용해]]||<:>[[용해1호선|■]]||<:>[[용해2호선|■]]||<:>-||<:>[[용해4호선|■]]||<:>[[용해5호선|■]]||||<:>-||<:>[[용해8호선|■]]||||||||||||||||<:>-||
||<:>[[Satellite Network#용해1호선|SN]]||<:>[[Satellite Network#용해4호선, 용해2호선|SN]]||<:>-||<:>[[Satellite Network#용해4호선, 용해2호선|SN]]||<-12><:>-||
||<bgcolor=#ffeeff><:>[[유하도|유하]]||<-3><:>-||<:>[[유하4호선|■]]||<:>[[유하5호선|■]]||<:>[[유하6호선|■]]||<:>[[유하7호선|■]]||<:>-||<:>[[유하9호선|■]]||<:>[[CQ10호선|CQ]]||<:>[[CQ11호선|CQ]]||<-5><:>-||
||<|2><bgcolor=#ffeeff><:>[[양서도|양서]]||<-8><:>-||<:>[[양서9호선|■]]||<-7><:>-||
|| [[Ex1호선|Ex]] ||<-15><:>-||
||<bgcolor=#ffeeff><:>[[가람도|가람]]||<-16><:>-||
||<bgcolor=#ffeeff><:>[[동명광역시|동명]]||<:>[[CQ10호선|■]]||<-15><:>-||
</div>
</div>
이런식으로 이루어져 있습니다. (해당 틀에서 background-color, 틀 제목, 틀 내용만 바꾼 것이며, 해당 문서의 틀 관리 링크를 통해 모든 틀을 확인하실 수 있습니다.
미디어위키 버전은 1.34.4입니다.
이슈 둘러보다 보니 가용 미디어위키 서버가 없으신 것 같은데, 필요하시다면 저희 위키 서버를 빌려드릴 수도 있습니다.
https://oriwiki.net/%ED%8E%98%ED%8A%9C%EB%8B%88%EC%95%84
이미지쪽 처리를 해주면 될 듯
||<tablebordercolor=#> || 로 제작된 틀에서 tablebordercolor 는 쏙 빼놓고 렌더링됩니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.