Template: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.
Related pages
- {{Expand French}}
- {{Expand language}}
- {{Expand language/howto}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.