Difference between revisions of "Template:Infobox school/short description"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
(Document use of Lua)
imported>Jonesey95
(support country aliases)
Line 20: Line 20:
 
   | 3 = {{#if:{{{state|}}}|{{{state}}}}}
 
   | 3 = {{#if:{{{state|}}}|{{{state}}}}}
 
   | 4 = {{#if:{{{province|}}}|{{{province}}}}}
 
   | 4 = {{#if:{{{province|}}}|{{{province}}}}}
   | 5 = {{#if:{{{country|}}}|{{{country|}}}}}
+
   | 5 = {{#if:{{{country|}}}|{{#ifexist:{{Getalias|{{{country}}}}}|{{Getalias|{{{country}}}}}|{{{country}}}}}}}
 
   }}|check-patterns = [Ss]chool;[Cc]ollege;[Aa]cademy;|full-loc=yes}}}}<noinclude>{{documentation|content={{lua|Module:String|Module:Is infobox in lead}}
 
   }}|check-patterns = [Ss]chool;[Cc]ollege;[Aa]cademy;|full-loc=yes}}}}<noinclude>{{documentation|content={{lua|Module:String|Module:Is infobox in lead}}
 
This template is used for generating a short description for Infobox school.}}</noinclude>
 
This template is used for generating a short description for Infobox school.}}</noinclude>

Revision as of 05:04, 14 March 2020

Template documentation

This template is used for generating a short description for Infobox school.