Difference between revisions of "Module:Is infobox in lead/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Galobtter
(→‎Usage: fix)
m (7 revisions imported)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{high use|risk}}
 
{{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 ==
 
== Usage ==
 
 
<code><nowiki>{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ff]oo [Bb]ar}}</nowiki></code>
 
<code><nowiki>{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ff]oo [Bb]ar}}</nowiki></code>
 
This module checks if Infobox foo bar 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.
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 05:44, 27 September 2020

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 true, and if not returns nothing.

Usage

{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ff]oo [Bb]ar}}