User:Zackmann08/Notes

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}}
  | onByDefault = {{#if:{{{map|}}}|no|yes}}
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

<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

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

\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

Related Articles

Wikiwand AI