Difference between revisions of "Template:Flag template documentation"
Jump to navigation
Jump to search
imported>MSGJ (try to fix spacing in output) |
imported>Andrybak (use Template:Sandbox other) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
}} for {{{1}}} as a shorthand editing convenience. | }} for {{{1}}} as a shorthand editing convenience. | ||
{{#if:{{{2|}}} | {{#if:{{{2|}}} | ||
− | |<br>{{#if:{{{3|}}} | + | |<br/>{{#if:{{{3|}}} |
|{{#if:{{{4|}}} | |{{#if:{{{4|}}} | ||
|{{#ifeq:{{{2}}}|{{{3}}} | |{{#ifeq:{{{2}}}|{{{3}}} | ||
Line 86: | Line 86: | ||
}} | }} | ||
}}{{#ifexist:{{SUBJECTPAGENAME}}/doc | }}{{#ifexist:{{SUBJECTPAGENAME}}/doc | ||
− | |{{{{SUBJECTPAGENAME}}/doc}} <!-- category and other documentation for the flag template --> | + | |{{ {{SUBJECTPAGENAME}}/doc}} <!-- category and other documentation for the flag template --> |
}} | }} | ||
===See also=== | ===See also=== | ||
Line 92: | Line 92: | ||
*[[Wikipedia:WikiProject Flag Template]]—for a complete discussion of the flag template system | *[[Wikipedia:WikiProject Flag Template]]—for a complete discussion of the flag template system | ||
*[[Wikipedia:Inline templates linking country articles]]—for a complete list of these "shorthand" flag templates | *[[Wikipedia:Inline templates linking country articles]]—for a complete list of these "shorthand" flag templates | ||
− | {{ | + | {{Sandbox other||[[Category:Flag template shorthands]]}} |
| link box = | | link box = | ||
− | This documentation is generated by [[Template:Flag template documentation]]. <br> Documentation specific to this template may be placed in this template's [[{{FULLPAGENAME}}/doc|/doc]] subpage and will be automatically transcluded. <br> Any [[Wikipedia:Categorization|categories]] should also be added to the [[{{FULLPAGENAME}}/doc|/doc]] subpage. | + | This documentation is generated by [[Template:Flag template documentation]]. <br/> Documentation specific to this template may be placed in this template's [[{{FULLPAGENAME}}/doc|/doc]] subpage and will be automatically transcluded. <br/> Any [[Wikipedia:Categorization|categories]] should also be added to the [[{{FULLPAGENAME}}/doc|/doc]] subpage. |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | + | {{documentation}}<!-- Add categories to the /doc subpage, not here! --> | |
− | {{documentation}} | ||
− | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 20:58, 30 March 2020
This template is used to automatically generate documentation for standard flag templates.
Usage
{{flag template documentation|Country name|ISO|IOC|FIFA}}
- Parameters
- Country name – matches the parameter used with {{flag}} within the flag template itself
- ISO – ISO 3166-1 alpha-3 country code
- IOC – IOC country code
- FIFA – FIFA country code
If any of the three codes are not applicable for a particular country, leave the respective parameters blank.
This template is placed on the flag template itself (similar to how the {{documentation}} template is placed). This template depends on the mandatory existence of a /doc subpage, which is only used to transclude interwiki links.
Further usage
The optional parameter header is content that goes at the top of the documentation box, above "Description".
See also
The above documentation is transcluded from Template:Flag template documentation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |