Difference between revisions of "User:Lahwaacz"

From ArchWiki
Jump to: navigation, search
(Quick bookmarks: + link)
(Regex for replacing <nowiki>=</nowiki> codes: new section)
Line 84: Line 84:
  
 
Perhaps [https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous #tag:pre] parser function could solve this? See [https://jlaska.wordpress.com/2010/10/14/embedding-mediawiki-templates-inside/#comment-287].
 
Perhaps [https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous #tag:pre] parser function could solve this? See [https://jlaska.wordpress.com/2010/10/14/embedding-mediawiki-templates-inside/#comment-287].
 +
 +
== Regex for replacing <nowiki>&#61;</nowiki> codes ==
 +
 +
{{Warning|not tested thoroughly, stored here just for future use}}
 +
 +
regex (remember to select case-insensitive):
 +
(\{\{ic)\|([a-z -_.]*)&#61;([a-z -_.]*\}\})
 +
 +
substitution string:
 +
$1|1=$2=$3

Revision as of 20:57, 20 March 2014

ArchWiki Maintainer

Languages:

  • English
  • Czech

Bot account: Lahwaacz.bot

Quick bookmarks

Tasks

Networking

netcfg -> netctl

Talk pages

List of discontinued pacman/AUR helpers

Not a pacman/AUR helper, but also discontinued:

Indenting multiline code blocks

MediaWiki does not support multiparagraph list items (and other complex scenarios):

Basically every newline character breaks the list. As a result, multiline code blocks using Template:bc cannot be used inside lists and cannot be indented using colons, unless the content is escaped using <nowiki> tags. Template:hc breaks completely, because the template itself contains a line break -- this is another hack, need to find reference for the The line break is needed, otherwise the wiki will generate extraneous paragraphs inside the 2nd pre block comment.

Another possible workaround is to use HTML-encoded characters, see [5].

Perhaps #tag:pre parser function could solve this? See [6].

Regex for replacing = codes

Warning: not tested thoroughly, stored here just for future use

regex (remember to select case-insensitive):

(\{\{ic)\|([a-z -_.]*)=([a-z -_.]*\}\})

substitution string:

$1|1=$2=$3