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.
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/Wikipedia Bookmarks User:Zackmann08/sandbox
User Talk Awards Contacts Notes Templates/Tools Bookmarks My Sandbox

{{Infobox mapframe/doc/parameters}}
<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|}}}|likely=(s)|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*

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


^.*Infobox[^/]+$


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|220px}}}|alt={{{alt|}}}}}
| caption = {{{caption|}}}

(?=\{\{[Ii]nfobox\s[Tt]elevision)(\{\{(?>[^{}]++|\g<1>)*}})

<pre>
==Summary==
{{Non-free use rationale 2
|Description = The cover of [[TITLE]] by [[AUTHOR]].
|Source = SOURCE
|Author = AUTHOR
|Article = TITLE
|Purpose = To serve as the primary means of visual identification at the top of the article dedicated to the work in question.
|Replaceability = n.a.
|Minimality = Will only be used on the article itself.
|Commercial = n.a.
}}

==Licensing==
{{Non-free book cover}}

{{subst:url to diff|url=url|label=label}}

{{#if: {{{mascot|}}} | {{{mascot}}} {{main other|<!--
-->{{#if:{{#invoke:string|match|nomatch=|pattern=[Ff][Ii][Ll][Ee]%s*:|s={{{mascot}}}}}|[[Category:Pages using infobox school with a mascot image]]|{{#if:{{#invoke:string|match|nomatch=|pattern=[Ii][Mm][Aa][Gg][Ee]%s*:|s={{{mascot}}}}}|[[Category:Pages using infobox school with a mascot image]]|}}}}<!--
-->}}<!--
-->}}

Blank Data

[edit]