Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Is infobox in lead/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{high use|risk}} '''Module:Is infobox in lead''' checks if a given infobox is in the lead, is also the only infobox in the lead, and that there aren't two of that same infobox in the article. If that is the case, it returns <code>true</code>, and if not returns nothing. == Usage == <code><nowiki>{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ff]oo [Bb]ar}}</nowiki></code> It does not detect redirects which do not match the parameter. Redirects can be handled with an extra invocation per redirect pattern, e.g.: <code><nowiki>{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong}}{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ingle}}</nowiki></code> Redirects can be found with [{{fullurl:Special:WhatLinksHere|hidetrans=1&hidelinks=1&target=Template%3AInfobox+(enter+real+name+of+infobox+here)}} WhatLinksHere]. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Infobox modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:High use
(
edit
)