ਫਰਮਾ:EL table row
Foo | Foo topic |
This template provides one table row for the topic table in the documentation for daughter templates of template {{Expand language}}. It creates a row with three cells: the abbreviated topic code, the expanded topic name wikilinked to the category for that language topic, and the number of articles categorized in that topic.
Usage
[ਸੋਧੋ]{{EL table row|Language Name|topic code}}
{{EL table row|Language Name|topic code|topic name}}
Parameters
[ਸੋਧੋ]There are three positional parameters; the first two are required:
|1=
⟶ language name (e.g., French, Croatian, etc.)|2=
⟶ topic code – any of: bio, cult, geo, gov, hist, mil, sci, sport, struct, tech, or transp; or, a custom code, not one in this list, such as pacommune.|3=
⟶ topic name – a custom topic name, e.g. French commune (optional; ignored if|2=
is among the 11 codes in the list above)
Examples
[ਸੋਧੋ]These examples are embedded in minimal table markup in order to demonstrate the appearance of the row in a table context:
{{EL table row|French|mil}}
⟶
{{EL table row|German|gov}}
⟶
{{EL table row|Basque|mil}}
⟶ no row, since Category:Military articles needing translation from Basque Wikipedia does not exist
(Note: table markup for this example with no row inside may render as a tiny box in some browsers)
{{EL table row|Spanish|church}}
⟶ unrecognized topic generates a row, but flags an error (see doc)
church | unknown topic code |
{{EL table row|French|pacommune|French commune}}
⟶ subcategory formed from the 3rd parameter must exist already
Note on expensive parser functions
[ਸੋਧੋ]This template uses expensive parser function calls. The heaviest usage of this template is by {{Expand French/doc}}, which has a total expensive parser function count of 27. It should be noted that the Expand-language templates themselves (the ones which display an "Expand language" banner on article pages) do *not* use expensive calls, only the doc pages do. As the use of these template is restricted to the domain of documentation pages of daughter templates of {{Expand language}}, like {{Expand French/doc}} and others, it is extremely unlikely that the number of calls would reach the maximum of 500. In the worst case, some rows would drop off the end of the "Topics" table in the Categorization section of the /doc page. This might be a risk if the number of topic codes exceeded 240; the current maximum is twelve. Since it only affects /doc pages, and since it's so unlikely to affect even them, the {{expensive}} warning is not needed at the top of this template, nor any of the related templates.
See also
[ਸੋਧੋ]- {{Expand French}}
- {{Expand language}}
- {{Expand language/howto}}
- {{Expand language table row}} (redirect)