Difference between revisions of "User:Lahwaacz"

From ArchWiki
Jump to: navigation, search
(Regex for replacing <nowiki>=</nowiki> codes: new section)
(Regex for replacing = codes: emphasize warning)
Line 85: Line 85:
 
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 ==
+
== Regex for replacing = codes ==
  
{{Warning|not tested thoroughly, stored here just for future use}}
+
{{Warning|not tested and can be '''dangerous''', stored here just for future use}}
  
 
regex (remember to select case-insensitive):
 
regex (remember to select case-insensitive):

Revision as of 18:15, 21 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 and can be dangerous, stored here just for future use

regex (remember to select case-insensitive):

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

substitution string:

$1|1=$2=$3