Jump to content

User:Zackmann08/Notes

This user has AWB permissions on the English Wikipedia and uses JavaScript Wiki Browser.
This user has autopatrolled rights on the English Wikipedia.
Bot operator top icon
This user is not an admin.
This user has page mover rights on the English Wikipedia.
This user has pending changes reviewer rights on the English Wikipedia.
This user has rollback rights on the English Wikipedia.
This user has template editor rights on the English Wikipedia.
This user has been editing Wikipedia for at least ten years.
Trout this user
This user uses Twinkle to fight vandalism.
From Wikipedia, the free encyclopedia

User:Zackmann08 User talk:Zackmann08 User:Zackmann08/Awards User:Zackmann08/Contacts User:Zackmann08/Notes User:Zackmann08/Templates User:Zackmann08/sandbox
User Talk Awards Contacts Notes Templates/Tools My Sandbox

\{\{if empty\|\{\{\{[\-\w\s]+\|\}\}\}\|(\{\{\{[\w\s\-]+\|\}\}\}\|)*(\{\{\{\w+\|\}\}\})\}\}
<syntaxhighlight inline lang="wikitext"></syntaxhighlight>
Replace with dup params
{
"replaceText": "([\\w\\W]+)(^\\s*\\|\\s*(image|image_size)\\s*=\\s*$\\n)([\\w\\W]*)(^\\s*\\|\\s*\\3\\s*=.*$\\n)",
"replaceWith": "$1$4$5",
"useRegex": true,
"regexFlags": "gmi",
"ignoreNowiki": false
},
{
"replaceText": "([\\w\\W]+)(^\\s*\\|\\s*(image|image_size)\\s*=.*$\\n)([\\w\\W]*)(^\\s*\\|\\s*\\3\\s*=\\s*$\\n)",
"replaceWith": "$1$2$4",
"useRegex": true,
"regexFlags": "gmi",
"ignoreNowiki": false
}
Fetch coords from wikidata
{{#invoke:WikidataIB|getValue|P625|name=coordinate location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|}}}|{{{coordinates|}}} }}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
{{Parameter names example| }}
<syntaxhighlight lang="wikitext" style="overflow: auto">
== Template data ==
{{collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
</templatedata>
{{collapse bottom}}
{{pluralize from text|{{{REPLACEME|}}}|plural=s}}
Template param report
^([\w\-\_\s]*)\s\(page links\)\tN\t(\d+).*\n\+.*
* $1 - $2
Regex to get header if statement
\s*\|\s*label\d*\s*=\s*.*\n\s*\|\s*data\d*\s*=\s*(.*)\n*

Script notes

[edit]
var my_content = $('#wpTextbox1').textSelection('getContents');
....
$('#wpTextbox1').textSelection('setContents', final_text);

Template wrapper

[edit]
<includeonly>{{#invoke:Template wrapper|wrap|_template = TEMPLATE
| _alias-map = 
| _exclude   = 
| _reuse     = 

| template_name = 
}}</includeonly>
Converting this to a [[Module:Template wrapper]] for [[Template:Infobox TEMPLATE]]. This [[refactor]] should not change any existing transclusions. 

Deprecated params

[edit]

Copy deprecated parameters code then use:

\|\s([\w\s]*)\s=\s(\w+)
{\n\t"replaceText": "(^\\\s*\\\|\\\s*)($1)(\\\s*=.*$\\\\n)",\n\t"replaceWith": "$$1$2$$3",\n\t"useRegex": true,\n\t"regexFlags": "mg",\n\t"ignoreNowiki": false\n},

Other

[edit]
\s*([a-zA-Z_\s0-9\s]*)\s*\|
\s*([^/|]*)\s\s*\|
| $1 = "$1" \n

Good responses

[edit]

Other party LTA

[edit]