Difference between revisions of "Template talk:Infobox airport"

From Conservapedia
Jump to navigation Jump to search
(keep the doc.)
(added a few more)
Line 5: Line 5:
 
!colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: Royalblue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''{{#if: {{{nativename<includeonly>|</includeonly>}}} |<br> ''{{{nativename}}}'' }}
 
!colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: Royalblue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''{{#if: {{{nativename<includeonly>|</includeonly>}}} |<br> ''{{{nativename}}}'' }}
 
|-
 
|-
−
<!----------ensign---------->
+
<!----------Image---------->
−
{{!}}align="center" colspan="2"{{!}}{{#if:{{{ensign|}}}|[[image:{{{ensign}}}|{{{ensign_size}}}]]|}}
+
{{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|{{{image_size}}}]]|{{{image_caption}}}}}
 
{{!-}}
 
{{!-}}
 
<!---------Native Name---------->
 
<!---------Native Name---------->
Line 12: Line 12:
 
{{!}} '''Native Name'''
 
{{!}} '''Native Name'''
 
{{!}} {{{nativename|}}} | <!--else-->
 
{{!}} {{{nativename|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------IATA---------->
 +
{{#if:{{{IATA|}}} | <!--then:-->
 +
{{!}} '''IATA'''
 +
{{!}} {{{IATA|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!---------ICAO---------->
 +
{{#if:{{{ICAO|}}} | <!--then:-->
 +
{{!}} '''ICAO'''
 +
{{!}} {{{ICAO|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}

Revision as of 18:12, March 3, 2017

I'm not familiar with templates enough to figure out what's going on in this one. What I sometimes find is a simple(ish) solution is to just grab a working template and modify it. For example, take a look at at this and its code"

Infobox airport
{{{nativename}}}
{{{image_caption}}}

Just ignore the top section, and grab the repeating block near the bottom (from one comment to the next) and duplicate it as needed to get a basic template list. Just change every place the variable is mentioned and update the label. We can stylalize it later, and break it into sections if wanted also. I can't do it now, but if you want to start playing with this, feel free. In any case, keep the documentation on the main page--we'll need that later.--David B (TALK) 22:49, 1 March 2017 (EST)